/* ============================================
   RENOPIEL21 — Estilos Compartidos
   ============================================ */

/* ---------- VARIABLES (PALETA ESTRICTA) ---------- */
:root {
  --primary: #009DFF;
  --primary-hover: #007BCC;

  --secondary: #1F3C5C;
  --secondary-hover: #162C45;

  --accent: #E63946;
  --accent-hover: #D62839;

  --background: #F7F9FB;
  --background-alt: #EDF2F7;
  --border: #E5E7EB;

  --white-soft: #FFFFFF;

  --text: #2F2F2F;
  --text-light: #6B7280;

  --font-heading:       'Playfair Display', serif;
  --font-body:          'Inter', sans-serif;
  --font-quote:         'Newsreader', serif;

  --nav-height:         72px;
  --z-parallax:         0;
  --z-content:          10;
  --z-nav:              100;
  --z-whatsapp:         9999;

  --shadow-xs: 0 4px 10px rgba(0,0,0,0.05);
  --shadow-sm: 0 8px 20px rgba(0,0,0,0.08);
  --shadow-md: 0 12px 30px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- TIPOGRAFÍA ---------- */
h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
}

.quote-text {
  font-family: var(--font-quote);
  font-style: italic;
}

/* ---------- LAYOUT UTILITIES ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 60px 0;
}

/* ---------- NAVEGACIÓN (FLOTANTE) ---------- */
.nav-wrapper {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none; /* Permite clickar los elementos detrás del wrapper */
}

.site-nav {
  pointer-events: auto;
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 16px);
  max-width: 1400px;
  height: 52px;
  padding: 0 18px;
  background: rgba(0, 157, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  z-index: 1000;
}

.site-nav.scrolled {
  width: calc(100% - 32px);
  max-width: 1200px;
  height: 46px;
  padding: 0 14px;
  background: rgba(0, 157, 255, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Navbar sobre fondo oscuro (hero azul) — colores invertidos a blanco */
.site-nav.over-dark {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(31, 60, 92, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.10);
}
.site-nav.over-dark .nav-logo {
  color: var(--secondary);
}
.site-nav.over-dark .nav-links a {
  color: var(--secondary);
}
.site-nav.over-dark .nav-links a:hover,
.site-nav.over-dark .nav-links a.active {
  color: var(--primary);
  opacity: 1;
}
.site-nav.over-dark .nav-links a.active::after {
  background: var(--primary);
}
.site-nav.over-dark .nav-actions a {
  color: var(--secondary);
}
.site-nav.over-dark .nav-actions a:hover {
  color: var(--primary);
}
.site-nav.over-dark .hamburger span {
  background: var(--secondary);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.nav-logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white-soft);
  letter-spacing: 1px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white-soft);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: all 200ms;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  opacity: 0.9;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-actions a {
  color: var(--white-soft);
  transition: color 200ms;
  display: flex;
  align-items: center;
}

.nav-actions a:hover {
  color: #ffffff;
  opacity: 0.9;
}

/* Hamburguesa móvil */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white-soft);
  border-radius: 999px;
  transition: transform 300ms, opacity 300ms;
}

.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- NAV DROPDOWN (Qué hacemos) ---------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-dropdown__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: -2px;
  color: var(--white-soft);
  transition: transform 300ms, color 200ms;
}

.nav-dropdown__arrow .material-symbols-outlined {
  font-size: 18px;
  transition: transform 300ms;
}

.nav-dropdown__arrow.open .material-symbols-outlined {
  transform: rotate(180deg);
}

/* Over-dark (white navbar) arrow color */
.site-nav.over-dark .nav-dropdown__arrow {
  color: var(--secondary);
}
.site-nav.over-dark .nav-dropdown__arrow:hover {
  color: var(--primary);
}

/* Dropdown Panel */
.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 560px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1001;
}

.nav-dropdown__panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Flecha decorativa arriba del panel */
.nav-dropdown__panel::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-dropdown__header {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.nav-dropdown__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.nav-dropdown__item {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text) !important;
  text-decoration: none;
  border-radius: 10px;
  transition: background 200ms, color 200ms, transform 150ms;
  text-transform: none;
  letter-spacing: 0;
}

.nav-dropdown__item:hover {
  background: rgba(0, 157, 255, 0.08);
  color: var(--primary) !important;
  transform: translateX(2px);
}

.nav-dropdown__viewall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white-soft) !important;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  background: var(--accent);
  transition: all 200ms;
}

.nav-dropdown__viewall:hover {
  background: var(--accent-hover);
  color: var(--white-soft) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Back button & scroll hints: hidden on desktop */
.nav-dropdown__back,
.nav-dropdown__scroll-hint {
  display: none;
}

/* ---- Responsive: Tablet/Mobile dropdown ---- */
@media (max-width: 1024px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown__trigger {
    width: 100%;
    justify-content: flex-end;
  }

  .nav-dropdown__arrow {
    color: var(--white-soft);
    margin-left: 4px;
  }

  .site-nav.over-dark .nav-dropdown__arrow {
    color: var(--secondary);
  }

  /* The nav-links needs relative positioning for overlay */
  .nav-links {
    position: absolute; /* already set, just ensuring */
  }

  .nav-dropdown__panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    min-height: 100%;
    max-height: 70vh;
    width: 100%;
    padding: 20px 16px;
    margin-top: 0;
    border-radius: 20px;
    background: rgba(0, 157, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    border: none;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, visibility 0.25s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }

  .nav-dropdown__panel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .site-nav.over-dark .nav-dropdown__panel {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .nav-dropdown__panel.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .nav-dropdown__panel::before {
    display: none;
  }

  /* Scroll indicators — positioned absolutely to not take flow space */
  .nav-dropdown__scroll-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    z-index: 5;
    padding: 4px 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    flex-shrink: 0;
    height: 0;
    overflow: visible;
  }

  .nav-dropdown__scroll-hint--down {
    bottom: 0;
  }

  .nav-dropdown__scroll-hint--up {
    top: 0;
  }

  .nav-dropdown__scroll-hint.visible {
    opacity: 1;
  }

  .nav-dropdown__scroll-hint .material-symbols-outlined {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
    animation: scrollHintPulse 1.8s ease-in-out infinite;
  }

  .site-nav.over-dark .nav-dropdown__scroll-hint .material-symbols-outlined {
    color: rgba(0, 0, 0, 0.25);
  }

  @keyframes scrollHintPulse {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(3px); opacity: 1; }
  }

  .nav-dropdown__scroll-hint--up .material-symbols-outlined {
    animation-name: scrollHintPulseUp;
  }

  @keyframes scrollHintPulseUp {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-3px); opacity: 1; }
  }

  /* Back button — sticky at top */
  .nav-dropdown__back {
    display: flex;
    align-items: center;
    gap: 6px;
    position: sticky;
    top: -20px;
    z-index: 6;
    background: rgba(0, 157, 255, 0.96);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white-soft);
    padding: 12px 4px 10px;
    margin: -20px -16px 8px;
    width: calc(100% + 32px);
    border-radius: 20px 20px 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 200ms;
  }

  .nav-dropdown__back:hover {
    opacity: 0.8;
  }

  .nav-dropdown__back .material-symbols-outlined {
    font-size: 18px;
  }

  .site-nav.over-dark .nav-dropdown__back {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-dropdown__header {
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .site-nav.over-dark .nav-dropdown__header {
    color: var(--text-light);
    border-bottom-color: var(--border);
  }

  .nav-dropdown__grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .nav-dropdown__item {
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white-soft) !important;
    text-align: right;
    border-radius: 8px;
  }

  .nav-dropdown__item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-soft) !important;
    transform: none;
  }

  .site-nav.over-dark .nav-dropdown__item {
    color: var(--text) !important;
  }

  .site-nav.over-dark .nav-dropdown__item:hover {
    background: rgba(0, 157, 255, 0.08);
    color: var(--primary) !important;
  }

  .nav-dropdown__viewall {
    margin-top: 10px;
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white-soft) !important;
    background: var(--accent);
    border-radius: 10px;
    transition: none;
  }

  .nav-dropdown__viewall:hover {
    background: var(--accent);
    transform: none;
    box-shadow: none;
  }

  .site-nav.over-dark .nav-dropdown__viewall {
    color: var(--white-soft) !important;
    background: var(--accent);
  }

  .site-nav.over-dark .nav-dropdown__viewall:hover {
    background: var(--accent);
  }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.75);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--primary), var(--accent)) 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 60px 0 40px;
}

.footer-col h4 {
  color: var(--white-soft);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  transition: color 200ms;
}

.footer-col a:hover { color: var(--white-soft); }

.footer-tagline {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms, border-color 200ms;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

.footer-legal { display: flex; gap: 20px; }

/* ---------- WHATSAPP FLOTANTE ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-whatsapp);
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.35);
  transition: all 0.2s ease;
  color: var(--white-soft);
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(230, 57, 70, 0.45);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--white-soft);
}

/* ---------- PARALLAX LAYER (HOME) ---------- */
.parallax-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: var(--z-parallax);
  opacity: 0.12; /* Bajado para mayor sutileza fuera del hero */
  pointer-events: none;
  overflow: hidden;
}

.parallax-state {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 500ms ease;
}

.parallax-state.active {
  opacity: 1;
}

/* ---------- CONTENT LAYER ---------- */
.content-layer {
  position: relative;
  z-index: var(--z-content);
}

/* ---------- HOME HERO LAYOUT (FONDO INDEPENDIENTE) ---------- */
.home-hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #E6E8EA; /* Fondo base que coincide con el video */
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 16 / 7; /* Reducido de 16/9 para que sea menos alto */
  z-index: 0;
  background-color: #E6E8EA;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Al coincidir el aspect-ratio del contenedor, se ve entero y proporcional */
  opacity: 1;
}

/* Degradado para que el video (arriba) se funda con el fondo del hero (abajo) */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    transparent 70%, 
    #E6E8EA 100%
  );
  z-index: 1;
}

.home-hero-content {
  position: relative;
  z-index: 2; /* Por encima de la capa de video */
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 140px 24px 60px;
}

.hero-content-wrapper {
  width: 66.666%;
  display: flex;
  flex-direction: column;
}

/* Branding block */
.home-branding {
  background: rgba(249,247,244,0.85); /* semi-transparent for parallax */
  border-radius: 16px;
  padding: 48px 40px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}

.home-branding .hero-title {
  color: var(--text);
}

.home-branding .hero-pretitle {
  color: var(--primary);
}

.home-branding .hero-text {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Dual CTA buttons (PARTICULAR / EMPRESA) */
.home-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.home-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  gap: 16px;
  padding: 24px 36px;
  border-radius: 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.home-cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  filter: brightness(1.05);
}

.home-cta-btn .material-symbols-outlined {
  font-size: 1.8rem;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.home-cta-btn:hover .material-symbols-outlined {
  transform: scale(1.15);
}

.home-cta-particular {
  background: var(--primary);
  color: var(--white-soft);
}

.home-cta-empresa {
  background: var(--accent);
  color: var(--white-soft);
}

/* Home services section */
.home-services-section {
  background: rgba(240,238,235,0.85); /* semi-transparent for parallax */
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

/* ---------- SECCIONES ---------- */
#servicios {
  padding-top: 120px; /* Espacio extra para las tarjetas del método que solapan */
}

.section-light {
  background: rgba(249, 247, 244, 0.95);
}

.section-alt {
  background: rgba(240, 238, 235, 0.95);
}

.section-dark {
  background: var(--secondary);
  color: var(--white-soft);
}

.section-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 24px;
  text-align: center;
}

/* Override for layouts where centering doesn't fit (e.g. 2-column grids) */
.form-grid .section-title,
.section-title.text-left {
  text-align: left;
}

.section-dark .section-title {
  color: var(--white-soft);
}

.section-subtitle {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: -20px; /* Pulls up to leave 4px gap with title */
  margin-bottom: 16px;
  text-align: center;
}

.section-dark .section-subtitle {
  color: rgba(255,255,255,0.65);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-half {
  min-height: 50vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30,42,58,0.75) 0%, rgba(30,42,58,0.3) 60%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 60%;
  margin-top: 60px;
}

.hero-pretitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(40px, 4.5vw, 56px);
  line-height: 1.05;
  font-weight: 600;
  margin: 0 0 24px 0;
}

.hero-text {
  font-size: 18px;
  line-height: 1.6;
}

.hero .hero-title {
  color: var(--white-soft);
}

.hero .hero-text {
  color: rgba(255,255,255,0.8);
  max-width: 540px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white-soft);
  animation: bounce 2s infinite;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 28px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  filter: brightness(1.05);
}

.btn .material-symbols-outlined {
  font-size: 1.4rem;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover .material-symbols-outlined {
  transform: translateX(3px);
}

.btn-red {
  background: var(--accent);
  color: var(--white-soft);
}

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

.btn-outline:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--white-soft);
}

.btn-outline-white {
  background: transparent;
  color: var(--white-soft);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

/* ---------- PLACEHOLDER IMAGE ---------- */
.placeholder-img {
  background: #F7F9FB;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  padding: 24px 16px;
  text-align: center;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.placeholder-img .material-symbols-outlined {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--primary);
  opacity: 0.3;
}

.placeholder-img h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.placeholder-img p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
  max-width: 200px;
}

.placeholder-img .ph-dims {
  display: none; /* Hide internal technical info */
}

/* Hero placeholder (covers full area) */
.placeholder-hero {
  position: absolute;
  inset: 0;
  border-radius: 0;
  border: none;
  min-height: unset;
}

/* ---------- TRUST INDICATORS ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-item .material-symbols-outlined {
  font-size: 2rem;
  color: var(--primary);
}

.trust-item .trust-value {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
}

.trust-item .trust-label {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ---------- SERVICE CARDS ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white-soft);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative; /* Para el enlace expandido */
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card-img .placeholder-img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  min-height: unset;
}

.service-card-body {
  padding: 24px;
}

.service-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.service-card-body p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.service-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: color 200ms;
}

.service-card-link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1; /* Un z-index bajo para que no bloquee selección de texto si se quisiera, pero que cubra todo */
}

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

/* ---------- BEFORE / AFTER ---------- */
.ba-grid {
  display: grid;
  gap: 40px;
}

.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.ba-item {
  text-align: center;
}

.ba-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--text-light);
}

.ba-item .placeholder-img {
  aspect-ratio: 10 / 7;
  min-height: unset;
}

/* ---------- B2B CTA SECTION ---------- */
.b2b-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.b2b-steps {
  display: flex;
  align-items: center;
  gap: 20px;
}

.b2b-step {
  text-align: center;
  flex: 1;
}

.b2b-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(74, 124, 155, 0.15);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.section-dark .b2b-step-num {
  background: rgba(74, 124, 155, 0.3);
  color: #7ab5d4;
}

.b2b-step p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

.b2b-arrow {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.35);
}

/* ---------- LOGOS BAR ---------- */
.logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.logos-grid .placeholder-img {
  width: 120px;
  height: 60px;
  min-height: unset;
  font-size: 0.7rem;
  padding: 8px;
  border-radius: 8px;
  opacity: 0.7;
}

.testimonial-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-box blockquote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.testimonial-box cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color 200ms;
}

.breadcrumb a:hover { color: rgba(255,255,255,0.8); }

.breadcrumb-dark {
  color: var(--text-light);
}

.breadcrumb-dark a {
  color: var(--primary);
}

/* ---------- METHOD STEPS ---------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  z-index: 5;
  margin-bottom: -100px; /* Solapado con el siguiente bloque */
}

.method-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-md); /* Sombra inicial más profunda por el flotado */
  transition: all 0.25s ease;
}

.method-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.method-card .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.method-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.method-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---------- TEXTURE GRID ---------- */
.texture-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.texture-card {
  background: var(--white-soft);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.texture-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.texture-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.texture-card-img .placeholder-img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  min-height: unset;
}

.texture-card-body {
  padding: 20px 24px;
}

.texture-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.texture-card-body p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---------- TRUST BAR ---------- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
  padding: 48px 0;
}

.trust-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-bar-item .material-symbols-outlined {
  font-size: 2rem;
  color: var(--primary);
}

.trust-bar-item span:not(.material-symbols-outlined) {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- STORE CARDS ---------- */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.store-card {
  background: var(--white-soft);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.store-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.store-card.featured {
  border-left: 4px solid var(--primary);
}

.store-badge {
  position: absolute;
  top: 118px;
  left: 16px;
  z-index: 2;
  background: var(--white-soft);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.store-banner {
  margin: -28px -28px 20px -28px;
  height: 160px;
  position: relative;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background-color: var(--background-alt);
}

.store-banner .placeholder-img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  min-height: unset;
  justify-content: center;
  padding-bottom: 20px; /* para compensar el degradado visualmente */
}

.store-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--white-soft) 0%, transparent 100%);
  pointer-events: none;
}

.store-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.store-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.store-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}

.store-actions .btn {
  padding: 12px 24px;
  font-size: 0.85rem;
}

.store-actions a[href^="tel:"]:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white-soft);
  box-shadow: 0 4px 14px rgba(230,57,70,0.3);
}

/* ---------- MAP ---------- */
.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  height: 420px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- FORMS ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-dark .form-group label {
  color: rgba(255,255,255,0.8);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white-soft);
  color: var(--text);
  transition: border-color 200ms, box-shadow 200ms;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 157, 255,0.12);
}

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

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}

.form-error-msg {
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 4px;
  display: none;
}

.form-error-msg.visible {
  display: block;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-light);
  cursor: pointer;
}

.section-dark .form-checkbox {
  color: rgba(255,255,255,0.6);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.btn-submit {
  width: 100%;
  padding: 18px 32px;
  font-size: 1.05rem;
  position: relative;
}

.btn-submit .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white-soft);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn-submit.loading .spinner {
  display: block;
}

.btn-submit.loading .btn-text {
  visibility: hidden;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}

.form-success.visible {
  display: block;
}

.form-success .material-symbols-outlined {
  font-size: 3rem;
  color: #4CAF50;
  margin-bottom: 12px;
}

.form-success p {
  font-size: 1rem;
  color: var(--text);
}

.section-dark .form-success p {
  color: rgba(255,255,255,0.85);
}

/* ---------- TOGGLE FORMULARIO ---------- */
.form-toggle {
  display: inline-flex;
  border-radius: 9999px;
  overflow: hidden;
  border: 2px solid var(--primary);
  margin-bottom: 40px;
}

.form-toggle-btn {
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--primary);
  transition: background 200ms, color 200ms;
}

.form-toggle-btn.active {
  background: var(--primary);
  color: var(--white-soft);
}

@keyframes pulseEmpresaBtn {
  0% { background-color: transparent; opacity: 1; }
  15% { background-color: rgba(0, 157, 255, 0.15); opacity: 0.85; }
  100% { background-color: transparent; opacity: 1; }
}

.form-toggle-btn[data-target="form-empresa"]:not(.active) {
  animation: pulseEmpresaBtn 2.5s infinite ease-out;
}

.form-panel {
  display: none;
  animation: fadeIn 300ms ease;
}

.form-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- PILLS SELECCIONABLES ---------- */
.pills-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.pill {
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white-soft);
  color: var(--text-light);
  cursor: pointer;
  transition: background 200ms, color 200ms, border-color 200ms;
  user-select: none;
}

.pill.selected {
  background: var(--primary);
  color: var(--white-soft);
  border-color: var(--primary);
}

/* ---------- FAQ ACCORDION ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.faq-question .material-symbols-outlined {
  transition: transform 300ms;
  color: var(--primary);
  font-size: 1.5rem;
}

.faq-item.open .faq-question .material-symbols-outlined {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---------- QUICK CONTACT CARDS ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.contact-card {
  background: var(--white-soft);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.contact-card .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 0.875rem;
  color: var(--text-light);
}

.contact-card a {
  color: var(--primary);
  font-weight: 600;
}

/* Drag and drop file area */
.file-drop-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
  color: var(--text-light);
  font-size: 0.85rem;
}

.file-drop-area:hover {
  border-color: var(--primary);
  background: rgba(0, 157, 255,0.04);
}

.file-drop-area input[type="file"] {
  display: none;
}

/* ---------- B2B FEATURES CARDS ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-card .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---------- VALUES CARDS (NOSOTROS) ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.value-card {
  text-align: center;
  padding: 32px 20px;
}

.value-card .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay */
.fade-up-delay-1 { transition-delay: 100ms; }
.fade-up-delay-2 { transition-delay: 200ms; }
.fade-up-delay-3 { transition-delay: 300ms; }
.fade-up-delay-4 { transition-delay: 400ms; }
.fade-up-delay-5 { transition-delay: 500ms; }
.fade-up-delay-6 { transition-delay: 600ms; }

/* ---------- RESPONSIVE ---------- */

/* Tablet */
@media (max-width: 1024px) {
  /* Navbar (Mobile Menu trigger at 1024px) */
  :root {
    --nav-height: 64px;
  }
  .nav-wrapper {
    padding: 12px 12px 0;
  }
  .site-nav {
    border-radius: 9999px;
  }
  .nav-actions {
    display: none; /* Solo logo y hamburguesa visibles */
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    padding: 20px 16px;
    border-radius: 20px;
    background: rgba(0, 157, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    flex-direction: column;
    gap: 16px;
    display: flex;
  }
  .site-nav.over-dark .nav-links {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a {
    width: 100%;
    padding: 8px 12px;
    text-align: right;
    font-size: 0.95rem;
    border-radius: 8px;
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255,255,255,0.08);
  }
  .site-nav.over-dark .nav-links a:hover,
  .site-nav.over-dark .nav-links a.active {
    background: rgba(0, 157, 255, 0.08);
  }
  .nav-links a.active::after {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  /* hero-content-wrapper mantiene su 66.666% para respetar el parallax a la derecha */
  .home-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .service-card-body {
    padding: 20px; /* Reduce ligeramente el padding para que el contenido respire */
  }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stores-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .b2b-cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust-bar { grid-template-columns: 1fr; gap: 20px; }
}


/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }

  .nav-links {
    width: 280px; /* Un poco más ancho para que abra más hacia la izquierda */
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-overlay {
    background: rgba(30,42,58,0.7);
  }

  .section-padding {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.65rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }

  /* services-grid moved to 640px for 1 column */
  .texture-grid { grid-template-columns: 1fr; }
  .ba-pair { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-direction: column; gap: 8px; }

  .b2b-steps { flex-direction: row; align-items: flex-start; gap: 8px; }
  .b2b-arrow { transform: none; margin-top: 10px; font-size: 1.2rem; }
  .b2b-step-num { width: 36px; height: 36px; font-size: 0.9rem; margin: 0 auto 8px; }
  .b2b-step p { font-size: 0.7rem; line-height: 1.3; }

  .logos-grid { gap: 20px; }
  .map-container { height: 300px; }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .store-actions {
    flex-direction: column;
  }

  .form-toggle {
    width: 100%;
  }

  .form-toggle-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.8rem;
  }

  /* Home hero mobile: full-width */
  .home-hero-content {
    padding: 86px 16px 24px;
  }

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

  .home-branding {
    padding: 32px 24px;
    background: rgba(249,247,244,0.95); /* more opaque on mobile */
  }

  .home-cta-row {
    grid-template-columns: 1fr;
  }

  .home-cta-btn {
    padding: 22px 20px;
    font-size: 1rem;
  }

  .method-grid {
    margin-bottom: 0; /* Sin solapado en móviles para evitar conflictos visuales */
    gap: 20px;
  }

  #servicios {
    padding-top: 56px; /* Padding estándar en móvil */
  }
}

/* Mobile Small */
@media (max-width: 640px) {
  .hero-content-wrapper {
    width: 100%;
  }
  .home-services-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .home-services-section {
    padding: 24px 16px;
  }
  .service-card-body {
    padding: 16px;
  }
}

/* ========================================= */
/* INNER HERO BASE                           */
/* ========================================= */
.inner-hero {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

.inner-hero__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.inner-hero--left .inner-hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0;
  text-align: left;
}

.inner-hero--center .inner-hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- CONTACT CARDS & AUTO ANIMATION ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card.contact-card--click {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  background: var(--white-soft);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  text-decoration: none;
  color: var(--text);
  transition: transform 300ms, box-shadow 300ms, background 200ms;
}

.contact-card.contact-card--click:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  background: #fdfdfd;
}

.contact-card.contact-card--click .material-symbols-outlined {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.contact-card.contact-card--click h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--text);
}

.contact-card.contact-card--click p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .contact-card.contact-card--click {
    padding: 16px 6px;
  }
  .contact-card.contact-card--click .material-symbols-outlined {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }
  .contact-card.contact-card--click svg {
    width: 28px !important;
    height: 28px !important;
    margin-bottom: 8px !important;
  }
  .contact-card.contact-card--click h3 {
    font-size: 0.8rem;
    margin-bottom: 2px;
  }
  .contact-card.contact-card--click p {
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }
}

.fade-in-auto {
  animation: fadeInAuto 0.8s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInAuto {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---------- PÁGINA DE DETALLE DE SERVICIO ---------- */
.service-hero {
  background-color: var(--secondary);
  color: #FFFFFF;
  padding: 140px 0 80px;
  position: relative;
  text-align: left;
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.875rem;
  opacity: 0.8;
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb a {
  text-decoration: none;
  transition: opacity 0.2s;
  color: #FFFFFF;
}

.breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

.service-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #FFFFFF;
  font-family: var(--font-heading);
}

.service-summary {
  font-size: 1.25rem;
  max-width: 700px;
  line-height: 1.6;
  font-family: var(--font-body);
  font-weight: 400;
  opacity: 0.95;
}

.grid-two-cols {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.service-description h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  font-family: var(--font-heading);
}

.service-description p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 32px;
}

.service-features {
  margin-bottom: 40px;
}

.service-features ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 1rem;
}

.service-features .material-symbols-outlined {
  color: var(--primary);
  font-size: 1.5rem;
}

.service-gallery-container {
  position: sticky;
  top: 100px;
}

.service-main-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--background-alt);
}

.service-main-img .placeholder-img {
  aspect-ratio: 4/5;
}

@media (max-width: 992px) {
  .service-hero h1 { font-size: 2.5rem; }
  .grid-two-cols { grid-template-columns: 1fr; gap: 40px; }
  .service-features ul { grid-template-columns: 1fr; }
  .service-gallery-container { position: static; }
}

/* =========================================
   HERO ANIMADO — Gradiente + Burbujas
   ========================================= */

/* ── Variables extra hero ── */
:root {
  --hero-blue-dark:  #0d3d6e;
  --hero-blue-mid:   #1478c8;
  --hero-blue-light: #3aabf0;
  --hero-accent:     #0062a8;
  --bubble-bg:   rgba(255,255,255,0.15);
  --bubble-ring: rgba(255,255,255,0.30);
}

/* ── Hero principal (index.html) ── */
.reno-hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 50px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(-45deg,
    var(--hero-blue-dark),
    var(--hero-blue-mid),
    var(--hero-blue-light),
    var(--hero-accent)
  );
  background-size: 400% 400%;
  animation: renoGradient 12s ease infinite;
}

/* Degradado de fusión con la sección siguiente */
.reno-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--background) 100%
  );
  z-index: 3;
  pointer-events: none;
}

@keyframes renoGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Burbujas (usadas en todos los heros) ── */
.reno-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.reno-bubble {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 30% 30%,
    rgba(255,255,255,0.25) 0%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.02) 100%
  );
  border: 1px solid var(--bubble-ring);
  animation: renoBubbleUp var(--bd) var(--bdelay) ease-in infinite;
  opacity: 0;
}

.reno-bubble::before {
  content: '';
  position: absolute;
  top: 15%; left: 55%;
  width: 20%; height: 20%;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  filter: blur(1px);
}

@keyframes renoBubbleUp {
  0%   { opacity: 0;   transform: translateY(0)      translateX(0)                scale(0.8); }
  10%  { opacity: 0.7; }
  50%  {               transform: translateY(-50vh)  translateX(var(--bsway))     scale(1);   opacity: 0.5; }
  90%  { opacity: 0.1; }
  100% { opacity: 0;   transform: translateY(-110vh) translateX(calc(var(--bsway) * -0.5)) scale(0.6); }
}

/* ── Contenido del reno-hero ── */
.reno-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── Bloque branding (logo / pretítulo) ── */
.reno-hero__branding {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Reveal LTR ── */
.reno-reveal {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.reno-reveal__inner {
  opacity: 0;
  animation: renoRevealContent 0.1s 0.9s forwards;
}

.reno-reveal::before,
.reno-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
}

.reno-reveal::before {
  background: rgba(13, 61, 110, 0.92);
  animation: renoRevealLTR 1.0s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.reno-reveal::after {
  background: rgba(255,255,255,0.45);
  animation: renoRevealLTR 1.0s 0.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes renoRevealLTR {
  0%    { transform-origin: left;  transform: scaleX(0); }
  50%   { transform-origin: left;  transform: scaleX(1); }
  50.1% { transform-origin: right; transform: scaleX(1); }
  100%  { transform-origin: right; transform: scaleX(0); }
}

@keyframes renoRevealContent {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Título con shimmer metálico ── */
.reno-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 0.2em;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.9)
    linear-gradient(to left,
      rgba(255,255,255,0.9) 0%,
      #c0c8d0 30%,
      #8a939e 50%,
      #c0c8d0 70%,
      rgba(255,255,255,0.9) 100%);
  background-position: -12rem top;
  background-repeat: no-repeat;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 10rem 100%;
  animation: renoShimmer 5s 1.5s ease-in-out infinite;
}

@keyframes renoShimmer {
  0%   { background-position: -12rem top; }
  30%  { background-position: 30rem top; }
  100% { background-position: 30rem top; }
}

/* ── Subtítulo y tagline ── */
.reno-hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 2vw, 1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.6em;
  opacity: 0;
  animation: renoFadeUp 1s 2s ease forwards;
}

.reno-hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  margin-top: 1.2em;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: renoFadeUp 1s 2.5s ease forwards;
}

@keyframes renoFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Zona de botones CTA (PARTICULAR / EMPRESA) ── */
.reno-hero__cta-row {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 700px;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 2rem;
  opacity: 0;
  animation: renoFadeUp 1s 3s ease forwards;
}

/* ── Scroll indicator ── */
.reno-scroll {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translate(-50%, -20px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  animation: renoScrollFade 1s 3.5s ease forwards;
}

@keyframes renoScrollFade {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.reno-scroll span {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.85);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.reno-scroll__arrow {
  width: 24px; height: 24px;
  border-right: 2.5px solid rgba(0, 0, 0, 0.85);
  border-bottom: 2.5px solid rgba(0, 0, 0, 0.85);
  transform: rotate(45deg);
  animation: renoArrow 2s ease-in-out infinite;
}

@keyframes renoArrow {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%      { transform: rotate(45deg) translateY(8px); }
}

/* ── INNER HERO ANIMADO (páginas interiores y servicios) ── */
.reno-inner-hero {
  position: relative;
  width: 100%;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 130px;
  padding-bottom: 64px;
  background: linear-gradient(-45deg,
    var(--hero-blue-dark),
    var(--hero-blue-mid),
    var(--hero-blue-light),
    var(--hero-accent)
  );
  background-size: 400% 400%;
  animation: renoGradient 12s ease infinite;
}

/* Degradado de fusión con sección siguiente */
.reno-inner-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--background) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.reno-inner-hero__container {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.reno-inner-hero__breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
  font-family: var(--font-body);
}

.reno-inner-hero__breadcrumb a {
  color: rgba(255,255,255,0.55);
  transition: color 200ms;
}
.reno-inner-hero__breadcrumb a:hover { color: rgba(255,255,255,0.9); }

.reno-inner-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  /* shimmer suave en h1 de inner */
  background: rgba(255,255,255,0.95)
    linear-gradient(to left,
      rgba(255,255,255,0.95) 0%,
      #c0c8d0 35%,
      #8a939e 50%,
      #c0c8d0 65%,
      rgba(255,255,255,0.95) 100%);
  background-position: -12rem top;
  background-repeat: no-repeat;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 10rem 100%;
  animation: renoShimmer 6s 0.5s ease-in-out infinite;
}

.reno-inner-hero__text {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  max-width: 640px;
  line-height: 1.6;
}

/* ── Letter-by-letter ── */
.reno-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.reno-letter.visible {
  opacity: 1;
  transform: translateY(0);
}

.reno-space {
  display: inline-block;
  width: 0.35em;
}

/* ── Word reveal ── */
.reno-word {
  display: inline-block;
  opacity: 0.15;
  transition: opacity 0.5s ease;
}

.reno-word.visible {
  opacity: 1;
}

/* ── Responsive hero animado ── */
@media (max-width: 768px) {
  .reno-hero__cta-row {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    max-width: 100%;
  }
  .reno-inner-hero {
    padding-top: 100px;
    padding-bottom: 48px;
    min-height: 40vh;
  }
}

