/* Importar Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Nunito+Sans:wght@400;600;700;800;900&display=swap');

/* Variables de Color e Identidad */
:root {
  --color-primary: #5cbca9;       /* Verde agua suave */
  --color-primary-hover: #4aa391; /* Verde agua hover */
  --color-secondary: #2f7e7c;     /* Turquesa / azul verdoso */
  --color-secondary-hover: #235e5d;
  --color-accent: #f4be52;        /* Amarillo cálido / mostaza suave */
  --color-accent-hover: #e0ac3c;
  --color-bg-warm: #faf9f6;       /* Blanco cálido */
  --color-bg-cream: #f3f2ec;      /* Crema suave */
  --color-text: #2d3732;          /* Gris oscuro neutro */
  --color-text-muted: #5e6b64;    /* Gris medio */
  
  --font-titles: 'Nunito Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Configuraciones Globales */
html {
  scroll-behavior: smooth;
  color: var(--color-text);
  font-family: var(--font-body);
  background-color: var(--color-bg-warm);
  overflow-x: clip;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titles);
  color: var(--color-secondary);
}

/* Estilos de Barra de Desplazamiento */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-warm);
}
::-webkit-scrollbar-thumb {
  background: #d4d2c8;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Animaciones y Transiciones Personalizadas */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

/* Estilos Adicionales para el Modal */
.modal-backdrop {
  backdrop-filter: blur(8px);
  transition: all 0.15s ease-out;
}

.modal-content {
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.15s ease-out;
}

.modal-active .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* Formas Orgánicas y Blobs */
.organic-blob-1 {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.organic-blob-2 {
  border-radius: 40% 60% 70% 30% / 50% 60% 30% 50%;
}

/* Sobrescribir colores de Tailwind */
.bg-brand-primary { background-color: var(--color-primary); }
.bg-brand-primary-hover { background-color: var(--color-primary-hover); }
.bg-brand-secondary { background-color: var(--color-secondary); }
.bg-brand-secondary-hover { background-color: var(--color-secondary-hover); }
.bg-brand-accent { background-color: var(--color-accent); }
.bg-brand-accent-hover { background-color: var(--color-accent-hover); }
.bg-brand-warm { background-color: var(--color-bg-warm); }
.bg-brand-cream { background-color: var(--color-bg-cream); }

.text-brand-primary { color: var(--color-primary); }
.text-brand-secondary { color: var(--color-secondary); }
.text-brand-accent { color: var(--color-accent); }
.text-brand-dark { color: var(--color-text); }
.text-brand-muted { color: var(--color-text-muted); }

.border-brand-primary { border-color: var(--color-primary); }
.border-brand-secondary { border-color: var(--color-secondary); }
.border-brand-accent { border-color: var(--color-accent); }

/* Clases de Contraste y Foco Accesibles */
.btn-primary-focus:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}
.btn-secondary-focus:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Fila deslizable sin barra de scroll visible (etiquetas del hero en móvil) */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Efectos de Hover para Tarjetas */
.hover-card-effect {
  transition: all 0.15s ease-out;
}
.hover-card-effect:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -8px rgba(47, 126, 124, 0.08);
}

/* ==================== Separadores Curvos entre Secciones ==================== */
.wave-divider {
  line-height: 0;
  pointer-events: none;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 3.5rem;
}
@media (min-width: 768px) {
  .wave-divider svg {
    height: 5.5rem;
  }
}
/* Variante espejada para alternar el sentido de la onda */
.wave-divider.flip svg {
  transform: scaleX(-1);
}

/* ==================== Subsitio Equipo (diseño tarjetas compactas) ==================== */
.eq-hero {
  background: linear-gradient(135deg, #e3f2ee 0%, #faf9f6 52%, #fcf3df 100%);
}
.eq-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4aa391;
}
.title-underline-accent {
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background-color: #5cbca9;
  margin: 12px auto 0;
}
.eq-grid-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  width: 100%;
}
.eq-card {
  width: 172px;
  background-color: #ffffff;
  border: 1.5px solid #e9ece9;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 4px 15px rgba(45, 55, 50, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}
.eq-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 14px 30px rgba(47, 126, 124, 0.12);
  border-color: rgba(92, 188, 169, 0.5);
}
.eq-card:focus-visible {
  outline: 3px solid rgba(92, 188, 169, 0.55);
  outline-offset: 2px;
}
.eq-photo-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 15px 15px 0 0;
  overflow: hidden;
  background-color: #f2f5f3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.eq-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.eq-photo-frame.ph {
  background: linear-gradient(135deg, #e8f5f1 0%, #f3f2ec 100%);
}
.eq-ph-silhouette {
  position: absolute;
  width: 36px;
  height: 36px;
  color: #5cbca9;
  opacity: 0.75;
}
.eq-icon-circle {
  position: absolute;
  left: 50%;
  top: 0;
  margin-top: 100%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #5cbca9;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 5;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.eq-card:hover .eq-icon-circle {
  transform: translate(-50%, -50%) scale(1.1);
}
.eq-body {
  padding: 18px 10px 16px;
  text-align: center;
}
.eq-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #235e5d;
  margin: 0 0 4px 0;
  line-height: 1.25;
}
.eq-role {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #5e6b64;
  line-height: 1.35;
}

/* ==================== Grilla única (6 por fila) + Tarjeta destacada Fundadora ==================== */
.team-grid-6 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 640px) {
  .team-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .team-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
}
.team-grid-6 .eq-card { width: 100%; }

.eq-card.eq-founder {
  width: min(620px, 100%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  border-radius: 22px;
  border-color: rgba(92, 188, 169, 0.45);
  box-shadow: 0 10px 26px rgba(47, 126, 124, 0.10);
}
.eq-card.eq-founder:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(47, 126, 124, 0.16);
}
.eq-card.eq-founder .eq-photo-frame {
  width: 128px;
  height: 128px;
  aspect-ratio: auto;
  flex-shrink: 0;
  border-radius: 18px;
}
.eq-card.eq-founder .eq-icon-circle { display: none; }

.eq-founder-badge {
  position: absolute;
  top: -13px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #f4be52;
  color: #2d3732;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10);
}
.eq-founder-info {
  text-align: left;
  min-width: 0;
}
.eq-founder-kicker {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4aa391;
  margin-bottom: 5px;
}
.eq-founder-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: #235e5d;
  margin: 0 0 2px;
  line-height: 1.15;
}
.eq-founder-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: #5e6b64;
  margin: 0 0 12px;
  line-height: 1.35;
}
.eq-founder-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2f7e7c;
}
.eq-founder-cta svg { transition: transform 0.3s ease; }
.eq-card.eq-founder:hover .eq-founder-cta svg { transform: translateX(3px); }

@media (max-width: 520px) {
  .eq-card.eq-founder {
    flex-direction: column;
    text-align: center;
    padding: 52px 22px 24px;
    gap: 14px;
  }
  .eq-card.eq-founder .eq-founder-info { text-align: center; }
  .eq-card.eq-founder .eq-photo-frame { width: 110px; height: 110px; }
  .eq-founder-badge { left: 50%; transform: translateX(-50%); }
}

/* Banner inferior tipo píldora */
.eq-banner-pill {
  background-color: #edf4f1;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 36px;
  box-shadow: 0 4px 15px rgba(45, 55, 50, 0.05);
}
.eq-banner-item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.eq-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #5cbca9;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(92, 188, 169, 0.28);
}
.eq-banner-icon-outline {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #5cbca9;
  color: #5cbca9;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.eq-banner-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #235e5d;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}
.eq-banner-text.hl {
  color: #4aa391;
}
.eq-banner-sep {
  width: 1px;
  height: 42px;
  background-color: rgba(45, 55, 50, 0.12);
  flex-shrink: 0;
}

/* Responsividad del subsitio equipo */
@media (max-width: 900px) {
  .eq-banner-pill {
    flex-direction: column;
    border-radius: 32px;
    padding: 24px;
    gap: 20px;
  }
  .eq-banner-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .eq-banner-text,
  .eq-banner-text.hl {
    text-align: center;
  }
  .eq-banner-sep {
    width: 80%;
    height: 1px;
  }
}
@media (max-width: 600px) {
  .eq-grid-wrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 22px 12px !important;
    justify-items: center !important;
  }
  .eq-card {
    width: 100% !important;
    max-width: 160px !important;
  }
  .eq-grid-wrap > .eq-card:last-child:nth-child(odd) {
    justify-self: start !important;
  }
}

/* Fondo arena con degradado suave (mismos tonos del hero de /equipo) */
.section-sand {
  background: linear-gradient(180deg, #e3f2ee 0%, #faf9f6 52%, #fcf3df 100%);
}

/* Ajustes móviles: legibilidad en tarjetas de equipo */
@media (max-width: 520px) {
  .eq-card.eq-founder .eq-founder-name { font-size: 1.15rem; }
  .eq-card.eq-founder .eq-founder-role { font-size: 0.75rem; }
  .eq-name { font-size: 0.94rem; }
  .eq-role { font-size: 0.7rem; }
}

/* Tarjetas del equipo sin biografía (no interactivas) */
.eq-card:not(.btn-profile) {
  cursor: default;
}
.eq-card:not(.btn-profile):hover {
  transform: none !important;
  box-shadow: 0 4px 15px rgba(45, 55, 50, 0.04) !important;
  border-color: #e9ece9 !important;
}
