:root {
  --c-black: #000;
  --c-white: #fff;
  --c-gray: #a6a6a6;
  --c-orange: #faa94a;
}

/* Base styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Navigation buttons */
.nav-button {
  padding: 15px 20px;
  background-color: #fdfdfd;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: 2px solid transparent;
  text-align: center;
  display: inline-block;
  box-sizing: border-box;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.nav-button:hover {
  background-color: #faa94a;
  transform: translateY(-3px) scale(1.05);
  border: 2px solid #000000;
}

.nav-button:active {
  transform: translateY(0) scale(1);
  box-shadow: none;
}

/* Mobile nav buttons */
.nav-button-mobile {
  padding: 12px 16px;
  background-color: #f8f8f8;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  border-radius: 8px;
  text-align: center;
  display: block;
}

.nav-button-mobile:hover {
  background-color: #faa94a;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hero buttons */
.button-top-left, .button-top-right {
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.button-top-left {
  background-color: #faa94a;
  color: #000000;
}

.button-top-right {
  background-color: #fdfdfd;
  color: #000000;
}

.button-top-left:hover, .button-top-right:hover, .button-bottom-left:hover, .button-bottom-right:hover{
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button-bottom-left{
  background-color: #faa94a;
  color: #000000;
}

.button-bottom-right{
  background-color: #000000;
  color: #f0f0f0;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e5e5;
  background-color: white;
  padding: 1.5rem;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Flip card styles */
.flip-card {
  background-color: transparent;
  perspective: 1000px;
  height: 100%;
  min-height: 200px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flip-card-front {
  background-color: #faa94a;
  color: black;
}

.flip-card-back {
  background-color: white;
  color: black;
  transform: rotateY(180deg);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e5e5;
}

/* Ensure all service cards have equal height */
.services-grid > * {
  display: flex;
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 40;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Rounded Tally iframe container */
.tally-container {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Portfolio animations */
.portfolio-item {
  border-radius: 1rem;
  border: 1px solid #e5e5e5;
  background-color: white;
  margin-top: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.portfolio-item[open] {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portfolio-summary {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  list-style: none; /* Remove default arrow in Firefox */
  transition: background-color 0.3s ease;
}

.portfolio-summary:hover {
  background-color: #f8f8f8;
}

.portfolio-summary::-webkit-details-marker {
  display: none; /* Remove default arrow in Chrome */
}

.dropdown-arrow {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.portfolio-item[open] .dropdown-arrow {
  transform: rotate(180deg);
}

.portfolio-content {
  padding: 0 1.5rem 1.5rem;
  animation: fadeIn 0.5s ease forwards;
}

/* Mobile menu styles */
.mobile-menu-btn {
  display: none;
}

@media (max-width: 767px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }
  
  .mobile-menu.active {
    display: block;
  }
}

/* Additional animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.tally-container {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
    
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
    
.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Estilos para la sección de clientes - 2x5 grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.client-logo {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e5e5e5;
  background-color: white;
  transition: all 0.3s ease;
}

.client-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive para clientes */
@media (max-width: 1024px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }
}

@media (max-width: 640px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Estilos para la sección de portafolio - imágenes más pequeñas */
.portfolio-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.portfolio-content img,
.portfolio-content video {
  width: 100%;
  max-height: 60vh; /* No más alto que el 60% de la ventana */
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.portfolio-content img:hover,
.portfolio-content video:hover {
  transform: scale(1.02);
}

/* Responsive para portafolio */
@media (max-width: 768px) {
  .portfolio-content {
    grid-template-columns: 1fr;
  }
  
  .portfolio-content img,
  .portfolio-content video {
    max-height: 50vh;
  }
}

h1 {
  background: none;
}

.chatIcon{
  max-width: 35px;
  max-height: 35px;
  border-radius: 50%;
}