/* 
   Aspen Consultores - Style System
   Premium Boutique Aesthetic
*/

:root {
    --primary: #0f172a;
    --accent: #b2945d;
    --text-main: #1e293b;
    --text-light: #64748b;
    --background: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(15, 23, 42, 0.8);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Blobs */
.blob-c {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(120px);
    opacity: 0.25;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 700px;
    height: 700px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.15;
    animation: move 35s infinite alternate ease-in-out;
}

.blob:nth-child(2) {
    background: #4f46e5; /* Indigo */
    width: 800px;
    height: 800px;
    left: -200px;
    top: -200px;
    animation-duration: 45s;
}

.blob:nth-child(3) {
    background: #f43f5e; /* Rose */
    width: 500px;
    height: 500px;
    right: -100px;
    bottom: -100px;
    animation-duration: 30s;
}

@keyframes move {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(150px, 100px) scale(1.1) rotate(45deg); }
    100% { transform: translate(-50px, 150px) scale(0.9) rotate(-30deg); }
}

.brand-floater {
    position: fixed;
    top: 20%;
    right: -5%;
    font-size: 60rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.03;
    z-index: -2;
    pointer-events: none;
    line-height: 1;
}

h1, h2, h3, .btn {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed; /* Fixed for modern boutique feel */
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-scrolled {
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    height: 60px;
    filter: brightness(1);
}

.authority-badge {
    background: var(--accent);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(178, 148, 93, 0.3);
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 850px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%), 
                url('hero-bg-new.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding-top: 22vh; /* Bajamos el título mucho más profundamente */
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 2.5rem; /* Más espacio después del título */
    max-width: 900px;
    letter-spacing: -2px;
}

.hero .highlight {
    color: var(--accent);
}

.hero .subtitle {
    font-size: 1.7rem;
    font-weight: 500;
    max-width: 700px;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    color: var(--accent);
    line-height: 1.4;
}

.hero-description {
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 3.5rem; /* El botón respira más */
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 20px -5px rgba(178, 148, 93, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(178, 148, 93, 0.5);
    background: #c1a46b;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.hero-trust-bar {
    margin-top: 3.5rem; /* Reducido un 30% según pedido */
}

.trust-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35); /* Restaurado a blanco sutil para fondo oscuro */
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.hero-logos {
    display: flex;
    gap: 4rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-logo-item {
    transition: var(--transition);
}

.hero-logo-item img {
    height: 40px;
    width: auto;
    filter: grayscale(100%) brightness(500%) opacity(0.5);
    transition: var(--transition);
}

.hero-logo-item:hover img {
    filter: grayscale(100%) brightness(800%) opacity(0.9);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--primary);
    width: 100%;
    margin-bottom: 0.75rem;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

/* Clients Section (Marquee) */
.clients-section {
    background: #ffffff;
    padding: 10rem 0; /* Aumentado para mayor aire y elegancia */
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.clients-section .black {
    color: #0f172a !important;
}

.ticker-wrapper {
    display: flex;
    overflow: hidden;
    user-select: none;
    padding: 1rem 0;
}

.ticker-track {
    display: flex;
    flex-shrink: 0;
    gap: 5rem; /* Aumento de gap para mejor visualización */
    min-width: 100%;
}

.ticker-track.left {
    animation: scrollLeft 50s linear infinite;
}

.ticker-track.right {
    animation: scrollRight 50s linear infinite;
}

.logo-item {
    flex-shrink: 0;
    width: 180px; /* Tamaño un poco mayor */
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: var(--transition);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes scrollRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

/* Section Headers */
.section-header.center {
    text-align: center;
    margin-bottom: 4rem;
}

.white { color: #ffffff !important; }
.white-opacity { color: rgba(255, 255, 255, 0.7); }

/* Animation System (Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.reveal.slide-left {
    transform: translateX(-100px);
    scale: 1; /* Reset scale for slide variant */
}

.reveal.slide-right {
    transform: translateX(100px);
    scale: 1; /* Reset scale for slide variant */
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
    pointer-events: auto;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1); /* Premium luxury curve */
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* Dynamic Animations (Olivia Style) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pain Section Redesign */
.pain-section {
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    padding: 8rem 0;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.pain-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
}

.pain-card:hover {
    transform: translateY(-15px) scale(1.03);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pain-icon-box {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 5px 15px rgba(178, 148, 93, 0.3));
    transition: transform 0.3s ease;
}

.pain-card:hover .pain-icon-box {
    transform: scale(1.2) rotate(5deg);
}

.pain-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pain-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Section Layout (Minimalist Boutique) */
.specialized-section {
    background: #f8fafc;
    padding: 10rem 0;
    position: relative;
    z-index: 2;
}

.pillars-section {
    background: #fdfdfd;
    padding: 10rem 0;
    position: relative;
    z-index: 3;
}

.clients-section {
    background: #ffffff;
    padding: 10rem 0;
    position: relative;
    z-index: 4;
}

.deliverables-section {
    background: #ffffff;
    padding: 10rem 0;
}

.quiz-section {
    background: #0f172a;
    color: var(--white);
    padding: 10rem 0;
    position: relative;
    z-index: 5;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
    opacity: 0.6;
    filter: grayscale(1);
    margin-bottom: 1rem;
}

.social-proof-strip p {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Pain Triggers Grid */
.trigger-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 5rem;
}

.trigger-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.trigger-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
}

.trigger-icon {
    width: 60px;
    height: 60px;
    background: rgba(178, 148, 93, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--accent);
}

.trigger-card h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.trigger-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Specialized Diagnostics Mosaic (Boutique) */
.specialized-section {
    background: #f8fafc;
    padding: 10rem 0;
    overflow: visible;
}

.spec-dual-layout {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.spec-text-content {
    flex: 1;
    max-width: 450px;
}

.spec-text-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.section-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.spec-visual-carousel {
    flex: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    position: relative;
}

.carousel-3d-container {
    width: 340px;
    height: 420px;
    position: relative;
}

.carousel-3d-deck {
    width: 100%;
    height: 100%;
    position: relative;
    perspective: 1500px;
    transform-style: preserve-3d;
    cursor: pointer;
}

.carousel-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
    backface-visibility: hidden;
}

.card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carousel-card h3 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.carousel-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

.carousel-card .card-icon {
    color: var(--accent);
    background: rgba(178, 148, 93, 0.08);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 2rem;
}

/* 3D Positions (Slots) */
.pos-1 {
    transform: translateZ(0) translateX(0) scale(1);
    z-index: 10;
    opacity: 1;
}

.pos-2 {
    transform: translateZ(-100px) translateX(80px) scale(0.9);
    z-index: 8;
    opacity: 0.7;
}

.pos-3 {
    transform: translateZ(-200px) translateX(160px) scale(0.8);
    z-index: 6;
    opacity: 0.4;
}

.pos-4 {
    transform: translateZ(-300px) translateX(0) scale(0.7);
    z-index: 4;
    opacity: 0;
    pointer-events: none;
}

.spec-cta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Helper utilities */
.overflow-visible { overflow: visible !important; }
.dark { color: var(--dark) !important; }

/* Lucide SVGs globally */
.lucide {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Timeline Section */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem;
    margin-bottom: 2rem;
}

.timeline-item.left {
    left: 0;
    padding-right: 4rem;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    padding-left: 4rem;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 0 20px rgba(178, 148, 93, 0.4);
}

.timeline-item.left .timeline-dot {
    right: -25px;
}

.timeline-item.right .timeline-dot {
    left: -25px;
}

.timeline-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--accent);
}

/* Results Spotlight */
.spotlight-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.spotlight-main {
    background: var(--primary);
    color: var(--white);
    padding: 4rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.spotlight-main::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: var(--accent);
    opacity: 0.1;
    filter: blur(80px);
    border-radius: 50%;
}

.huge-stat {
    font-size: 6rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    display: block;
    margin-bottom: 1.5rem;
}

.spotlight-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.side-stat {
    flex: 1;
    background: #f8fafc;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.small-stat {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Quiz Section */
.quiz-section {
    background: #0f172a;
    color: var(--white);
    position: relative;
}

/* Fix para botones outline dentro del quiz (fondo oscuro) */
.quiz-section .btn-outline {
    color: var(--white);
    border-color: rgba(178, 148, 93, 0.6);
}

.quiz-section .btn-outline:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 1.5rem 0 3rem;
}

.progress {
    height: 100%;
    background: var(--accent);
    width: 20%;
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quiz-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.quiz-step.active {
    display: block;
}

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

.quiz-step h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600; /* Aumentado de 400 para mejor legibilidad */
    color: var(--white);
}

/* Options List (Quiz Funnel) */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.btn-quiz-option {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--white);
    text-align: left;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: inherit;
    font-size: 1.05rem;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.btn-quiz-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-quiz-option:active {
    transform: scale(0.98) translateX(8px);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.indicator.red { background: #ff4d4d; box-shadow: 0 0 12px rgba(255, 77, 77, 0.5); }
.indicator.yellow { background: #ffcc00; box-shadow: 0 0 12px rgba(255, 204, 0, 0.5); }
.indicator.green { background: #00ffaa; box-shadow: 0 0 12px rgba(0, 255, 170, 0.5); }

/* Se mantienen estilos de formulario */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group input {
    width: 100%;
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 1rem;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5); /* Placeholder más visible */
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

/* Footer */
.footer {
    background: #0a0e1b;
    color: #cbd5e1;
    padding: 8rem 0 4rem; /* Aumento de padding para consistencia */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: -1px; /* Para evitar brechas de 1px entre secciones oscuras */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer h4 {
    color: #3b82f6; /* Azul suave para los headers */
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.logo-footer {
    max-height: 45px;
    margin-bottom: 1.5rem;
}

.brand-phrase {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 280px;
    opacity: 0.8;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.75rem;
}

.footer-nav a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

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

.group-logos {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.group-logo {
    max-height: 35px;
    object-fit: contain;
    width: fit-content;
}

.footer-location p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #64748b;
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    background: #0f172a;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0;
    display: block;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.contact-info p.emphasized {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #f8fafc;
    font-weight: 300;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #f1f5f9;
}

.contact-details a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(178, 148, 93, 0.3);
}

.contact-details strong {
    color: var(--accent);
    margin-right: 0.5rem;
    font-weight: 600;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-container textarea {
    width: 100%;
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.contact-form-container textarea:focus {
    outline: none;
    border-color: var(--accent);
}

#contact-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 900px) {
    /* Global Spacing */
    section {
        padding: 5rem 0 !important;
    }

    .grid, .footer-grid, .method-grid, .results-grid, 
    .pillar-grid, .deliverables-grid, .card-grid, .trigger-grid, .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .results-grid {
        flex-direction: column;
    }

    .hero {
        text-align: center;
        padding-top: 180px !important; /* Bajamos el título drásticamente en mobile para evitar solapamientos */
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 8vw, 3rem); /* Reducido para evitar overflow */
        line-height: 1.1;
        margin-bottom: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.3rem; /* Más pequeño para mobile */
        margin-left: auto;
        margin-right: auto;
    }

    .hero-description {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .header-scrolled {
        padding: 0.75rem 0;
    }

    .logo {
        height: 45px;
    }

    .authority-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        display: none; /* Se oculta por defecto en mobile para no tapar el título */
    }

    .header-scrolled .authority-badge {
        display: inline-block; /* Aparece solo cuando el header se achica/scrollea */
    }

    .spec-dual-layout {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .spec-text-content h2 {
        font-size: 2.2rem;
    }

    .spec-visual-stack {
        height: 350px;
        margin-top: 2rem;
    }

    .stack-3d-deck {
        width: 100%;
        max-width: 300px;
        height: 320px;
        margin: 0 auto;
    }

    /* WhatsApp Mobile Adjustment - Ultra Minimal */
    .whatsapp-pill {
        bottom: 25px;
        right: 25px;
        padding: 0 !important; /* Quitamos cualquier padding heredado para centrar el icono */
        border-radius: 50% !important;
        width: 56px; 
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    }

    .whatsapp-pill span {
        display: none !important;
    }

    .wa-icon-box {
        width: 100%;
        height: 100%;
        margin-right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wa-icon-box i {
        font-size: 24px;
    }

    /* Quiz Steps Mobile */
    .quiz-container {
        padding-bottom: 80px; /* Espacio extra para que la pill de WA no tape el checkbox final */
    }

    .btn-quiz-option {
        padding: 1rem;
        font-size: 0.95rem;
    }

    /* Footer Mobile */
    .footer-grid {
        text-align: center;
    }

    .group-logos {
        align-items: center;
        gap: 2rem;
    }

    .footer-nav ul {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.1rem;
    }

    .spec-text-content h2 {
        font-size: 1.9rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .bonus-ticket {
        padding: 1.5rem 1rem;
        margin: 2rem 0;
    }

    .contact-grid {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .contact-info, .contact-form-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0;
        margin: 0 0 3rem 0;
        box-sizing: border-box;
    }

    .contact-form-container form {
        width: 100%;
    }
    
    .contact-section .container {
        padding: 0 1.5rem;
    }
}

/* WhatsApp Pill Style */
.whatsapp-pill {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #00a884;
    color: white;
    padding: 8px 24px 8px 8px; /* Padding reducido a la izquierda para el logo circular */
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(0, 168, 132, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    font-size: 1rem;
}

.whatsapp-pill:hover {
    transform: scale(1.05) translateY(-5px);
}

.wa-icon-box {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-icon-box img {
    width: 25px;
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 24px; /* Recuperamos todas las esquinas redondeadas */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* El scroll pasa al modal-body */
    animation: modalSlideUp 0.3s ease;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

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

.modal-header {
    background: #f8fafc;
    padding: 2rem 3rem 1.5rem 2rem;
    text-align: left;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0; /* No se encoge */
}

.wa-icon-circle {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.wa-icon-circle img {
    width: 30px;
    filter: brightness(0) invert(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.close-modal:hover {
    background: #f1f5f9;
    color: var(--accent);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem 3rem 2rem 2rem;
    overflow-y: auto; /* Scroll interno para mantener cabecera fija */
    flex-grow: 1;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Scrollbar Asimétrico Integrado */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px; /* Redondeado de nuevo para que pegue con las esquinas */
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.modal-body p {
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.wa-option-card {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.wa-option-card:hover {
    border-color: #25d366;
    background: #f0fff4;
}

.wa-option-icon {
    font-size: 1.5rem;
    margin-right: 1.25rem;
    background: #f1f5f9;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.wa-option-text h4 {
    color: var(--primary);
    margin-bottom: 2px;
}

.wa-option-text p {
    margin: 0;
    font-size: 0.85rem;
    text-align: left;
}
/* Pillars Section */
.pillars-section {
    background: #fdfdfd;
    padding: 10rem 0;
}

.pillar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.pillar-card {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease, opacity 0.6s ease;
    position: relative;
    overflow: hidden;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.06);
    border-color: var(--accent);
}

.pillar-icon-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pillar-main-icon {
    font-size: 3rem;
    background: rgba(178, 148, 93, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--accent);
}

.pillar-card h3 {
    font-size: 1.75rem;
    color: var(--primary);
    margin: 0;
}

.pillar-desc {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.5;
}

.pillar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pillar-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.list-icon {
    font-size: 1.25rem;
    color: var(--accent);
    background: rgba(178, 148, 93, 0.05);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.copy-suggested {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--accent);
    max-width: 750px;
    margin: 1.5rem auto 0;
    line-height: 1.4;
    font-weight: 300;
}

/* Deliverables Section */
.deliverables-section {
    background: #ffffff;
    padding: 10rem 0;
    border-top: 1px solid #f1f5f9;
}

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.deliverable-card {
    background: #fdfdfd;
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    text-align: center;
    transition: all 0.4s ease;
}

.deliverable-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
    border-color: var(--accent);
}

.deliverable-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(178, 148, 93, 0.05);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

.deliverable-card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.deliverable-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.deliverable-card strong {
    color: var(--primary);
}

/* Bonus Ticket Styling */
.bonus-ticket {
    margin: 2rem 0;
    position: relative;
    background: rgba(178, 148, 93, 0.04); /* Más claro para mejor lectura */
    border: 1px dashed var(--accent); /* Línea más fina */
    border-radius: 12px;
    padding: 1.5rem 2rem;
    overflow: hidden;
}

/* Las "muescas" del ticket para el fondo oscuro del contacto */
.bonus-ticket::before,
.bonus-ticket::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: #0f172a; /* Fondo oscuro de la sección de contacto */
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.bonus-ticket::before { left: -14px; }
.bonus-ticket::after { right: -14px; }

.bonus-ticket .ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.ticket-badge {
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px; /* Más redondeado */
    letter-spacing: 1px;
}

.bonus-ticket h3 {
    color: var(--primary);
    font-size: 1.35rem;
    margin: 0;
}

.ticket-body p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.ticket-footer {
    border-top: 1px dashed rgba(178, 148, 93, 0.3);
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.ticket-promo {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* Variación pequeña para el Quiz (Fondo Blanco del modal) */
.bonus-ticket-small {
    background: rgba(178, 148, 93, 0.03);
    border: 1px dashed var(--accent);
    padding: 1.25rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    position: relative;
}

.bonus-ticket-small::before,
.bonus-ticket-small::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #ffffff; /* Fondo blanco del quiz */
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.bonus-ticket-small::before { left: -9px; }
.bonus-ticket-small::after { right: -9px; }

.bonus-ticket-small .ticket-body p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9); /* Cambiado de var(--text-main) para contraste */
}

.bonus-ticket-small .ticket-header {
    font-weight: 700;
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block; /* Aseguramos visibilidad */
}

/* Legal Compliance Styles (Ads Readiness) */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
    text-align: left;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--accent);
}

.checkbox-group label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.checkbox-group label a {
    color: var(--accent);
    text-decoration: underline;
}

/* Light background label override */
.contact-section .checkbox-group label {
    color: var(--text-light);
}

/* Estilos específicos para el texto legal ya manejados en .modal-body */
.legal-modal {
    max-width: 700px !important;
}

.legal-text {
    line-height: 1.8;
}

.legal-text h4 {
    margin: 1.5rem 0 0.5rem;
    color: var(--primary);
    font-size: 1.1rem;
    text-align: left !important;
}

.legal-text p {
    text-align: left !important;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-main) !important;
}

.legal-text ul {
    text-align: left !important;
}
