/* ===================================================
   RADIMAGEN — Landing Pages CSS V9
   Dark tech hero + scan animation, card-grid horarios,
   simplified CTA, footer logo glow
   Cyan #00acd8, Navy #003A70, Montserrat
   =================================================== */

/* ===== 1. CSS Custom Properties ===== */
:root {
    --azul-cyan: #00acd8;
    --azul-claro: #a2d9e7;
    --azul-oscuro: #003A70;
    --morado-oscuro: #3f3a60;
    --gris-fondo: #f8fafc;
    --blanco: #ffffff;

    /* Radii */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-pill: 100px;

    /* Shadows */
    --shadow-soft: 0 1px 3px rgba(0,58,112,0.03), 0 4px 16px rgba(0,58,112,0.05);
    --shadow-medium: 0 4px 12px rgba(0,58,112,0.05), 0 12px 32px rgba(0,58,112,0.08);
    --shadow-strong: 0 8px 24px rgba(0,58,112,0.06), 0 24px 64px rgba(0,58,112,0.12);
    --shadow-card: 0 2px 8px rgba(0,58,112,0.06), 0 0 0 1px rgba(0,58,112,0.04);

    /* Glass effect */
    --glass-bg: rgba(255,255,255,0.1);
    --glass-border: rgba(255,255,255,0.2);
    --glass-blur: 16px;

    /* Animation timing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== 2. Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--azul-oscuro);
    background: var(--blanco);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--azul-cyan);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--azul-oscuro);
}

ul {
    list-style: none;
}

/* ===== 3. Typography ===== */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--azul-oscuro);
    line-height: 1.1;
}

h1 { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
h3 { font-size: 20px; font-weight: 600; }

/* Gradient text effect */
.text-gradient {
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

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

.section-title--left {
    text-align: left;
}

.section-subtitle {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
    color: #5f6368;
    line-height: 1.8;
    font-size: 16px;
}

.section-text-centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== 4. Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ===== 5. Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.3s ease;
    padding: 14px 0;
}

.site-header.scrolled {
    box-shadow: var(--shadow-medium);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    height: 40px;
    width: auto;
}

.header-logo-priscan img {
    height: 36px;
    width: auto;
}

/* PriScan logo in hero (right column, above image, centered) */
.hero-priscan-logo {
    text-align: center;
    margin-bottom: 16px;
}

.hero-priscan-logo img {
    height: 72px;
    width: auto;
    display: inline-block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--azul-oscuro);
    text-decoration: none;
}

.header-phone:hover {
    color: var(--azul-cyan);
}

/* Header CTA button */
.header-cta {
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.header-cta.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ===== 6. HERO — Dark tech background with scan animation ===== */
.hero {
    position: relative;
    background: linear-gradient(160deg, #001e3d 0%, #003A70 40%, #002850 100%);
    padding-top: 100px;
    padding-bottom: 80px;
    overflow: hidden;
}

/* Translucent background image with slow drift */
.hero-bg-image {
    position: absolute;
    inset: -20%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.07;
    filter: blur(2px) saturate(0.3);
    mix-blend-mode: luminosity;
    animation: heroBgDrift 25s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

@keyframes heroBgDrift {
    0% {
        transform: scale(1.05) translate(0%, 0%);
    }
    25% {
        transform: scale(1.08) translate(1.5%, -1%);
    }
    50% {
        transform: scale(1.05) translate(-0.5%, 1.5%);
    }
    75% {
        transform: scale(1.1) translate(-1%, -0.5%);
    }
    100% {
        transform: scale(1.07) translate(1%, 1%);
    }
}

/* Subtle grid pattern overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 172, 216, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 172, 216, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
}

/* Scan line animation */
.hero-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 172, 216, 0.0) 10%,
        rgba(0, 172, 216, 0.6) 40%,
        rgba(0, 172, 216, 1) 50%,
        rgba(0, 172, 216, 0.6) 60%,
        rgba(0, 172, 216, 0.0) 90%,
        transparent 100%
    );
    box-shadow: 0 0 20px rgba(0, 172, 216, 0.4), 0 0 60px rgba(0, 172, 216, 0.15);
    z-index: 3;
    animation: heroScanDown 4s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes heroScanDown {
    0% { top: -2px; opacity: 0; }
    5% { opacity: 0.8; }
    95% { opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

/* Pulsing glow in top-right corner */
.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 172, 216, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: heroPulse 6s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.15); }
}

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

.hero-content {
    text-align: center;
}

/* Hero Badge (pill) — below hero text, same style as trust items */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 172, 216, 0.1);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 172, 216, 0.15);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    margin-bottom: 24px;
}

.hero-title {
    color: var(--blanco);
    margin-top: 24px;
    margin-bottom: 16px;
    line-height: 1.05;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--azul-claro) 60%, var(--azul-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--azul-cyan);
    margin-bottom: 12px;
}

.hero-text {
    margin-bottom: 32px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
}

/* Hero Stats Row — Cards with borders */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(0, 172, 216, 0.2);
    background: rgba(255, 255, 255, 0.05);
    min-width: 120px;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-stat:hover {
    border-color: var(--azul-cyan);
    background: rgba(0, 172, 216, 0.1);
    box-shadow: 0 4px 16px rgba(0, 172, 216, 0.15);
}

.hero-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--azul-cyan);
    line-height: 1.1;
}

.hero-stat-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-pill);
    color: var(--blanco);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

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

/* Hero trust micro-badges (pills) */
.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 172, 216, 0.1);
    border: 1px solid rgba(0, 172, 216, 0.15);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 600;
}

/* Hero Image */
.hero-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 172, 216, 0.15);
    max-width: 520px;
    width: 100%;
    border: 1px solid rgba(0, 172, 216, 0.2);
}

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

/* ===== 7. Form Section ===== */
.section-form {
    background: var(--blanco);
    padding: 100px 0;
    border-top: 1px solid #f0f0f0;
}

.section-form-header {
    text-align: center;
    margin-bottom: 48px;
}

/* Form badge */
.form-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 172, 216, 0.08);
    color: var(--azul-oscuro);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 36px;
    background: var(--blanco);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(0,58,112,0.06);
}

/* ===== 8. Ventajas Section ===== */
.section-ventajas {
    background: var(--blanco);
    border-top: 1px solid #f0f0f0;
}

.ventajas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.ventaja-card {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--gris-fondo);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid #f0f0f0;
    box-shadow: none;
    transition: all 0.25s ease;
}

.ventaja-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(0, 172, 216, 0.15);
}

.ventaja-icon-wrap {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 172, 216, 0.1);
}

.ventaja-body {
    flex: 1;
}

.ventaja-titulo {
    font-size: 16px;
    margin-bottom: 4px;
}

.ventaja-texto {
    color: #5f6368;
    font-size: 14px;
    line-height: 1.5;
}

/* Stagger animation support */
[data-stagger] > * {
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

[data-stagger] > .stagger-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ===== 9. Info Section ===== */
.section-info {
    background: var(--blanco);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.info-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    width: 100%;
    object-fit: cover;
}

.info-content h2 {
    margin-bottom: 16px;
}

.info-content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--azul-cyan);
}

.info-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.info-list {
    margin-bottom: 24px;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    line-height: 1.5;
}

.info-list li .icon {
    flex-shrink: 0;
    margin-top: 3px;
}

/* ===== 10. Beneficios Section ===== */
.section-beneficios {
    background: var(--blanco);
    border-top: 1px solid #f0f0f0;
}

.beneficios-list {
    max-width: 700px;
    margin: 32px auto 0;
}

.beneficios-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 15px;
}

.beneficios-list li .icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}

.beneficio-card {
    background: var(--blanco);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
}

.beneficio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.beneficio-card h3 {
    color: var(--azul-oscuro);
    margin-bottom: 8px;
}

.beneficio-card p {
    color: #5f6368;
    font-size: 14px;
    line-height: 1.5;
}

/* Beneficios layout with side image */
.beneficios-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.beneficios-content {
    flex: 1;
}

.beneficios-image {
    flex-shrink: 0;
}

.beneficios-image img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-card);
    margin: 0 auto;
    display: block;
}

/* ===== 11. Content Sections ===== */
.section-experiencia {
    background: var(--blanco);
}

/* ===== 12. About Section (Priscan consolidated) ===== */
.section-about {
    background: var(--gris-fondo);
}

.about-block {
    max-width: 800px;
    margin: 0 auto 48px;
}

.about-block--highlight {
    text-align: center;
    padding: 48px 32px;
    background: var(--blanco);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 48px;
}

.about-block-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--azul-oscuro);
}

.about-block-text {
    color: #5f6368;
    line-height: 1.7;
}

.about-block--with-image {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 100%;
}

.about-block-text-wrap {
    flex: 1;
}

.about-block-image {
    flex-shrink: 0;
}

.about-block-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-card);
    margin: 0 auto;
    display: block;
}

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

.about-card {
    background: var(--blanco);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.about-card-title {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--azul-oscuro);
}

.about-list {
    list-style: none;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    line-height: 1.5;
}

.about-list li .icon {
    flex-shrink: 0;
    margin-top: 3px;
}

/* ===== 13. Incluye Section (legacy - kept for safety) ===== */
.section-incluye {
    background: var(--blanco);
}

.incluye-list {
    max-width: 700px;
    margin: 32px auto 0;
}

.incluye-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.incluye-list li .icon {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== 14a. Stats Cards (Samfund-style) ===== */
.section-stats {
    background: var(--gris-fondo);
    padding: 100px 0 60px;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    flex: 0 1 calc(50% - 8px);
    text-align: center;
    padding: 36px 20px;
    border-radius: var(--radius-md);
    background: var(--blanco);
    border: 1.5px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--azul-cyan);
    box-shadow: 0 4px 20px rgba(0, 172, 216, 0.08);
}

.stat-card-number {
    display: block;
    font-size: 40px;
    font-weight: 800;
    color: var(--azul-cyan);
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-card-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
    line-height: 1.3;
}

/* ===== 14b. Propuesta V7 (Light benefits grid) ===== */
.section-propuesta-v7 {
    background: var(--blanco);
    padding: 60px 0 100px;
}

.propuesta-v7-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 48px;
}

.propuesta-v7-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--gris-fondo);
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.propuesta-v7-item:hover {
    border-color: rgba(0, 172, 216, 0.15);
    background: #f0f9ff;
}

.propuesta-v7-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 172, 216, 0.08);
}

.propuesta-v7-body {
    flex: 1;
}

.propuesta-v7-titulo {
    font-size: 16px;
    font-weight: 600;
    color: var(--azul-oscuro);
    margin-bottom: 4px;
}

.propuesta-v7-texto {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.5;
}

/* ===== 15. Horarios Section V2 (Card Grid) ===== */
.section-horarios {
    background: var(--gris-fondo);
    padding: 48px 0;
}

.horarios-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.horarios-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--azul-oscuro);
    margin: 0;
}

.horarios-strip {
    max-width: 520px;
    margin: 0 auto 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.horarios-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--blanco);
    border-radius: var(--radius-md);
    border: 1px solid #e8ecf0;
}

.horarios-day {
    font-size: 14px;
    font-weight: 600;
    color: var(--azul-oscuro);
    white-space: nowrap;
}

.horarios-dots {
    flex: 1;
    border-bottom: 2px dotted #d0d5dd;
    min-width: 20px;
    margin-bottom: -2px;
}

.horarios-time {
    font-size: 14px;
    font-weight: 700;
    color: var(--azul-cyan);
    white-space: nowrap;
}

.horarios-location {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #5f6368;
}

.horarios-location a {
    color: var(--azul-cyan);
    text-decoration: none;
    font-weight: 600;
}

.horarios-sep {
    color: #d0d5dd;
    margin: 0 4px;
}

/* ===== 16. CTA Final ===== */
.section-cta-final {
    background: linear-gradient(160deg, #003A70 0%, #002850 100%);
    color: var(--blanco);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Centered CTA (no form) */
.cta-final-content-centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-final-content-centered .section-title {
    text-align: center;
}

.cta-final-action {
    margin: 32px 0;
}

.cta-trust-badges--centered {
    justify-content: center;
}

.cta-final-texto {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* Trust badges */
.cta-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--azul-claro);
    font-size: 14px;
    font-weight: 500;
}

/* Glass card for form */
.form-card-glass {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

@supports not (backdrop-filter: blur(1px)) {
    .form-card-glass {
        background: rgba(0,40,80,0.95);
    }
}

.form-card-glass .form-card-title {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

@supports not (backdrop-filter: blur(1px)) {
    .form-card-glass .form-card-title {
        color: white;
    }
    .form-card-glass .form-label {
        color: rgba(255,255,255,0.9);
    }
    .form-card-glass .form-microcopy-item {
        color: rgba(255,255,255,0.6);
    }
}

.form-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--azul-oscuro);
    margin: 0 0 16px;
    line-height: 1.2;
}

/* ===== 17. Footer ===== */
.site-footer {
    background: linear-gradient(180deg, #001e3d 0%, #001529 100%);
    color: var(--blanco);
    padding: 48px 0 28px;
    text-align: center;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo {
    display: block;
    height: 36px;
    width: auto;
    margin: 0 auto 8px;
}

.footer-slogan {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-style: italic;
    letter-spacing: 0.3px;
}

.footer-divider {
    width: 48px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 auto 20px;
}

.footer-contact-address {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.footer-contact-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0 24px;
    margin-bottom: 20px;
}

.footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-social {
    margin-bottom: 20px;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
    color: rgba(255, 255, 255, 0.5);
}

.footer-social-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

.footer-credit {
    margin-top: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-credit a {
    color: #a2d9e7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-credit a:hover {
    color: var(--azul-cyan);
}

/* ===== 18. WhatsApp Floating Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ===== 19. Scroll Animations (Phenomenon-style) ===== */

/* Base: all animated elements start hidden */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    animation: fallback-reveal 0s ease 4s forwards;
}

/* Direction variants */
[data-animate="fadeInUp"] { transform: translateY(40px); }
[data-animate="fadeInDown"] { transform: translateY(-40px); }
[data-animate="fadeInLeft"] { transform: translateX(-40px); }
[data-animate="fadeInRight"] { transform: translateX(40px); }
[data-animate="scaleIn"] { transform: scale(0.92); }
[data-animate="fadeIn"] { transform: none; }

@keyframes fallback-reveal {
    to { opacity: 1; transform: translateY(0) translateX(0) scale(1); }
}

/* Animated-in state */
[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
    animation: none;
}

/* Hero entrance — staggered children on page load */
.hero [data-hero-delay] {
    opacity: 0;
    transform: translateY(30px);
    animation: heroEntrance 0.9s var(--ease-out-expo) forwards;
}

.hero [data-hero-delay="1"] { animation-delay: 0.1s; }
.hero [data-hero-delay="2"] { animation-delay: 0.25s; }
.hero [data-hero-delay="3"] { animation-delay: 0.4s; }
.hero [data-hero-delay="4"] { animation-delay: 0.55s; }
.hero [data-hero-delay="5"] { animation-delay: 0.7s; }
.hero [data-hero-delay="6"] { animation-delay: 0.85s; }
.hero [data-hero-delay="7"] { animation-delay: 1.0s; }

@keyframes heroEntrance {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Hero image special entrance — scale + fade */
.hero-image-wrapper[data-hero-delay] {
    animation-name: heroImageEntrance;
}

@keyframes heroImageEntrance {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Text split reveal — words animate one by one */
.text-reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.text-reveal-word.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Counter animation pulse */
.stat-counting {
    transition: transform 0.3s var(--ease-out-expo);
}

/* Parallax elements (JS-controlled) */
[data-parallax] {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ===== 20. Mobile Bottom Nav (Premium glass dark) ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(8, 15, 35, 0.92);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-top: 1px solid rgba(0, 172, 216, 0.12);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}

.mobile-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 50px;
    padding: 6px 4px 4px;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.15s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-tab .nav-icon {
    transition: transform 0.25s ease;
}

.mobile-nav-tab span {
    line-height: 1;
}

/* Active tab */
.mobile-nav-tab--active {
    color: var(--azul-cyan);
}

.mobile-nav-tab--active .nav-icon {
    filter: drop-shadow(0 0 6px rgba(0, 172, 216, 0.5));
}

/* Central CTA button — elevated circle */
.mobile-nav-tab--cta {
    position: relative;
    margin-top: -18px;
    color: var(--azul-cyan);
}

.nav-cta-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul-cyan) 0%, #0090b8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 172, 216, 0.4), 0 0 0 3px rgba(8, 15, 35, 0.92);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-nav-tab--cta:active .nav-cta-circle {
    transform: scale(0.9);
    box-shadow: 0 2px 12px rgba(0, 172, 216, 0.5), 0 0 0 3px rgba(8, 15, 35, 0.92);
}

.mobile-nav-tab--cta span {
    color: var(--azul-cyan);
    margin-top: 2px;
}

/* WhatsApp tab */
.mobile-nav-tab--whatsapp {
    color: rgba(255, 255, 255, 0.45);
}

.mobile-nav-tab--whatsapp .nav-icon {
    color: #25d366;
}

.mobile-nav-tab:hover,
.mobile-nav-tab:focus {
    color: rgba(255, 255, 255, 0.85);
}

.mobile-nav-tab--active:hover,
.mobile-nav-tab--active:focus {
    color: var(--azul-cyan);
}

.mobile-nav-tab--cta:hover span,
.mobile-nav-tab--cta:focus span {
    color: var(--azul-cyan);
}

.mobile-nav-tab:active {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}

.mobile-nav-tab--cta:active {
    transform: none;
}

/* ===== 21. Responsive — Tablet (768px+) ===== */
@media (min-width: 768px) {
    h1 { font-size: 48px; }
    h2 { font-size: 32px; }
    body { font-size: 17px; }

    section { padding: 100px 0; }

    .hero {
        padding-top: 120px;
        padding-bottom: 100px;
    }

    .hero-title {
        font-size: 52px;
    }

    .hero-priscan-logo img {
        height: 80px;
    }

    .hero-stat-number {
        font-size: 32px;
    }

    .stat-card {
        flex: 0 1 calc(25% - 12px);
    }

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

    .ventaja-card {
        width: calc(50% - 8px);
    }

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

    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .horarios-strip {
        flex-direction: row;
        max-width: 700px;
        gap: 16px;
    }

    .horarios-item {
        flex: 1;
    }

    .footer-contact-row {
        gap: 8px 36px;
    }

    .header-cta {
        display: inline-flex;
    }

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

    .beneficios-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .beneficios-image img {
        max-width: 360px;
    }

    .about-block--with-image {
        flex-direction: row;
        align-items: center;
        max-width: 100%;
    }

    .about-block-image img {
        max-width: 360px;
    }

    /* Mobile bottom nav hidden on tablet+ */
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* ===== 22. Responsive — Desktop (1024px+) ===== */
@media (min-width: 1024px) {
    h1 { font-size: 64px; letter-spacing: -2px; }
    h2 { font-size: 40px; }
    body { font-size: 18px; }

    section { padding: 120px 0; }

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

    .hero-content {
        text-align: left;
    }

    .hero-text {
        margin-left: 0;
    }

    .hero-stats {
        justify-content: flex-start;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-trust-row {
        justify-content: flex-start;
    }

    .hero-title {
        font-size: 56px;
    }

    .hero-priscan-logo img {
        height: 90px;
    }

    .hero-stat-number {
        font-size: 36px;
    }

    .hero-image-card {
        max-width: 100%;
        height: 480px;
    }

    .form-card {
        padding: 56px 48px;
    }

    .hero-badge {
        margin-bottom: 28px;
    }
}

/* ===== 23. Responsive — Large Desktop (1280px+) ===== */
@media (min-width: 1280px) {
    .container {
        padding: 0 40px;
    }

    .hero {
        padding-top: 140px;
        padding-bottom: 120px;
    }

    .hero-title {
        font-size: 64px;
    }

    .hero-image-card {
        height: 520px;
    }
}

/* ===== 24. Mobile Only (<768px) — App-like UX ===== */
@media (max-width: 767px) {
    /* Bottom nav visible */
    .mobile-bottom-nav {
        display: flex;
    }

    /* Hide WhatsApp float on mobile (already in bottom nav) */
    .whatsapp-float {
        display: none !important;
    }

    /* Body padding for bottom nav — always visible */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }

    /* Footer extra padding */
    .site-footer {
        padding-bottom: calc(24px + 64px + env(safe-area-inset-bottom));
    }

    /* Compact header */
    .site-header {
        padding: 10px 0;
    }

    .header-logo img {
        height: 32px;
    }

    .header-logo-priscan img {
        height: 28px;
    }

    /* PriScan hero logo — mobile */
    .hero-priscan-logo img {
        height: 52px;
    }

    .header-phone span {
        display: none;
    }

    /* Compact section spacing */
    section {
        padding: 48px 0;
    }

    /* Hero compact */
    .hero {
        padding-top: 72px;
        padding-bottom: 48px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-stat-number {
        font-size: 22px;
    }

    .hero-stat {
        padding: 12px 14px;
        min-width: 0;
        flex: 1;
        min-width: calc(50% - 8px);
    }

    .hero-badge {
        font-size: 11px;
        padding: 5px 12px;
    }

    /* Hero buttons full-width */
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        width: 100%;
        min-height: 52px;
        justify-content: center;
    }

    /* Hero trust pills - wrap */
    .hero-trust-row {
        gap: 6px;
    }

    .hero-trust-item {
        font-size: 11px;
        padding: 5px 12px;
    }

    /* Form section compact */
    .section-form {
        padding: 60px 0;
    }

    .form-card {
        padding: 32px 24px;
        margin: 0 -4px;
    }

    /* Stats grid compact */
    .stats-grid {
        gap: 12px;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .stat-card-number {
        font-size: 32px;
    }

    /* Tappable card feedback (active press) */
    .ventaja-card:active,
    .beneficio-card:active,
    .propuesta-v7-item:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }

    /* Disable hover effects on mobile (only active press) */
    .ventaja-card:hover,
    .beneficio-card:hover {
        transform: none;
        box-shadow: none;
        border-color: #f0f0f0;
    }

    /* Hero bg image subtler on mobile */
    .hero-bg-image {
        opacity: 0.05;
        animation-duration: 30s;
    }

    /* Scan animation slower on mobile */
    .hero-scan-line {
        animation-duration: 5s;
    }
    .hero::after {
        display: none;
    }

    /* CTA final compact */
    .section-cta-final {
        padding: 60px 0 calc(48px + 64px + env(safe-area-inset-bottom));
    }

    /* About section compact */
    .about-block--highlight {
        padding: 32px 20px;
    }
}

/* ===== 25. Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-animate] { opacity: 1; transform: none; animation: none; }
}
