/* ============================================================ */
/* INDEX 2025 - Homepage refactorizada con sistema p25          */
/* Proyecto: prosilicones64.com                                   */
/* Fecha: 2025-01-29                                            */
/* ============================================================ */

/*
 * FILOSOFÍA:
 * - Reutiliza clases p25 existentes (p25-section, p25-container, etc.)
 * - Solo define estilos únicos de la homepage
 * - Mobile-first responsive design
 * - Alternancia blanco/gris para secciones
 */


/* ============================================ */
/* HERO 2025 - Diseño profesional premium      */
/* ============================================ */

/* ========== VARIABLES CSS - SISTEMA CONSISTENTE ========== */
:root {
  /* Hero Height System */
  --hero-height: 100vh;
  --hero-min-height: 600px;  /* Reducido para pantallas pequeñas */
  --hero-max-height: 100vh;  /* Forzar máximo exacto */

  /* Color Palette - UX Optimized */
  --hero-eyebrow-color: #3BAAFE;
  --hero-title-color: #FFFFFF;
  --hero-desc-color: rgba(255, 255, 255, 0.92);
  --hero-divider-color: #3BAAFE;

  --badge-bg: rgba(255, 255, 255, 0.08);
  --badge-border: rgba(59, 170, 254, 0.3);
  --badge-border-hover: rgba(59, 170, 254, 0.8);
  --badge-title-color: #FFFFFF;
  --badge-desc-color: rgba(255, 255, 255, 0.88);
  --bagde-logo-color: #3BAAFE;

  --cta-primary-bg: linear-gradient(135deg, #002B45, #004A6E);
  --cta-primary-bg-hover: linear-gradient(135deg, #003D5C, #005F8A);
  --cta-secondary-border: rgba(59, 170, 254, 0.6);
  --cta-secondary-border-hover: rgba(59, 170, 254, 1);

  /* Spacing System - Consistent Gaps REDUCIDOS */
  --hero-gap-xs: 0.65rem;   /* 10px */
  --hero-gap-sm: 0.85rem;   /* 14px */
  --hero-gap-md: 1.2rem;    /* 19px */
  --hero-gap-lg: 1.65rem;   /* 26px */
  --hero-gap-xl: 2rem;      /* 32px */

  /* Typography Scale - Harmonic CON LÍMITES XXL */
  --hero-eyebrow-size: clamp(0.8rem, 1.1vw + 0.35rem, 0.92rem);
  --hero-title-size: clamp(1.9rem, 3.2vw + 0.7rem, 2.75rem);
  --hero-desc-size: clamp(1rem, 1.25vw + 0.4rem, 1.12rem);
  --badge-title-size: clamp(0.88rem, 1vw + 0.3rem, 1rem);
  --badge-desc-size: clamp(0.8rem, 0.9vw + 0.25rem, 0.88rem);
  --cta-size: clamp(0.98rem, 1.15vw + 0.3rem, 1.05rem);
}

/* Keyframes para animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleX {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(59, 170, 254, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(59, 170, 254, 0.6));
  }
}

@keyframes ripple-effect {
  to {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

/* Reset section padding para hero */
section.hero-2025 {
  padding-block: 0;
}

.hero-2025 {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Background image full-screen - fija sin parallax */
.hero-2025-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-2025-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 8s ease-out;
  filter: brightness(0.85) contrast(1.1);
}

/* Premium Gradient Overlay - Corporate Blue + Dark */
.hero-2025-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 43, 69, 0.75) 0%,
    rgba(0, 0, 0, 0.65) 50%,
    rgba(0, 43, 69, 0.7) 100%
  );
  z-index: 2;
}

/* Content container - Layout horizontal profesional */
.hero-2025-content {
  position: relative;
  z-index: 100;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  padding-top: 62px;         /* Compensar altura del header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--hero-gap-sm);
}

/* Eyebrow con animación */
.hero-2025-eyebrow {
  font-size: var(--hero-eyebrow-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--hero-eyebrow-color);
  margin: 0;
  padding: 0;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.6),
               0 0 40px rgba(59, 170, 254, 0.3);
}

/* H1 - Perfect spacing con animación */
.hero-2025-title {
  font-size: var(--hero-title-size);
  font-weight: 700;
  line-height: 1.15;
  color: var(--hero-title-color);
  margin: 0;
  margin-bottom: 0;  /* Sin espacio extra, el ::after lo maneja */
  max-width: 1000px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  position: relative;
  padding-bottom: 0;  /* Sin padding, el ::after tiene su propio margin */
}

.hero-2025-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--hero-divider-color), transparent);
  margin: var(--hero-gap-xs) 0 var(--hero-gap-xs) 0;  /* Menos espacio abajo, alineado a la izquierda */
  opacity: 0;
  animation: scaleX 0.6s ease-out 0.8s forwards;
  box-shadow: 0 0 12px rgba(59, 170, 254, 0.7);
}

/* Certificaciones móvil - oculto por defecto */
.hero-2025-certs-mobile {
  display: none;
}

/* Párrafo descriptivo con animación */
.hero-2025-desc {
  font-size: var(--hero-desc-size);
  font-weight: 400;
  line-height: 1.65;
  color: var(--hero-desc-color);
  margin: 0;
  max-width: 900px;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Divider line - AHORA EN .hero-2025-title::after */
.hero-2025-divider {
  display: none;  /* Ocultar divider HTML, ahora se usa ::after en el h1 */
}

/* Wrapper para layout horizontal (desktop) */
.hero-2025-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--hero-gap-lg);
  width: 100%;
}

/* Contenido principal (eyebrow, h1, desc, divider) */
.hero-2025-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--hero-gap-sm);
  width: 100%;
}

/* Badges grid - Sistema responsive profesional */
.hero-2025-badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hero-gap-sm);
  width: 100%;
  max-width: 1200px;
  margin: 0;
  opacity: 0;
  animation: fadeInScale 0.8s ease-out 1s forwards;
}

.hero-badge {
  background: var(--badge-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--badge-border);
  border-radius: 12px;
  padding: clamp(0.75rem, 1.3vh, 0.95rem) clamp(0.95rem, 1.8vw, 1.25rem);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
  transform-origin: center;
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--badge-border-hover);
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 48px rgba(59, 170, 254, 0.4),
              0 0 24px rgba(59, 170, 254, 0.2);
}

.hero-badge:hover .hero-badge-icon {
  animation: glow 2s ease-in-out infinite;
  transform: rotate(5deg) scale(1.1);
}

.hero-badge-icon {
  display: none;
}

.hero-badge-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.hero-badge-title {
  font-size: var(--badge-title-size);
  font-weight: 700;
  color: var(--badge-title-color);
  line-height: 1.3;
}

.hero-badge-desc {
  font-size: var(--badge-desc-size);
  font-weight: 400;
  color: var(--badge-desc-color);
  line-height: 1.4;
}

/* CTA Buttons con animación */
.hero-2025-actions {
  display: flex;
  gap: var(--hero-gap-sm);
  margin: 0;
  margin-top: var(--hero-gap-lg);
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

.hero-btn {
  padding: clamp(0.95rem, 1.5vh, 1.15rem) clamp(2rem, 3.5vw, 2.75rem);
  font-size: var(--cta-size);
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.hero-btn:hover::before {
  width: 300px;
  height: 300px;
}

.hero-btn-primary {
  background: var(--cta-primary-bg);
  color: #ffffff;
  border: none;
  box-shadow:
    0 4px 16px rgba(0, 43, 69, 0.3),
    0 8px 32px rgba(0, 43, 69, 0.2);
  z-index: 1;
  gap: 0.85rem;
}

.hero-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.hero-btn-primary:hover {
  background: var(--cta-primary-bg-hover);
  box-shadow:
    0 6px 20px rgba(0, 43, 69, 0.35),
    0 12px 40px rgba(0, 43, 69, 0.25);
  transform: translateY(-4px);
}

.hero-btn-primary:hover::before {
  left: 100%;
}

.hero-btn-primary:active {
  transform: translateY(-2px);
}

/* Icon dentro del botón */
.hero-btn-primary i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

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

.hero-btn-primary span {
  position: relative;
  z-index: 2;
}

.hero-btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid var(--cta-secondary-border);
  z-index: 1;
}

.hero-btn-secondary:hover {
  background: rgba(59, 170, 254, 0.1);
  border-color: var(--cta-secondary-border-hover);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 32px rgba(59, 170, 254, 0.3),
              0 0 16px rgba(59, 170, 254, 0.2);
}

/* ========== RESPONSIVE BREAKPOINTS - SISTEMA PROFESIONAL ========== */

/* MÓVIL: Hasta 640px - ESTILO EDITORIAL */
@media (max-width: 640px) {
  /* Hero 100dvh centrado verticalmente */
  .hero-2025 {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  /* Contenido alineado a la izquierda */
  .hero-2025-content {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 1.25rem !important;
    height: auto !important;
    text-align: left !important;
  }

  .hero-2025-wrapper {
    align-items: flex-start !important;
  }

  .hero-2025-main {
    align-items: flex-start !important;
    text-align: left !important;
    gap: 0.75rem !important;
  }

  /* OCULTAR eyebrow en móvil */
  .hero-2025-eyebrow {
    display: none !important;
  }

  /* Ocultar botones en móvil (hay botón fijo) */
  .hero-2025-actions {
    display: none !important;
  }

  /* OCULTAR badges de certificación en móvil */
  .hero-2025-badges {
    display: none !important;
  }

  /* Título alineado izquierda */
  .hero-2025-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem) !important;
    text-align: left !important;
    margin: 0 !important;
  }

  /* Línea decorativa alineada izquierda */
  .hero-2025-title::after {
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  /* Badge certificaciones - estilo editorial izquierda */
  .hero-2025-certs-mobile {
    display: inline-block !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: var(--hero-eyebrow-color) !important;
    text-align: left !important;
    margin: 0.5rem 0 0.75rem 0 !important;
    padding: 0.5rem 0.75rem !important;
    background: rgba(0, 43, 69, 0.4) !important;
    border-left: 3px solid var(--hero-eyebrow-color) !important;
    border-radius: 0 6px 6px 0 !important;
    backdrop-filter: blur(8px) !important;
    line-height: 1.5 !important;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
  }

  /* Descripción alineada izquierda con truncamiento */
  .hero-2025-desc {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    text-align: left !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 !important;
  }

  /* Botón ver más inline */
  .hero-2025-read-more {
    display: inline !important;
    font-size: inherit !important;
    font-weight: 600 !important;
    color: #3BAAFE !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
  }

  .hero-2025-read-more:hover {
    color: #fff !important;
    text-decoration: underline !important;
  }
}

/* TABLET: 768px - 1023px - 2 columnas balanceadas */
@media (min-width: 768px) {
  .hero-2025-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--hero-gap-md);
  }

  .hero-2025-content {
    gap: var(--hero-gap-md);
  }

  .hero-2025-actions {
    margin-top: var(--hero-gap-xl);
  }
}

/* DESKTOP: 1024px - 1439px - Layout horizontal */
@media (min-width: 1024px) {
  .hero-2025 {
    align-items: center;        /* Centrar verticalmente el contenido */
    justify-content: center;    /* Centrar horizontalmente */
  }

  .hero-2025-content {
    max-width: 1300px;
    transform: translateY(0);   /* Reset transform en desktop */
  }

  .hero-2025-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--hero-gap-xl);
  }

  .hero-2025-main {
    flex: 1;
    max-width: 55%;
    align-items: flex-start;
    text-align: left;
  }

  .hero-2025-title,
  .hero-2025-desc {
    text-align: left;
  }

  .hero-2025-divider {
    margin-left: 0;
  }

  .hero-2025-actions {
    justify-content: flex-start;
    margin-top: var(--hero-gap-md);
  }

  .hero-2025-badges {
    flex: 0 0 auto;
    width: 380px;
    grid-template-columns: 1fr;
    gap: var(--hero-gap-sm);
    max-width: none;
    animation: slideInRight 0.8s ease-out 1s forwards;
  }
}

/* Animación entrada desde la derecha */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* LARGE DESKTOP: 1440px - 1919px - Layout horizontal optimizado */
@media (min-width: 1440px) {
  .hero-2025 {
    align-items: center;        /* Centrar verticalmente el contenido */
    justify-content: center;    /* Centrar horizontalmente */
  }

  .hero-2025-main {
    max-width: 60%;
  }

  .hero-2025-badges {
    width: 420px;
    gap: var(--hero-gap-md);
  }

  .hero-2025-content {
    max-width: 1400px;
    gap: var(--hero-gap-md);
    transform: translateY(0);   /* Reset transform */
  }

  .hero-badge {
    padding: clamp(1rem, 1.8vh, 1.25rem) clamp(1.2rem, 2.2vw, 1.75rem);
  }
}

/* XXL SCREENS: >= 1920px (2K/4K) - Optimización para pantallas grandes */
@media (min-width: 1920px) {
  :root {
    --hero-gap-sm: 0.9rem;
    --hero-gap-md: 1.3rem;
    --hero-gap-lg: 1.75rem;
    --hero-gap-xl: 2.2rem;
    --hero-height: 100vh;        /* Forzar 100vh en XXL */
    --hero-max-height: 100vh;    /* Máximo 100vh exacto */
  }

  .hero-2025 {
    align-items: center;        /* Centrar verticalmente el contenido */
    justify-content: center;    /* Centrar horizontalmente */
  }

  .hero-2025-main {
    max-width: 60%;
  }

  .hero-2025-badges {
    width: 400px;
    gap: var(--hero-gap-sm);
  }

  .hero-2025-content {
    max-width: 1450px;
    gap: var(--hero-gap-md);
    transform: translateY(0);   /* Reset transform */
  }

  .hero-badge {
    padding: 0.95rem 1.35rem;
    border-radius: 12px;
  }

  .hero-2025-divider {
    width: 75px;
    height: 3px;
  }

  .hero-btn {
    padding: 1.05rem 2.2rem;
    border-radius: 12px;
  }
}



/* ============================================ */
/* EYEBROW - Override color para index         */
/* ============================================ */

/* Override más específico para ganar sobre productos.css */
body .p25-section .p25-section-header .p25-eyebrow,
body .p25-section-header .p25-eyebrow {
  color: #3BAAFE !important;
}


/* ============================================ */
/* WHY US - Grid Imagen + Texto REDISEÑADO    */
/* ============================================ */

.in25-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2.5rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.in25-why-image {
  width: 100%;
  height: auto;
}

.in25-why-image img {
  width: 100%;
  height: auto;
  max-width: 550px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto;
  display: block;
}

.in25-why-image img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.in25-why-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

.in25-why-content p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #374151;
  margin: 0;
}

/* Botón tech outline azul - para secciones why y bloque-info */
.in25-why-content .p25-btn-secondary,
.ind-info .p25-btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #3BAAFE;
  border-radius: 10px;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(59, 170, 254, 0.15);
  margin-top: 0.5rem;
}

.in25-why-content .p25-btn-secondary::before,
.ind-info .p25-btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(59, 170, 254, 0.1) 50%,
    transparent 100%);
  transition: left 0.5s ease;
}

.in25-why-content .p25-btn-secondary:hover::before,
.ind-info .p25-btn-secondary:hover::before {
  left: 100%;
}

.in25-why-content .p25-btn-secondary:hover,
.ind-info .p25-btn-secondary:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 16px rgba(59, 170, 254, 0.3),
              0 0 0 3px rgba(59, 170, 254, 0.1);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 1);
}

/* Check List - Estilo tecnológico sin iconos */
.in25-check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.in25-check-list li {
  position: relative;
  padding: 1rem 1.25rem 1rem 1rem;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(249, 250, 251, 1) 100%);
  border: 1px solid rgba(59, 170, 254, 0.12);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #1f2937;
  font-weight: 500;
}

.in25-check-list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #3BAAFE 0%, #2563eb 100%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.in25-check-list li:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.in25-check-list li:hover {
  border-color: rgba(59, 170, 254, 0.3);
  box-shadow: 0 4px 16px rgba(59, 170, 254, 0.12),
              0 0 0 1px rgba(59, 170, 254, 0.08);
  transform: translateX(4px);
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(249, 250, 251, 1) 100%);
}

/* Grid 2 columnas en desktop */
@media (min-width: 768px) {
  .in25-check-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }

  .in25-check-list li {
    font-size: 1rem;
  }
}

/* Tablet y Desktop */
@media (min-width: 900px) {
  .in25-why-grid {
    grid-template-columns: 500px 1fr;
    gap: 4rem;
    align-items: center;
  }

  .in25-why-image img {
    max-width: 500px;
    margin: 0;
  }

  .in25-why-content p {
    font-size: 1.0625rem;
  }
}

/* Desktop grande */
@media (min-width: 1200px) {
  .in25-why-grid {
    grid-template-columns: 550px 1fr;
    gap: 5rem;
  }

  .in25-why-image img {
    max-width: 550px;
  }

  .in25-why-content p {
    font-size: 1.125rem;
  }

  .in25-check-list {
    gap: 1.125rem;
  }

  .in25-check-list li {
    font-size: 1.0625rem;
  }
}


/* ============================================ */
/* GALLERY - Grid Fotos Sala Blanca            */
/* ============================================ */

.in25-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.in25-gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.in25-gallery-grid img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Tablet */
@media (min-width: 768px) {
  .in25-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .in25-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}


/* ============================================ */
/* GALLERY TEXT - Párrafos de contexto         */
/* ============================================ */

.in25-gallery-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3c3c3c;
  margin: 2rem auto;
  max-width: 920px;
  text-align: center;
}

.in25-gallery-text:first-of-type {
  margin-top: 0;
}

.in25-gallery-text:last-of-type {
  margin-bottom: 0;
}

/* Móvil: párrafos a la izquierda sin padding lateral */
@media (max-width: 767px) {
  .in25-gallery-text {
    text-align: left;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
  }
}


/* ============================================ */
/* UTILITIES - Helpers específicos de index    */
/* ============================================ */

/* Botón wrapper centrado */
.in25-btn-wrapper {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 767px) {
  .in25-btn-wrapper {
    flex-direction: column;
  }

  .in25-btn-wrapper a {
    width: 100%;
  }
}


/* ============================================ */
/* BLOQUE INFO - Información corporativa       */
/* ============================================ */

.in25-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin: 2.5rem 0;
}

.in25-info-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.in25-info-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3c3c3c;
  margin: 0;
  text-align: left;
}

.in25-info-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.in25-info-image img {
  width: 100%;
  height: auto;
  max-width: 450px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.in25-info-image img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.in25-info-btn {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* Mobile - layout vertical: párrafo, foto, párrafo */
@media (max-width: 767px) {
  .in25-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
  }

  .in25-info-content {
    display: contents;
  }

  .in25-info-content p:first-child {
    order: 1;
  }

  .in25-info-image {
    order: 2;
  }

  .in25-info-content p:last-child {
    order: 3;
  }

  .in25-info-content p {
    font-size: 0.95rem;
  }

  .in25-info-image img {
    max-width: 100%;
  }

  .in25-info-btn {
    margin-top: 1.5rem;
  }

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

/* ============================================ */
/* CONTENEDOR DE BOTONES CENTRADO             */
/* ============================================ */

.in25-btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.in25-btn-container .p25-btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #3BAAFE;
  border-radius: 10px;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(59, 170, 254, 0.15);
  margin-top: 0.5rem;
}

.in25-btn-container .p25-btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(59, 170, 254, 0.1) 50%,
    transparent 100%);
  transition: left 0.5s ease;
}

.in25-btn-container .p25-btn-secondary:hover::before {
  left: 100%;
}

.in25-btn-container .p25-btn-secondary:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 16px rgba(59, 170, 254, 0.3),
              0 0 0 3px rgba(59, 170, 254, 0.1);
  transform: translateY(-2px);
}


/* ============================================ */
/* VENTAJA COMPETITIVA - Cards Grid            */
/* ============================================ */

.p25-section-intro {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #4b5563;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Grid de 4 columnas para sectores */
.grid-4-cols {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
}

@media (max-width: 1024px) {
  .grid-4-cols {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .grid-4-cols {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem !important;
    padding-bottom: 1rem;
    margin: 0 -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .grid-4-cols::-webkit-scrollbar {
    height: 4px;
  }

  .grid-4-cols::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 4px;
  }

  .grid-4-cols::-webkit-scrollbar-thumb {
    background: #002B45;
    border-radius: 4px;
  }

  .grid-4-cols > * {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }
}

/* ============================================ */
/* VENTAJA COMPETITIVA - PARALLAX SECTION      */
/* ============================================ */

.vc-parallax {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.vc-parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  right: 0;
  bottom: -20%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

.vc-parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 34, 68, 0.92) 0%,
    rgba(0, 43, 69, 0.88) 50%,
    rgba(10, 14, 39, 0.95) 100%
  );
  z-index: 2;
}

.vc-parallax-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.vc-parallax-header {
  text-align: center;
  margin-bottom: 4rem;
}

.vc-parallax-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #3BAAFE;
  margin-bottom: 1rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(59, 170, 254, 0.3);
  border-radius: 50px;
  background: rgba(59, 170, 254, 0.1);
}

.vc-parallax-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.5rem;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.vc-parallax-intro {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin: 0 auto;
}

.vc-parallax-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.vc-parallax-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.vc-parallax-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 170, 254, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.vc-parallax-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #3BAAFE 0%, #0891b2 100%);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(59, 170, 254, 0.3);
}

.vc-parallax-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vc-parallax-text h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.vc-parallax-text p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.vc-parallax-cta {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #3BAAFE;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  transition: all 0.3s ease;
}

.vc-parallax-item:hover .vc-parallax-cta {
  gap: 0.875rem;
  color: #6dd5fa;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .vc-parallax-grid {
    gap: 1.5rem;
  }

  .vc-parallax-item {
    padding: 1.5rem;
  }

  .vc-parallax-num {
    width: 48px;
    height: 48px;
    font-size: 1.125rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .vc-parallax {
    min-height: auto;
  }

  .vc-parallax-bg {
    background-attachment: scroll;
  }

  .vc-parallax-content {
    padding: 4rem 1.25rem;
  }

  .vc-parallax-header {
    margin-bottom: 2.5rem;
  }

  .vc-parallax-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .vc-parallax-item {
    padding: 1.25rem;
    gap: 1rem;
  }

  .vc-parallax-num {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .vc-parallax-text h3 {
    font-size: 1rem;
  }

  .vc-parallax-text p {
    font-size: 0.875rem;
  }
}


/* ============================================ */
/* p25 Section Backgrounds                       */
/* ============================================ */
.p25-section-gray {
  background: #f8f9fa !important;
}

.p25-section-white {
  background: #ffffff !important;
}
