/* ==========================================================================
   IFA – WEALTH ADVISORS (ifaasesores.com)
   Estilos Principales - Desktop First y Responsive Móvil
   Colores de Marca:
     Azul Principal: #001F4B
     Verde Acento:   #4EC1B0
     Gris Claro:     #E6E9ED
     Blanco:         #FFFFFF
   Tipografías:
     Títulos y destacados: Montserrat
     Textos y cuerpo:      Inter
   ========================================================================== */

:root {
  --color-primary: #001F4B;
  --color-primary-dark: #001433;
  --color-primary-light: #0A326B;
  --color-accent: #4EC1B0;
  --color-accent-hover: #3EB3A2;
  --color-accent-light: #EBF8F6;
  --color-gray-light: #E6E9ED;
  --color-gray-bg: #F8FAFC;
  --color-gray-text: #64748B;
  --color-gray-dark: #334155;
  --color-text: #1E293B;
  --color-white: #FFFFFF;
  --font-title: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: var(--font-title);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --site-padding: clamp(24px, 4.5vw, 64px);
  --header-height: 76px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.icon-teal {
  color: var(--color-accent) !important;
}

.icon-navy {
  color: var(--color-primary) !important;
}

/* Reset y Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  color: var(--color-primary);
  font-weight: 700;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 var(--site-padding);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 31, 75, 0.06);
  background: #FFFFFF;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding: 0 var(--site-padding);
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(18px, 2.2vw, 34px);
}

.nav-link {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--color-primary);
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  background: transparent;
  padding: 2px;
  z-index: 1100;
  border-radius: 4px;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 480px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.86) 30%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0) 68%),
    url('../img/IFA-banner-clean.webp') right center / cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 56px 0 60px;
}

.hero-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 var(--site-padding);
}

.hero-content {
  max-width: 520px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.hero-divider {
  width: 44px;
  height: 2px;
  background-color: var(--color-accent);
  margin-bottom: 18px;
}

.hero-description {
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 26px;
  max-width: 460px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-title);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 14px 28px;
  border-radius: 0;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 31, 75, 0.15);
}

.btn-primary:hover {
  background-color: var(--color-accent);
  box-shadow: 0 6px 16px rgba(78, 193, 176, 0.35);
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

/* Símbolo de Marca de Agua a la Derecha */
.hero-watermark {
  position: absolute;
  top: -25px;
  right: 0;
  width: clamp(220px, 23vw, 340px);
  height: auto;
  opacity: 0.38;
  pointer-events: none;
  z-index: 1;
}

.hero-watermark img {
  width: 100%;
  height: auto;
  display: block;
}

/* Pilares / Valores de Marca en la esquina inferior derecha */
.hero-values {
  position: absolute;
  bottom: 22px;
  right: clamp(24px, 4.5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
  z-index: 2;
}

.hero-values span {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

/* ==========================================================================
   SECTION 2: EL DESAFÍO / AHÍ ENTRA IFA (FULL WIDTH - RIGHT IMAGE FLUSH)
   ========================================================================== */
.section-desafio {
  padding: 0;
  background-color: var(--color-white);
  border-bottom: 1px solid #EDF2F7;
  width: 100%;
  overflow: hidden;
}

.desafio-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(280px, 1.2fr) minmax(340px, 1.45fr);
  width: 100%;
  min-height: 290px;
  align-items: stretch;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-tag::before {
  content: '—';
  color: var(--color-accent);
  font-weight: 900;
}

.desafio-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.desafio-col-1 {
  padding: clamp(36px, 4vw, 56px) 36px clamp(36px, 4vw, 56px) var(--site-padding);
}

.desafio-col-2 {
  padding: clamp(36px, 4vw, 56px) 36px;
  border-left: 1px solid #E2E8F0;
}

.desafio-col h2 {
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: -0.4px;
}

.desafio-col .brand-title {
  font-family: var(--font-title);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.desafio-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-gray-dark);
}

.desafio-highlight {
  font-family: var(--font-title);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-accent);
  margin-top: 18px;
}

.desafio-card-media {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 290px;
  border-radius: 0;
  box-shadow: none;
}

.desafio-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.desafio-card-media:hover img {
  transform: scale(1.02);
}

/* ==========================================================================
   SECTION 3: NUESTRA PROPUESTA (FULL WIDTH)
   ========================================================================== */
.section-propuesta {
  padding: clamp(52px, 5.5vw, 76px) 0 clamp(36px, 4vw, 52px);
  background-color: var(--color-gray-bg);
  border-bottom: 1px solid #EDF2F7;
  width: 100%;
}

.propuesta-container {
  width: 100%;
  padding: 0 var(--site-padding);
}

.propuesta-header {
  margin-bottom: 40px;
}

.propuesta-title {
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 8px;
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.propuesta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  gap: 0;
}

.propuesta-card {
  background: transparent;
  padding: 10px 28px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #E2E8F0;
  transition: var(--transition);
}

.propuesta-card:first-child {
  padding-left: 0;
}

.propuesta-card:last-child {
  border-right: none;
  padding-right: 0;
}

.propuesta-icon {
  width: 44px;
  height: 44px;
  color: var(--color-accent);
  margin-bottom: 18px;
}

.propuesta-card-title {
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.propuesta-card-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-gray-dark);
}

/* Barra de Clases de Activos */
.asset-classes-bar {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid #E2E8F0;
  border-bottom: none;
  width: 100%;
}

.asset-classes-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  list-style: none;
  gap: 12px;
}

.asset-class-item {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--color-primary);
  opacity: 0.85;
}

.asset-class-sep {
  color: #CBD5E1;
  font-size: 12px;
}

/* ==========================================================================
   SECTION 4: CÓMO TRABAJAMOS (FULL WIDTH - LEFT IMAGE FLUSH)
   ========================================================================== */
.section-metodologia {
  padding: 0;
  background-color: var(--color-white);
  border-bottom: 1px solid #EDF2F7;
  width: 100%;
  overflow: hidden;
}

.metodologia-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(460px, 2.75fr) minmax(220px, 1fr);
  width: 100%;
  min-height: 290px;
  align-items: stretch;
}

.metodologia-media {
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 290px;
  border-radius: 0;
  box-shadow: none;
}

.metodologia-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.metodologia-media:hover img {
  transform: scale(1.02);
}

.metodologia-center {
  padding: clamp(36px, 3.8vw, 52px) 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metodologia-title {
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 8px;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.metodologia-subtitle {
  font-size: 15.5px;
  color: var(--color-gray-dark);
  margin: 6px 0 28px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 10px;
}

.step-item {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  border-right: 1px solid #EDF2F7;
}

.step-item:first-child {
  padding-left: 0;
}

.step-item:last-child {
  border-right: none;
  padding-right: 0;
}

.step-icon {
  width: 38px;
  height: 38px;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.step-name {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--color-gray-dark);
}

/* Pilares verticales a la derecha */
.metodologia-pillars {
  border-left: 1px solid #E2E8F0;
  padding: clamp(36px, 3.8vw, 52px) var(--site-padding) clamp(36px, 3.8vw, 52px) 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  margin-top: 0;
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pillar-icon {
  width: 38px;
  height: 38px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.pillar-text h4 {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.pillar-text p {
  font-size: 13px;
  color: var(--color-gray-dark);
}

/* ==========================================================================
   SECTION 5: DETRÁS DE IFA (FULL WIDTH - SEAMLESS BAND)
   ========================================================================== */
.section-equipo {
  padding: 0;
  background-color: var(--color-white);
  width: 100%;
  overflow: hidden;
}

.team-card-unified {
  display: grid;
  grid-template-columns: 1.7fr 1fr 2.3fr;
  width: 100%;
  min-height: 280px;
  background: var(--color-white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  align-items: stretch;
}

/* Left Navy Box - Full-bleed left with misty mountains background */
.team-navy-col {
  position: relative;
  background: linear-gradient(145deg, rgba(0, 31, 75, 0.42) 0%, rgba(0, 20, 50, 0.2) 100%), url('../img/IFA-una-persona-clean.webp') center center / cover no-repeat;
  color: var(--color-white);
  padding: clamp(38px, 4vw, 54px) 36px clamp(38px, 4vw, 54px) var(--site-padding);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-tag {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #D1DFED;
  margin-bottom: 12px;
}

.team-headline {
  font-family: var(--font-title);
  font-size: clamp(26px, 2.3vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  letter-spacing: -0.4px;
  margin: 0;
}

.team-headline span {
  font-weight: 700;
  display: block;
}

.team-divider {
  width: 38px;
  height: 2.5px;
  background-color: var(--color-accent);
  margin: 16px 0 14px;
  border-radius: 1px;
}

.team-statement {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
  color: #E2E8F0;
  opacity: 0.95;
  margin: 0;
  max-width: 380px;
}

/* Middle photo of Christian Barton */
.team-photo-col {
  background: #E2E8F0;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
}

.team-photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  display: block;
  transition: transform 0.4s ease;
}

.team-photo-col:hover img {
  transform: scale(1.03);
}

/* Right Details & Quote - Full-bleed right */
.team-details-col {
  padding: clamp(38px, 4vw, 54px) var(--site-padding) clamp(38px, 4vw, 54px) 36px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: center;
  background-color: var(--color-white);
}

.advisor-name {
  font-family: var(--font-title);
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 3px;
  letter-spacing: -0.2px;
}

.advisor-role {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: #556980;
  margin-bottom: 16px;
  letter-spacing: 0.1px;
}

.advisor-credentials {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.advisor-credential-item {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}

.advisor-credential-item .cred-title {
  display: block;
  font-weight: 600;
  color: #1E293B;
}

.advisor-credential-item .cred-inst {
  display: block;
  color: #64748B;
}

.advisor-credential-item strong {
  font-weight: 600;
  color: #1E293B;
}

.team-quote-box {
  border-left: 1px solid #D6E2EC;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
}

.quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 36px;
  line-height: 0.8;
  color: var(--color-accent);
  margin-bottom: 10px;
  font-weight: 700;
  display: block;
}

.quote-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-primary);
  font-style: italic;
  font-weight: 500;
  margin: 0;
}

.team-quote-box::after {
  content: '';
  display: block;
  width: 38px;
  height: 2px;
  background-color: var(--color-accent);
  margin-top: 14px;
  border-radius: 1px;
}

/* ==========================================================================
   FOOTER (IMAGEN DE FONDO MONTAÑAS OCUPA TODO EL FOOTER)
   ========================================================================== */
.site-footer {
  position: relative;
  width: 100%;
  background: #001228 url('../img/IFA-fondo-footer-clean.webp') center bottom / cover no-repeat;
  color: var(--color-white);
  overflow: hidden;
}

/* Fila 1: Banner CTA Hablemos */
.footer-cta-banner {
  padding: 30px 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-banner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 0 var(--site-padding);
}

.cta-banner-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.cta-banner-title {
  font-family: var(--font-title);
  font-size: clamp(20px, 2.1vw, 25px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-white);
  text-align: center;
  letter-spacing: -0.3px;
}

.btn-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-title);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 12px 24px;
  border-radius: 0;
  transition: var(--transition);
}

.btn-banner:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-banner svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.btn-banner:hover svg {
  transform: translateX(4px);
}

/* Fila 2: Contacto y Enlaces */
.footer-top {
  padding: 22px var(--site-padding);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #CBD5E1;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: #FFFFFF;
}

.footer-contact-item a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

.social-link svg {
  width: 15px;
  height: 15px;
}

.footer-bottom {
  padding: 20px var(--site-padding);
  width: 100%;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #94A3B8;
  width: 100%;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.footer-nav a {
  color: #CBD5E1;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   MODAL DE CONTACTO
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 15, 35, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: var(--color-white);
  width: 100%;
  max-width: 540px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-window {
  transform: translateY(0) scale(1);
}

.modal-header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-white);
}

.modal-close {
  color: #94A3B8;
  font-size: 26px;
  line-height: 1;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--color-white);
}

.modal-body {
  padding: 26px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid #CBD5E1;
  border-radius: 3px;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(78, 193, 176, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Barra de Estado y de Éxito del Formulario */
.form-progress-container {
  margin-bottom: 18px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.form-progress-bar {
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.form-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4EC1B0, #001F4B);
  border-radius: 4px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s ease;
}

.form-progress-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
}

.form-progress-container.is-sending .form-progress-fill {
  background: linear-gradient(90deg, #4EC1B0, #001F4B);
  box-shadow: 0 0 8px rgba(78, 193, 176, 0.5);
}

.form-progress-container.is-success {
  background: #EBF8F6;
  border-color: #4EC1B0;
}

.form-progress-container.is-success .form-progress-fill {
  background: #4EC1B0;
  width: 100% !important;
  box-shadow: 0 0 10px rgba(78, 193, 176, 0.7);
}

.form-progress-container.is-success .form-progress-status {
  color: #065F46;
  font-weight: 600;
}

.form-progress-container.is-error {
  background: #FEF2F2;
  border-color: #EF4444;
}

.form-progress-container.is-error .form-progress-fill {
  background: #EF4444;
}

.form-progress-container.is-error .form-progress-status {
  color: #991B1B;
}

.form-alert {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13.5px;
  margin-bottom: 18px;
  display: none;
}

.form-alert.success {
  display: block;
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-alert.error {
  display: block;
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.btn-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-title);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 28px;
  border-radius: 3px;
  transition: var(--transition);
}

.btn-submit:hover:not(:disabled) {
  background-color: var(--color-accent);
  box-shadow: 0 6px 16px rgba(78, 193, 176, 0.3);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ==========================================================================
   WHATSAPP INTEGRATION & MODAL CTA
   ========================================================================== */
.modal-whatsapp-cta {
  background-color: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.modal-whatsapp-cta span {
  font-size: 13.5px;
  color: #166534;
  font-weight: 500;
}

.btn-whatsapp-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background-color: #25D366;
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
  transition: var(--transition);
}

.btn-whatsapp-direct:hover {
  background-color: #20BD5A;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-direct svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.modal-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 20px;
  color: #94A3B8;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-separator::before,
.modal-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E2E8F0;
}

.modal-separator span {
  padding: 0 14px;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 990;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  text-decoration: none;
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
  transition: transform 0.2s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #FFFFFF;
}

.floating-whatsapp:hover svg {
  transform: scale(1.05);
}

.floating-whatsapp:focus-visible {
  outline: 3px solid #4EC1B0;
  outline-offset: 3px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 920px) {
  :root {
    --header-height: 68px;
  }

  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: #FFFFFF;
    flex-direction: column;
    justify-content: flex-start;
    padding: 36px 28px;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 31, 75, 0.1);
    z-index: 999;
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 18px;
  }

  .nav-link {
    font-size: 16px;
    width: 100%;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #EDF2F7;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link.active {
    color: var(--color-accent);
    font-weight: 700;
  }

  .hero-section {
    min-height: auto;
    padding: 50px 0 60px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.88) 60%, rgba(255, 255, 255, 0.35) 100%), url('../img/IFA-banner-clean.webp') right center / cover no-repeat;
  }

  .hero-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .hero-watermark,
  .hero-values {
    display: none;
  }

  .desafio-grid {
    grid-template-columns: 1fr;
  }

  .desafio-col-1 {
    padding: 40px var(--site-padding) 24px;
  }

  .desafio-col-2 {
    padding: 0 var(--site-padding) 36px;
    border-left: none;
    border-top: 1px solid #E2E8F0;
  }

  .desafio-card-media {
    grid-column: auto;
    height: 280px;
    width: 100%;
  }

  .propuesta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .propuesta-card {
    border-right: none;
    padding: 0;
  }

  .asset-classes-list {
    justify-content: center;
  }

  .metodologia-layout {
    grid-template-columns: 1fr;
  }

  .metodologia-media {
    height: 280px;
    width: 100%;
  }

  .metodologia-center {
    padding: 36px var(--site-padding);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .step-item {
    border-right: none;
    padding: 0;
  }

  .metodologia-pillars {
    grid-column: auto;
    border-left: none;
    border-top: 1px solid #E2E8F0;
    padding: 28px var(--site-padding) 36px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .team-card-unified {
    grid-template-columns: 1fr;
  }

  .team-navy-col {
    padding: 36px var(--site-padding);
  }

  .team-photo-col {
    width: 100%;
    height: 380px;
  }

  .team-details-col {
    padding: 36px var(--site-padding);
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .team-quote-box {
    border-left: none;
    border-top: 1px solid #D6E2EC;
    padding-left: 0;
    padding-top: 24px;
  }

  .cta-banner-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 32px;
    line-height: 1.18;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-description {
    font-size: 14px;
  }

  .propuesta-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .asset-classes-list {
    gap: 10px;
  }

  .asset-class-item {
    font-size: 10px;
    letter-spacing: 1.2px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .metodologia-pillars {
    flex-direction: column;
    gap: 20px;
  }

  .team-photo-col {
    height: 320px;
  }

  .cta-banner-title {
    font-size: 19px;
  }

  .footer-contact-row,
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .modal-window {
    margin: 10px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .floating-whatsapp svg {
    width: 28px;
    height: 28px;
  }
}