/*
Theme Name: Crediok Theme
Theme URI: https://crediok.com/
Description: Tema de bloques personalizado y moderno para Crediok. Adaptado con diseño premium, interactividad en tiempo real y soporte nativo de WordPress 7.0.
Version: 1.0.0
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crediok
*/


:root {
  /* Habilitar transición nativa a alturas automáticas */
  interpolate-size: allow-keywords;
  
  /* Sistema de Diseño de CrediOK (TODO OK CON CREDIOK) */
  --primary: #31e5ea; /* Cian Neón Extraído */
  --primary-hover: #2accd0;
  --secondary: #caf456; /* Verde Lima Neón Extraído */
  --secondary-hover: #b4db47;
  --gradient-brand: #31e5ea; /* Sólido Cian */
  --gradient-dark: #012840; /* Sólido Navy */
  --bg-dark: #012840; /* Navy Oscuro Principal */
  --bg-dark-accent: #003651; /* Navy Secundario de Tarjetas */
  --bg-light: #f7f9fa; /* Fondo claro para alternar */
  --bg-card-light: #ffffff; /* Tarjeta clara */
  
  --text-primary: #ffffff; /* Texto claro en secciones oscuras */
  --text-muted: #afc0c9; /* Texto secundario gris azulado */
  --text-dark: #022940; /* Texto oscuro en secciones claras */
  --text-dark-muted: #536471;
  
  --border-color-light: #eaedef;
  --border-color-dark: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Manrope', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 17px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 54px; }
h2 { font-size: 40px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }

h1, h2, h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.text-gradient {
  color: var(--secondary);
}

/* Utilidades de Diseño */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Reset for Gutenberg is-layout-flow block gaps that break grids */
.wp-block-group > .hero-grid,
.wp-block-group > .todo-ok-grid,
.wp-block-group > .features-grid,
.wp-block-group > .info-grid,
.wp-block-group > .retiree-warning-grid,
.wp-block-group > .contact-grid,
.wp-block-group > .branches-grid {
  margin-block-start: 0 !important;
}

/* Specific resets for nested groups */
.slogan-huge-text > .slogan-line,
.slogan-text-col > *,
.warning-text-col > * {
  margin-block-start: 0 !important;
}

/* Reset figure margins from wp:image and wp:video */
figure.wp-block-image,
figure.wp-block-video {
  margin: 0;
  display: block;
}

main {
  position: relative;
  overflow: visible;
  display: block;
}

.wp-site-blocks > header + main,
.wp-site-blocks > main,
.wp-block-post-content > .hero:first-child {
  margin-block-start: 0 !important;
}

.wp-block-post-content {
  margin-block-start: 0 !important;
}

.wp-site-blocks > footer {
  margin-block-start: 0;
}

.section {
  padding: 80px 0;
}

/* Secciones Oscuras (Hero, Características, Contacto) */
.section-dark,
.info-section {
  background: var(--gradient-dark);
  color: var(--text-primary);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4,
.hero h1, .hero h2, .hero h3, .hero h4,
.info-section h1, .info-section h2, .info-section h3, .info-section h4 {
  color: var(--text-primary);
}

.section-dark p,
.hero p,
.info-section p {
  color: var(--text-muted);
}

/* Secciones Claras (Quiénes Somos, Alerta Jubilado, FAQ, Sucursales) */
.section-light,
.faq-section,
.sucursales-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.section-light h1, .section-light h2, .section-light h3, .section-light h4,
.faq-section h1, .faq-section h2, .faq-section h3, .faq-section h4,
.sucursales-section h1, .sucursales-section h2, .sucursales-section h3, .sucursales-section h4 {
  color: var(--text-dark);
}

.section-light p,
.faq-section p,
.sucursales-section p {
  color: var(--text-dark-muted);
}

/* Header & Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff; /* 100% blanco sólido */
  border-bottom: 1px solid var(--border-color-light);
  transition: var(--transition-smooth);
}

body.scrolled header {
  background: rgba(255, 255, 255, 0.8); /* backdrop filter en blanco */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  color: var(--text-dark);
}

.wp-block-site-logo.logo {
  margin: 0;
}

.wp-block-site-logo.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.logo-icon {
  margin-right: 10px;
  height: 40px;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition-smooth);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

/* Menú Móvil Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 5px 0;
  transition: var(--transition-smooth);
  border-radius: 3px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1), background-color 0.2s cubic-bezier(0.2, 0, 0, 1);
  text-decoration: none;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  user-select: none;
}

.wp-block-button.is-style-crediok-primary,
.wp-block-button.is-style-crediok-outline {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  transform: none !important;
}

.wp-block-button.is-style-crediok-primary .wp-block-button__link,
.wp-block-button.is-style-crediok-outline .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1), background-color 0.2s cubic-bezier(0.2, 0, 0, 1);
  text-decoration: none;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  user-select: none;
}

.btn:active {
  transform: scale(0.96) translateY(0) !important;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-dark);
  transition: var(--transition-smooth);
}

.wp-block-button.is-style-crediok-primary .wp-block-button__link {
  background: var(--gradient-brand);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(53, 192, 201, 0.3);
}

.wp-block-button.is-style-crediok-primary .wp-block-button__link:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(53, 192, 201, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary);
}

.wp-block-button.is-style-crediok-outline .wp-block-button__link {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.wp-block-button.is-style-crediok-outline .wp-block-button__link:hover {
  background: var(--primary);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 100px 0 120px;
  position: relative;
  overflow: visible;
  color: var(--text-primary);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: url('images/hero-crediok.webp') no-repeat center center;
  background-size: cover;
  transform: scaleX(-1); /* Inversión horizontal (flip) */
  pointer-events: none;
}

.hero-bg.wp-block-image {
  margin: 0;
  display: block;
}

.hero-bg.wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: rgba(1, 40, 64, 0.82); /* Sólido Navy con opacidad */
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 62px; /* Títulos más grandes */
  line-height: 1.08;
  margin-bottom: 0;
  color: var(--text-primary);
}

.hero-actions {
  gap: 22px !important;
  margin-top: 56px !important;
  margin-block-start: 56px !important;
}

.hero-content p {
  font-size: 22px; /* Textos de párrafo más grandes */
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text-primary);
}

.hero-feature-item svg {
  color: var(--secondary);
  flex-shrink: 0;
}

/* Calculadora Glassmorphic */
.calculator-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); /* Concentric outer radius */
  padding: 32px;
  box-shadow: var(--glass-shadow);
  position: relative;
  z-index: 2;
}

.calculator-card h3 {
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--text-primary);
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 12px;
}

.calc-group {
  margin-bottom: 24px;
}

.calc-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 8px;
}

.range-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.range-input {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-brand);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--primary);
}

.range-value {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary);
  min-width: 100px;
  text-align: right;
}

/* Plazos Pill Selector */
.term-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.term-option {
  position: relative;
}

.term-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.term-label {
  display: block;
  text-align: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition-smooth);
  color: var(--text-primary);
}

.term-option input:checked + .term-label {
  background: var(--gradient-brand);
  color: var(--bg-dark);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(53, 192, 201, 0.3);
}

.calc-results {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md); /* Concentric inner radius */
  padding: 20px;
  text-align: center;
  margin-top: 32px;
}

.calc-results p {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.monthly-payment {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  position: relative;
  z-index: 9;
}

.feature-card {
  position: relative;
  z-index: 10;
  background: var(--bg-card-light);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color-light);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(49, 229, 234, 0.1);
  border-color: var(--primary);
}

.feature-icon-wrapper {
  background: rgba(49, 229, 234, 0.1);
  color: var(--primary);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 16px;
  color: var(--text-dark-muted);
}

/* Info Tabs / Blocks (Características, Requisitos, Ventajas) */
.info-section {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  position: relative;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 2;
}

.info-column {
  background: rgba(1, 40, 64, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--glass-shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.info-column h3 {
  font-size: 26px;
  margin-bottom: 32px;
  color: var(--text-primary); /* Blanco para la sección oscura */
  border-bottom: 2px solid var(--primary);
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-column h3::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary);
  font-size: 18px;
}

.info-column-features h3::before {
  content: '\f0e7';
}

.info-column-requirements h3::before {
  content: '\f46d';
}

.info-column-benefits h3::before {
  content: '\f055';
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 !important;
  padding: 0;
}

.info-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 17px;
  color: var(--text-muted); /* Gris claro para sección oscura */
}

.info-list li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--secondary); /* Verde de la marca */
  flex-shrink: 0;
  margin-top: 4px;
}

/* Retiree Warning Section - Full-Bleed 2 Columns with Divider */
.retiree-warning {
  background: var(--bg-dark);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  padding: 0; /* Remove default top/bottom section padding */
}

.retiree-warning-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 6px minmax(0, 1.1fr);
  align-items: stretch;
  width: 100%;
  position: relative;
  z-index: 2;
}

.warning-text-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 66px;
  padding-bottom: 190px;
  padding-right: 50px;
  padding-left: calc((100vw - 1200px) / 2 + 24px);
}

.warning-text-col > .wp-block-heading {
  margin-bottom: 4px !important;
}

@media screen and (max-width: 1200px) {
  .warning-text-col {
    padding-left: 24px;
    padding-right: 32px;
  }
}

.warning-divider {
  width: 6px;
  background-color: var(--primary); /* Cyan solid */
  align-self: stretch;
}

.warning-card {
  background: transparent !important;
  border: none !important;
  border-left: none !important;
  padding: 0 !important;
  margin-bottom: 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.warning-card:last-child {
  margin-bottom: 0;
}

.warning-card-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 4px;
}

.warning-card-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 8px;
  display: block;
}

.warning-card-content p {
  color: var(--text-muted) !important;
  font-size: 16px;
  line-height: 1.6;
}

.retiree-img-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.retiree-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.retiree-img video,
.slogan-full-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.retiree-img video {
  object-position: 56% center;
}

@media screen and (min-width: 1025px) and (max-width: 1600px) {
  .retiree-warning-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "warning-copy"
      "warning-media";
    align-items: stretch;
    min-height: 0;
  }

  .warning-text-col {
    grid-area: warning-copy;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) repeat(2, minmax(260px, 1fr));
    gap: 34px;
    align-items: start;
    padding: 72px max(48px, calc((100vw - 1200px) / 2 + 24px)) 42px;
  }

  .warning-text-col > .wp-block-heading {
    margin: 0 !important;
  }

  .warning-card {
    margin-top: 12px;
  }

  .warning-divider {
    display: none;
  }

  .retiree-img-container {
    grid-area: warning-media;
    align-self: stretch;
    height: clamp(520px, 58vw, 800px);
    overflow: hidden;
    background: var(--bg-dark);
  }

  .retiree-img video {
    object-position: 50% 38%;
  }

  .retiree-img-container::after {
    content: none;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1180px) {
  .warning-text-col {
    grid-template-columns: 1fr 1fr;
  }

  .warning-text-col > .wp-block-heading {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 1024px) {
  .retiree-warning-grid {
    grid-template-columns: 1fr;
  }
  .warning-text-col {
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 80px;
    padding-bottom: 210px;
  }
  .warning-divider {
    width: 100%;
    height: 6px;
  }
  .retiree-img-container {
    height: 450px;
  }
  .retiree-img {
    position: relative;
    height: 100%;
  }
}

.faq-section {
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.faq-section .container {
  position: relative;
  z-index: 2;
}

.faq-glow {
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background-color: var(--primary); /* Sólido cian */
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px); /* Suaviza el círculo sólido en un resplandor */
  transform-origin: bottom right;
  animation: breathingGlowRight 10s ease-in-out infinite alternate;
}

.faq-mini-ribbon {
  position: absolute;
  top: 48%;
  left: -146px;
  width: 560px;
  height: 520px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.faq-mini-ribbon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

@keyframes breathingGlowRight {
  0% {
    transform: scale(0.85);
    opacity: 0.12;
  }
  100% {
    transform: scale(1.15);
    opacity: 0.28;
  }
}

.info-mini-ribbon {
  position: absolute;
  top: 64px;
  left: -184px;
  transform: none;
  right: auto;
  width: 680px;
  height: 560px;
  pointer-events: none;
  z-index: 7;
  opacity: 0.9;
}

.info-mini-ribbon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.faq-mini-ribbon .scroll-path,
.info-mini-ribbon .scroll-path {
  stroke-width: 46;
}

.info-mini-ribbon .scroll-path {
  stroke-width: 58;
}

.faq-mini-ribbon .scroll-path {
  stroke-width: 54;
}

.info-section .container {
  position: relative;
  z-index: 8;
}

.faq-wrapper {
  max-width: 1100px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
  position: relative;
  z-index: 2;
}

@media screen and (max-width: 768px) {
  .faq-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Estilos de Acordeón FAQ Premium */
details.faq-item {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
  display: block; /* Asegurar renderizado en bloque */
  block-size: auto; /* Requerido para interpolación de tamaño */
  position: relative;
}

details.faq-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  transition: var(--transition-smooth);
}

details.faq-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: rgba(49, 229, 234, 0.3);
}

details.faq-item[open] {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(49, 229, 234, 0.08);
}

details.faq-item[open]::before {
  background: var(--primary);
}

details.faq-item summary {
  padding: 24px 32px;
  font-weight: 700;
  font-size: 19px;
  color: var(--bg-dark);
  cursor: pointer;
  list-style: none; /* Ocultar marcador nativo */
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  outline: none;
  font-family: var(--font-heading);
  gap: 16px;
}

details.faq-item summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary);
  flex-shrink: 0;
  background: var(--bg-light);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

/* Ocultar marcador nativo en Safari */
details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item[open] summary::after {
  transform: rotate(180deg);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(49, 229, 234, 0.3);
}

details.faq-item > p,
details.faq-item > ul {
  padding: 0 32px 24px 32px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dark-muted);
  border-top: 1px solid transparent;
  transition: var(--transition-smooth);
}

details.faq-item[open] > p,
details.faq-item[open] > ul {
  border-top-color: var(--border-color-light);
  padding-top: 24px;
}

/* Animaciones del Acordeón coninterpolate-size */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

details.faq-item[open] > p,
details.faq-item[open] > ul {
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Call to Action Banner */
.cta-banner {
  background: var(--gradient-brand);
  padding: 48px 0;
  color: var(--bg-dark);
  text-align: center;
}

.cta-banner-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  text-align: left;
}

.cta-banner-grid h2 {
  font-size: 32px;
  color: var(--bg-dark);
}

.cta-banner-grid p {
  font-size: 16px;
  font-weight: 500;
  color: rgba(2, 41, 64, 0.8);
}

/* Sucursales Section */
.sucursales-section {
  background: var(--bg-light);
  position: relative;
}

.search-container {
  max-width: 500px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 2;
}

.section-heading {
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-heading p {
  color: var(--text-dark-muted);
}

.search-input {
  width: 100%;
  padding: 16px 20px;
  padding-left: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color-light);
  font-family: var(--font-main);
  font-size: 16px;
  background: #ffffff;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(49, 229, 234, 0.1);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dark-muted);
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.branch-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 24px 24px 32px;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.branch-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: var(--primary);
  transition: var(--transition-smooth);
}

.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.branch-card:hover::before {
  background: var(--secondary);
  width: 8px;
}

.branch-card h4 {
  font-size: 19px;
  margin-bottom: 16px;
  color: var(--bg-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.branch-card h4::before {
  content: '\f3c5'; /* FontAwesome map-marker-alt */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary);
  font-size: 18px;
}

.branch-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-dark-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
  background: var(--bg-light);
  padding: 8px 16px;
  border-radius: 100px;
  align-self: flex-start;
  font-weight: 600;
  border: 1px solid transparent;
}

.branch-phone:hover {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(49, 229, 234, 0.15);
}

.branch-phone i, .branch-phone svg {
  color: var(--primary);
}

/* Contacto y Formulario */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 86px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info h3 {
  font-size: 32px;
  margin-bottom: 0;
  color: var(--text-primary); /* Texto blanco para sección oscura */
}

.contact-info p {
  color: var(--text-muted); /* Gris claro para sección oscura */
  margin-bottom: 0;
  font-size: 17px;
  max-width: 520px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 6px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-icon {
  background: rgba(53, 192, 201, 0.1);
  color: var(--primary);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.contact-icon::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

.contact-item-clock .contact-icon::before {
  content: '\f017';
}

.contact-item-phone .contact-icon::before {
  content: '\f095';
}

.contact-item-whatsapp .contact-icon {
  color: #25D366;
  background: rgba(37, 211, 102, 0.1);
}

.contact-item-whatsapp .contact-icon::before {
  content: '\f232';
  font-family: 'Font Awesome 6 Brands';
  font-weight: 400;
}

.contact-item-text h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary); /* Blanco para la sección oscura */
}

.contact-item-text p,
.contact-item-text a {
  color: var(--text-muted); /* Gris claro para sección oscura */
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-item-text a:hover {
  color: var(--primary);
}

.contact-form-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--glass-shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.form-group-full {
  grid-column: span 2;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-main);
  font-size: 15px;
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
  color: #ffffff !important;
}

/* Color de placeholder */
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1;
}

.form-control::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.form-control::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1;
}

.form-control:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Opciones de select */
.form-control option {
  background: var(--bg-dark-accent);
  color: #ffffff;
}

/* Prevenir texto negro en autocompletado (Autofill) */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0 1000px #003651 inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(49, 229, 234, 0.15);
}

textarea.form-control {
  resize: vertical;
}

/* Footer */
footer {
  background: #001a2b;
  color: var(--text-muted);
  padding: 42px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  align-items: center;
  column-gap: 72px;
  row-gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  width: 138px;
  margin: 0 !important;
}

.footer-logo-img img {
  width: 138px;
  height: auto;
  display: block;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 !important;
  text-align: center;
  justify-self: center;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0 0 0 12px;
  white-space: nowrap;
  justify-self: end;
}

.footer-links .wp-block-navigation__container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: max-content;
}

.footer-links .wp-block-navigation-item {
  width: auto;
  flex: 0 0 auto;
}

.footer-link,
.footer-links .wp-block-navigation-item__content {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.footer-link:hover,
.footer-links .wp-block-navigation-item__content:hover {
  color: var(--primary);
}

.legal-page {
  padding: 120px 24px;
}

.legal-page h1 {
  margin-bottom: 28px;
  color: var(--text-dark);
}

.legal-page h2 {
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.legal-page p {
  color: var(--text-dark-muted);
  font-size: 17px;
  line-height: 1.75;
}

/* Estilos de Sección en Línea (Crédito en Línea) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 40, 64, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 40px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  transform: translateY(-20px);
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
}

.modal-card .form-control {
  background: #f8f9fa;
  border: 1px solid #ced4da;
  color: var(--text-dark) !important;
}

.modal-card .form-control::placeholder {
  color: #6c757d !important;
}

.modal-card .form-control option {
  background: #ffffff;
  color: var(--text-dark);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark-muted);
  font-size: 24px;
  transition: var(--transition-smooth);
}

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

/* Shape Dividers (Ondas entre Bloques) */
.shape-divider {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  z-index: 5; /* Render above backgrounds, videos, and gradients */
}

.shape-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 220px; /* Made the wave taller and more pronounced */
}

.shape-divider-bottom {
  bottom: -1px; /* Evitar líneas de un pixel por redondeo */
}

/* Ajustes de espaciado para que no solape el contenido */
.hero {
  padding-bottom: 300px;
}

#quienes-somos {
  padding-bottom: 170px;
}

#creditos {
  padding-bottom: 170px;
}

.sucursales-section {
  padding-bottom: 170px;
}

/* Responsivo */
@media screen and (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 38px;
  }
  
  .hero-content p {
    margin: 0 auto 36px;
  }
  
  .hero-features-list {
    align-items: center;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .retiree-warning-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .footer-brand,
  .footer-links {
    justify-content: center;
  }

  .footer-copy {
    order: 3;
  }
}

@media screen and (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-color-light);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .form-group-full {
    grid-column: span 1;
  }
  
  .cta-banner-grid {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  .scroll-path {
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }
}

/* Estilos para las Cintas SVG Animadas (Scroll Ribbons) por Sección */
.section-ribbon {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2; /* Render on top of background but below content (3) */
  overflow: hidden;
}

.section-ribbon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.scroll-path {
  fill: none;
  stroke-width: 38;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.3s ease;
  vector-effect: non-scaling-stroke;
}

.scroll-path.is-ribbon-ready {
  opacity: 1;
}

.scroll-path.path-cyan {
  stroke: var(--primary);
}

.scroll-path.path-lime {
  stroke: var(--secondary);
}

/* Override WordPress default block gaps that break static layouts */
.is-layout-flow > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.hero-content > .hero-actions {
  margin-block-start: 56px !important;
}

.section, .hero, .retiree-warning, .cta-banner, footer {
  position: relative;
  /* z-index removed to let section backgrounds stay at z-index: auto (level 0) */
}

.container, .retiree-warning-grid, .hero-grid, .contact-grid {
  position: relative;
  z-index: 3; /* Render on top of ribbon container (z-index 2) */
}

@media screen and (max-width: 768px) {
  .shape-divider svg {
    height: 120px;
  }

  .section-ribbon {
    top: auto;
    bottom: 20px;
    height: 46%;
    opacity: 1;
  }

  .section-ribbon .scroll-path {
    stroke-width: 28;
  }

  .hero {
    padding-bottom: 230px;
  }

  .hero .section-ribbon {
    bottom: -10px;
    height: 44%;
    opacity: 1;
  }

  .hero .section-ribbon .scroll-path {
    stroke-width: 26;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px !important;
  }

  .hero-actions .wp-block-button,
  .hero-actions .wp-block-button__link {
    width: 100%;
  }

  .hero-actions .wp-block-button__link {
    min-height: 54px;
  }

  #quienes-somos,
  #creditos,
  .sucursales-section {
    padding-bottom: 110px;
  }

  .todo-ok-block .shape-divider svg,
  .retiree-warning .shape-divider svg {
    height: 96px;
  }

  .slogan-text-col {
    padding: 72px 24px 78px;
    gap: 28px;
  }

  .slogan-huge-text {
    margin-bottom: 0;
  }

  .slogan-desc {
    margin: 0 auto;
  }

  .slogan-features-list {
    gap: 22px;
  }

  .slogan-video-col {
    height: 340px;
    margin-top: -24px;
  }

  .slogan-video-col::before {
    display: none;
  }

  .slogan-full-video video {
    object-position: 68% 34%;
  }

  .info-mini-ribbon {
    top: 18px;
    left: -96px;
    width: 330px;
    height: 320px;
    opacity: 1;
    z-index: 1;
  }

  .info-mini-ribbon .scroll-path {
    stroke-width: 28;
  }

  .faq-mini-ribbon {
    left: -120px;
    width: 360px;
    height: 340px;
    opacity: 1;
  }

  .faq-mini-ribbon .scroll-path {
    stroke-width: 30;
  }

  .warning-text-col {
    padding-top: 64px;
    padding-bottom: 86px;
  }

  .warning-divider {
    display: none;
  }

  .retiree-img-container {
    height: clamp(250px, 58vw, 340px);
  }

  .retiree-img video {
    object-position: 50% 38%;
  }
}

@media screen and (max-width: 480px) {
  .shape-divider svg {
    height: 88px;
  }

  .hero {
    padding-bottom: 210px;
  }

  .hero .section-ribbon {
    bottom: -18px;
    height: 42%;
    opacity: 1;
  }

  .hero .section-ribbon .scroll-path {
    stroke-width: 24;
  }

  .slogan-text-col {
    padding: 64px 24px 70px;
    gap: 30px;
  }

  .slogan-video-col {
    height: 330px;
    margin-top: -34px;
  }

  .slogan-full-video video {
    object-position: 68% 30%;
  }

  .info-mini-ribbon {
    top: 26px;
    left: -118px;
    width: 340px;
    height: 330px;
    opacity: 1;
  }

  .info-mini-ribbon .scroll-path {
    stroke-width: 28;
  }

  .retiree-img-container {
    height: 280px;
  }
}

/* Final mobile visual overrides */
@media screen and (max-width: 768px) {
  .section-ribbon,
  .info-mini-ribbon,
  .faq-mini-ribbon {
    opacity: 1;
  }

  .section-ribbon .scroll-path {
    stroke-width: 28px;
  }

  .hero {
    padding-bottom: 230px;
  }

  .hero .section-ribbon {
    bottom: -10px;
    height: 44%;
    opacity: 1;
    width: 100%;
  }

  .hero .section-ribbon .scroll-path {
    stroke-width: 26px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px !important;
  }

  .hero-actions .wp-block-button,
  .hero-actions .wp-block-button__link {
    width: 100%;
  }

  .hero-actions .wp-block-button__link {
    min-height: 54px;
  }

  .info-mini-ribbon {
    width: 360px;
    height: 340px;
  }

  .info-mini-ribbon .scroll-path {
    stroke-width: 28px;
  }

  .faq-mini-ribbon .scroll-path {
    stroke-width: 32px;
  }

  .warning-divider {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .hero {
    padding-bottom: 210px;
  }

  .hero .section-ribbon {
    bottom: -18px;
    height: 42%;
    opacity: 1;
    width: 100%;
  }

  .hero .section-ribbon .scroll-path {
    stroke-width: 24px;
  }

  .info-mini-ribbon {
    top: 26px;
    left: -118px;
    width: 340px;
    height: 330px;
    opacity: 1;
  }

  .info-mini-ribbon .scroll-path {
    stroke-width: 28px;
  }
}

@media screen and (max-width: 768px) {
  .section-ribbon {
    opacity: 1;
  }

  .section-ribbon .scroll-path {
    stroke-width: 28;
  }

  .hero {
    padding-bottom: 230px;
  }

  .hero .section-ribbon {
    bottom: -10px;
    height: 44%;
    opacity: 1;
  }

  .hero .section-ribbon .scroll-path {
    stroke-width: 26;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px !important;
  }

  .hero-actions .wp-block-button,
  .hero-actions .wp-block-button__link {
    width: 100%;
  }

  .hero-actions .wp-block-button__link {
    min-height: 54px;
  }

  .info-mini-ribbon,
  .faq-mini-ribbon {
    opacity: 1;
  }

  .info-mini-ribbon {
    width: 360px;
    height: 340px;
  }

  .info-mini-ribbon .scroll-path {
    stroke-width: 28;
  }

  .faq-mini-ribbon .scroll-path {
    stroke-width: 32;
  }

  .warning-divider {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .hero {
    padding-bottom: 210px;
  }

  .hero .section-ribbon {
    bottom: -18px;
    height: 42%;
    opacity: 1;
  }

  .hero .section-ribbon .scroll-path {
    stroke-width: 24;
  }

  .info-mini-ribbon {
    top: 26px;
    left: -118px;
    width: 340px;
    height: 330px;
    opacity: 1;
  }

  .info-mini-ribbon .scroll-path {
    stroke-width: 28;
  }
}

/* Final mobile ribbon and hero overrides */
@media screen and (max-width: 768px) {
  .section-ribbon {
    opacity: 1;
  }

  .section-ribbon .scroll-path {
    stroke-width: 28;
  }

  .hero {
    padding-bottom: 230px;
  }

  .hero .section-ribbon {
    bottom: -10px;
    height: 44%;
    opacity: 1;
  }

  .hero .section-ribbon .scroll-path {
    stroke-width: 26;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px !important;
  }

  .hero-actions .wp-block-button,
  .hero-actions .wp-block-button__link {
    width: 100%;
  }

  .hero-actions .wp-block-button__link {
    min-height: 54px;
  }

  .info-mini-ribbon,
  .faq-mini-ribbon {
    opacity: 1;
  }

  .info-mini-ribbon {
    width: 360px;
    height: 340px;
  }

  .info-mini-ribbon .scroll-path {
    stroke-width: 28;
  }

  .faq-mini-ribbon .scroll-path {
    stroke-width: 32;
  }

  .warning-divider {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .hero {
    padding-bottom: 210px;
  }

  .hero .section-ribbon {
    bottom: -18px;
    height: 42%;
    opacity: 1;
  }

  .hero .section-ribbon .scroll-path {
    stroke-width: 24;
  }

  .info-mini-ribbon {
    top: 26px;
    left: -118px;
    width: 340px;
    height: 330px;
    opacity: 1;
  }

  .info-mini-ribbon .scroll-path {
    stroke-width: 28;
  }
}

/* Final mobile ribbon and hero overrides */
@media screen and (max-width: 768px) {
  .section-ribbon {
    opacity: 1;
  }

  .section-ribbon .scroll-path {
    stroke-width: 28;
  }

  .hero {
    padding-bottom: 230px;
  }

  .hero .section-ribbon {
    bottom: -10px;
    height: 44%;
    opacity: 1;
  }

  .hero .section-ribbon .scroll-path {
    stroke-width: 26;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px !important;
  }

  .hero-actions .wp-block-button,
  .hero-actions .wp-block-button__link {
    width: 100%;
  }

  .hero-actions .wp-block-button__link {
    min-height: 54px;
  }

  .info-mini-ribbon,
  .faq-mini-ribbon {
    opacity: 1;
  }

  .info-mini-ribbon {
    width: 360px;
    height: 340px;
  }

  .info-mini-ribbon .scroll-path {
    stroke-width: 28;
  }

  .faq-mini-ribbon .scroll-path {
    stroke-width: 32;
  }

  .warning-divider {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .hero {
    padding-bottom: 210px;
  }

  .hero .section-ribbon {
    bottom: -18px;
    height: 42%;
    opacity: 1;
  }

  .hero .section-ribbon .scroll-path {
    stroke-width: 24;
  }

  .info-mini-ribbon {
    top: 26px;
    left: -118px;
    width: 340px;
    height: 330px;
    opacity: 1;
  }

  .info-mini-ribbon .scroll-path {
    stroke-width: 28;
  }
}

/* Slogan Badge en Hero */
.slogan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(49, 229, 234, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(49, 229, 234, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(49, 229, 234, 0);
  }
}

/* Sección Todo OK (Slogan) */
.todo-ok-block {
  padding: 0; /* Full height allows bleeding to edges */
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
}

.todo-ok-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  width: 100%;
}

.slogan-text-col {
  padding-top: 100px;
  padding-bottom: 200px;
  padding-right: 60px;
  padding-left: calc((100vw - 1200px) / 2 + 24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slogan-video-col {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Gradient overlay to seamlessly blend the video's background with the site's bg-dark */
.slogan-video-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: -1px; /* Overlap by 1px to avoid any sub-pixel gap */
  width: 150px;
  height: 100%;
  background: linear-gradient(to right, var(--bg-dark) 0%, var(--bg-dark) 20%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.slogan-full-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slogan-full-video.wp-block-video {
  margin: 0;
}

.slogan-full-video video {
  object-position: 72% center;
}

.slogan-huge-text {
  font-family: var(--font-heading);
  font-size: 78px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
  color: #ffffff;
}

.slogan-line {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slogan-word {
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1;
}

.slogan-ok-huge {
  font-size: 110px;
  line-height: 0.9;
  letter-spacing: -3px;
  margin-left: 4px;
  margin-block: 0 !important;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: var(--primary) !important;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.slogan-ok-o {
  color: var(--primary);
}

.slogan-ok-k {
  color: var(--secondary);
}

.slogan-with-logo {
  gap: 20px;
}

.slogan-logo-img {
  height: 80px;
  width: auto;
}

.slogan-logo-img img {
  height: 100% !important;
  width: auto !important;
  display: block;
}

.slogan-desc {
  font-size: 22px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.slogan-features-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
  margin: 0 !important;
  padding: 0;
}

.slogan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 18px;
  color: #ffffff;
}

.slogan-features-list li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--secondary);
  margin-top: 2px;
  flex-shrink: 0;
}

@media screen and (max-width: 1024px) {
  .todo-ok-grid {
    grid-template-columns: 1fr;
  }
  .slogan-text-col {
    padding: 80px 24px 140px;
    text-align: center;
  }
  .slogan-video-col {
    height: 400px;
    position: relative;
  }
  .slogan-full-video {
    position: absolute;
  }
  .slogan-huge-text {
    font-size: 54px;
    align-items: center;
  }
  .slogan-logo-img {
    height: 72px;
    align-self: center;
    margin-top: 14px;
  }
  .slogan-desc {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 32px;
  }
  .slogan-features-list li {
    justify-content: center;
    text-align: left;
  }
}

.editor-styles-wrapper .hero,
.editor-styles-wrapper .section,
.editor-styles-wrapper .retiree-warning {
  margin-top: 0;
}

.editor-styles-wrapper .hero {
  min-height: 560px;
}

.editor-styles-wrapper .section-ribbon,
.editor-styles-wrapper .shape-divider,
.editor-styles-wrapper .faq-glow,
.editor-styles-wrapper .faq-mini-ribbon,
.editor-styles-wrapper .info-mini-ribbon {
  pointer-events: none;
}

/* Contact Form 7 Custom Styles */
.wpcf7-submit {
  width: 100%;
  margin-top: 10px;
}

.wpcf7-response-output {
  border-radius: 8px !important;
  border: none !important;
  color: white !important;
  font-weight: 500;
  font-size: 14px;
  padding: 16px !important;
  margin-top: 16px !important;
}

.wpcf7 form.sent .wpcf7-response-output {
  background: var(--primary) !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  background: #ff6b6b !important;
}

/* Mobile composition refinements */
@media screen and (max-width: 768px) {
  .shape-divider svg {
    height: 120px;
  }

  .section-ribbon {
    top: auto;
    bottom: 20px;
    height: 42%;
    opacity: 1;
  }

  .section-ribbon .scroll-path {
    stroke-width: 24;
  }

  .hero {
    padding-bottom: 170px;
  }

  .hero .section-ribbon {
    bottom: 8px;
    height: 36%;
    opacity: 1;
  }

  .hero .section-ribbon .scroll-path {
    stroke-width: 22;
  }

  #quienes-somos,
  #creditos,
  .sucursales-section {
    padding-bottom: 110px;
  }

  .todo-ok-block .shape-divider svg,
  .retiree-warning .shape-divider svg {
    height: 96px;
  }

  .slogan-text-col {
    padding: 72px 24px 78px;
    gap: 28px;
    text-align: center;
  }

  .slogan-huge-text {
    margin-bottom: 0;
  }

  .slogan-desc {
    margin: 0 auto;
  }

  .slogan-features-list {
    gap: 22px;
  }

  .slogan-video-col {
    height: 340px;
    margin-top: -24px;
  }

  .slogan-video-col::before {
    display: none;
  }

  .slogan-full-video video {
    object-position: 68% 34%;
  }

  .info-mini-ribbon {
    top: 18px;
    left: -96px;
    width: 330px;
    height: 320px;
    opacity: 1;
    z-index: 1;
  }

  .info-mini-ribbon .scroll-path {
    stroke-width: 28;
  }

  .faq-mini-ribbon {
    left: -120px;
    width: 360px;
    height: 340px;
    opacity: 1;
  }

  .faq-mini-ribbon .scroll-path {
    stroke-width: 30;
  }

  .warning-text-col {
    padding-top: 64px;
    padding-bottom: 86px;
  }

  .warning-divider {
    display: none;
  }

  .retiree-img-container {
    height: clamp(250px, 58vw, 340px);
  }

  .retiree-img video {
    object-position: 50% 38%;
  }
}

@media screen and (max-width: 480px) {
  .shape-divider svg {
    height: 88px;
  }

  .hero {
    padding-bottom: 210px;
  }

  .hero .section-ribbon {
    bottom: -18px;
    height: 42%;
    opacity: 1;
    width: 100%;
  }

  .hero .section-ribbon .scroll-path {
    stroke-width: 24px;
  }

  .slogan-text-col {
    padding: 64px 24px 70px;
    gap: 30px;
  }

  .slogan-video-col {
    height: 330px;
    margin-top: -34px;
  }

  .slogan-full-video video {
    object-position: 68% 30%;
  }

  .info-mini-ribbon {
    top: 26px;
    left: -118px;
    width: 340px;
    height: 330px;
    opacity: 1;
  }

  .info-mini-ribbon .scroll-path {
    stroke-width: 28px;
  }

  .retiree-img-container {
    height: 280px;
  }
}
