/* Integra Cloud CSS Base - Modern SaaS Design */

:root {
    /* Color Palette - Premium Tech Look */
    --bg-main: #0a0c10;
    --bg-secondary: #12161f;
    --text-primary: #f0f2f5;
    --text-secondary: #9ba1a6;
    
    --accent-primary: #3b82f6; /* Trust blue */
    --accent-secondary: #8b5cf6; /* Modern purple */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    
    --border-color: rgba(255, 255, 255, 0.08);
    --btn-hover: #2563eb;
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for the sticky header */
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}
/* Custom Cursor Aura */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(0, 0, 0, 0) 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1; /* Detrás de la UI (pero adelante del fondo) */
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
    mix-blend-mode: screen;
}

/* Modificador cuando el cursor toca un botón magnético */
.cursor-glow.cursor-magnet-active {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Navigation Menu */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(10, 12, 16, 0.75); /* Transparencia del 75% solicitada */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    height: 40px;
    width: auto;
    object-fit: contain;
}

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

.navbar nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.nav-toggle {
    display: none;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.45);
    box-shadow: 0 12px 26px rgba(59, 130, 246, 0.15);
    border-radius: 18px;
    cursor: pointer;
    padding: 0.85rem;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1002;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: rgba(59, 130, 246, 0.20);
    box-shadow: 0 18px 34px rgba(59, 130, 246, 0.18);
    outline: none;
}

/* Estilo cuando se está haciendo scroll: semitransparente pero siempre visible */
.nav-toggle.scrolled {
    opacity: 0.72;
    background: rgba(59, 130, 246, 0.08);
    box-shadow: 0 8px 20px rgba(16,24,40,0.35);
    transform: translateY(0) scale(0.98);
}

.nav-toggle {
    transition: opacity 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 999px;
    transition: width 0.3s ease, height 0.3s ease, transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.nav-toggle span + span {
    margin-top: 0;
}

.navbar.nav-open .nav-toggle {
    flex-direction: column;
    gap: 0;
    justify-content: center;
    transform: rotate(180deg);
}

.navbar.nav-open .nav-toggle span {
    width: 24px;
    height: 2px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    background: var(--accent-primary);
}

.navbar.nav-open .nav-toggle span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.navbar.nav-open .nav-toggle span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
}

.navbar.nav-open .nav-toggle span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* También soportar el botón cuando está fuera del header: `.nav-toggle.open` */
.nav-toggle.open {
    flex-direction: column;
    gap: 0;
    justify-content: center;
    transform: rotate(180deg);
}

.nav-toggle.open span {
    width: 24px;
    height: 2px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    background: var(--accent-primary);
}

.nav-toggle.open span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.navbar nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.navbar nav a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px; /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 15px 35px -5px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 12rem 5% 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-container {
    max-width: 100%; width: 95%;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeUp 1s ease-out forwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

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

.hero-title {
    font-size: clamp(2rem, 4.5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    max-width: 100%;
    width: 100%;
    line-height: 1.15;
    white-space: normal;
}

.hero-title--compact {
    max-width: 60%;
    width: 60%;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    max-width: 920px;
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Trust Elements */
.hero-trust {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    width: 100%;
}

.hero-trust p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    filter: grayscale(100%);
}

.trust-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    opacity: 0.6;
    text-decoration: none;
    transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.trust-logo[href]:hover {
    opacity: 1;
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Background Effects */
.hero-bg-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.6;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: rgba(59, 130, 246, 0.15);
    top: -10%;
    left: -10%;
    animation: float 10s ease-in-out infinite;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.15);
    bottom: -10%;
    right: -10%;
    animation: float 12s ease-in-out infinite reverse;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Pain Points Section */
.pain-section {
    padding: 6rem 5%;
    background: var(--bg-main);
    text-align: center;
}

.pain-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.pain-card {
    background: rgba(255, 71, 87, 0.03); /* Subtle red tint */
    border: 1px solid rgba(255, 71, 87, 0.1);
    border-radius: 1rem;
    padding: 2.5rem 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pain-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 71, 87, 0.4);
    box-shadow: 0 10px 30px -10px rgba(255, 71, 87, 0.15);
}

.pain-icon {
    color: #ff4757;
    margin-bottom: 1.5rem;
}

.pain-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #ff6b81; /* Threat color focus */
}

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

/* Partners Section */
.partners-section {
    padding: 6rem 5%;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 4rem;
    font-size: 1.125rem;
}

.partners-section .section-subtitle {
    max-width: 900px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.partner-icon {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.partner-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.partner-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Services Section */
.services-section {
    padding: 8rem 5%;
    background: var(--bg-main);
    position: relative;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

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

.services-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* Hero benefits list */
.hero-benefits {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2rem;
    margin-bottom: 3rem;
    padding: 0;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.benefit-check {
    color: #10b981;
    font-size: 1.1rem;
}

/* Service result line */
.service-result {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.9rem !important;
    color: #10b981 !important;
}


.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: left;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px -15px rgba(59, 130, 246, 0.2);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 2rem;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 1rem;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-gradient);
    color: white;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

/* Process Section */
.process-section {
    padding: 8rem 5%;
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-secondary) 100%);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.process-container {
    max-width: 1200px;
    margin: 0 auto;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-top: 5rem;
    position: relative;
    text-align: left;
}

.process-step {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 3rem 2rem 2.5rem;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.process-step:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 15px 40px -15px rgba(139, 92, 246, 0.15);
}

.step-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    z-index: 0;
}

.step-icon {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    color: var(--accent-secondary);
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    min-height: 3.5rem; /* Fuerzo a que ocupen el espacio de 2 líneas */
    display: flex;
    align-items: flex-start;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem; /* Gap con la etiqueta de confianza */
    position: relative;
    z-index: 2;
    min-height: 4.8rem; /* Fuerzo a que ocupen el espacio de 3 líneas */
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto; /* Pushes the badge to the bottom uniformly */
    padding: 0.4rem 0.8rem;
    background: rgba(16, 185, 129, 0.1); /* Emerald green tint */
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 99px; /* Pill shape */
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    align-self: flex-start; /* Ensures the badge doesn't stretch to full width */
}

.process-microcopy {
    margin-top: 4rem;
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(139, 92, 246, 0.08); /* slight purple tint */
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 999px;
    color: #e2e8f0;
    font-weight: 500;
}

/* Cases Section */
.cases-section {
    padding: 8rem 5%;
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.cases-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
    text-align: left;
}

.case-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 15px 40px -15px rgba(59, 130, 246, 0.15);
}

.highlight-card {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(59, 130, 246, 0.3);
}

.case-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px; /* Pill layout */
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.case-header h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.case-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.case-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.case-footer {
    margin-top: auto; /* Push to the very bottom */
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.case-footer .metric {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.05em;
}

.highlight-card .metric {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.case-footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.5;
}

/* Testimonials Section */
.testimonials-section {
    padding: 8rem 5%;
    background: linear-gradient(0deg, var(--bg-main) 0%, var(--bg-secondary) 100%);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
    text-align: left;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
}

.quote-icon {
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--accent-primary);
    line-height: 0.8;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-style: italic;
    flex-grow: 1; /* Pushes author down */
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

.author-info h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* CTA / Irresistible Offer Section */
.cta-section {
    padding: 8rem 5%;
    background: var(--bg-main);
    position: relative;
    overflow: hidden;
}

.cta-container {
    max-width: 1100px; /* Un poco mas reducido para foco */
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 2rem;
    padding: 4.5rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cta-content {
    flex: 1;
}

.cta-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-subtitle strong {
    color: var(--accent-primary);
}

.cta-list {
    list-style: none;
    margin-bottom: 3.5rem;
}

.cta-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.cta-list li strong {
    color: white;
}

.cta-list svg {
    color: #10b981;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.cta-btn {
    font-size: 1.1rem;
    padding: 1.1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-primary), #10b981); /* Blue to Green for CTA */
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

.cta-btn:hover {
    box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.6);
    transform: translateY(-3px);
}

.cta-guarantee {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-guarantee::before {
    content: "🔒";
    font-size: 1rem;
}

/* Decoración Visual CSS para CTA */
.cta-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

.glass-report {
    width: 100%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-20deg) rotateX(10deg);
    transition: transform 0.5s ease;
}

.cta-container:hover .glass-report {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

.report-header {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.report-body {
    padding: 2.5rem 2rem;
}

.line {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.w-75 { width: 75%; }
.w-50 { width: 50%; }
.w-100 { width: 100%; }

.chart {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 140px;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.bar {
    width: 100%;
    background: var(--accent-gradient);
    border-radius: 4px 4px 0 0;
    opacity: 0.7;
    transition: height 1s ease;
}

.bar:hover { opacity: 1; }

.h-40 { height: 40%; }
.h-70 { height: 70%; }
.h-100 { height: 100%; opacity: 1; background: #10b981; }
.h-50 { height: 50%; }

/* Final CTA Banner */
.final-cta {
    padding: 8rem 5%;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-primary) 0%, rgba(16, 185, 129, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.final-cta-container {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.final-cta h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: white;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.final-cta p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-inline: auto;
}

.cta-btn-large {
    font-size: 1.15rem;
    font-weight: 700;
    padding: 1.2rem 3rem;
    background: white;
    color: var(--accent-primary);
    border-radius: 99px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.cta-btn-large:hover {
    background: #f8fafc;
    color: #1e3a8a;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4);
}

.cta-btn-large svg {
    transition: transform 0.3s ease;
}

.cta-btn-large:hover svg {
    transform: translateX(5px);
}

/* Formulario de Contacto / Contact Section */
.contact-section {
    padding: 8rem 5%;
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.contact-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Contact Incentive Block */
.contact-incentive {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.incentive-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-incentive p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-incentive strong {
    color: #10b981;
}

.direct-contact {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    display: inline-block;
}

.direct-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.direct-email {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.direct-email:hover {
    color: var(--accent-primary);
    border-color: rgba(59, 130, 246, 0.6);
}

.direct-email svg {
    color: var(--accent-primary);
}

.highlight-email {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder, 
.form-group select::placeholder, 
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ba1a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.form-group select option {
    background: var(--bg-main);
    color: var(--text-primary);
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 1.125rem;
    font-size: 1.1rem;
}

.form-submit-large {
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), #10b981); /* High conversion colors */
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.3);
}

.form-submit-large:hover {
    box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #2563eb, #059669);
}

.form-microcopy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.85rem; /* Ajustado ligeramente menor */
    color: var(--text-secondary);
    text-align: center;
    opacity: 0.8;
}

/* Success Message */
.form-success-message {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    gap: 1rem;
    animation: fadeUp 0.5s ease;
}

.form-success-message h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
}

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

/* --- REIMAGINED MODERN FOOTER --- */
.footer {
    background-color: var(--bg-main);
    padding: 3rem 5% 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.footer-main-row {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--text-primary);
}

.footer-social-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-social-icons a {
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-social-icons a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-social-icons svg {
    width: 20px;
    height: 20px;
}

.footer-bottom-info {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-info p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.footer-bottom-info .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

/* Logos en el footer: Blanco translúcido / Sin color */
.footer .logo-icon {
    filter: brightness(0) invert(1);
    opacity: 0.25;
    height: 30px;
    transition: opacity 0.3s ease;
}

.footer .logo-text {
    color: white;
    opacity: 0.25;
    font-size: 1.1rem;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.footer .footer-logo:hover .logo-icon,
.footer .footer-logo:hover .logo-text {
    opacity: 0.5;
}

/* Content adjustment for legal pages */
.legal-section {
    padding: 8rem 5% 6rem;
    background: var(--bg-main);
    min-height: calc(100vh - 200px);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem;
    border-radius: 1.5rem;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: white;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: white;
    margin: 2.5rem 0 1rem;
}

.legal-content p, .legal-content li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* Updated Responsive Footer */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-brand {
        grid-column: span 2;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 0 auto 1.5rem;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-content {
        padding: 2.5rem 1.5rem;
    }
}

/* ========================================
   RESPONSIVE - Fix horizontal overflow
   ======================================== */

/* Base fix: prevent horizontal overflow globally */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    max-width: 100%;
}

/* Fix blobs that exceed screen bounds */
.hero-bg-blobs,
.blob {
    overflow: hidden;
}

.blob-1,
.blob-2 {
    max-width: 100vw;
}

/* ---- Tablet: 992px ---- */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-brand {
        grid-column: span 2;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 0 auto 1.5rem;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }

    .cta-container {
        flex-direction: column;
        padding: 3rem 2rem;
        text-align: center;
    }
    
    .cta-list li {
        text-align: left;
    }

    .cta-actions {
        align-items: center;
    }

    .glass-report {
        transform: perspective(1000px) rotateY(0) rotateX(0);
        margin-top: 2rem;
        width: 100%;
    }
    
    .cta-container:hover .glass-report {
        transform: translateY(-5px);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .direct-contact {
        width: 100%;
    }

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

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

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

/* ---- Mobile: 768px ---- */
@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        padding: 1rem 5%;
        width: 100%;
        box-sizing: border-box;
        position: relative;
    }

    .navbar.nav-open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
    }

    .navbar.nav-open .logo {
        position: relative;
        z-index: 1101;
    }

    .nav-toggle {
        display: inline-flex;
        /* Mantener el botón visible mientras se hace scroll: lo fijamos en viewport */
        position: fixed;
        top: 12px;
        right: 5%;
        z-index: 1102;
    }

    .navbar nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        background: rgba(10, 12, 16, 0.98);
        padding: 1rem 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
        z-index: 1001;
        border-radius: 0 0 20px 20px;
    }

    .navbar.nav-open nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        z-index: 1100;
        border-radius: 0;
        padding-top: 5.5rem; /* espacio para que no quede oculto detrás del botón fijo */
    }

    .navbar nav a {
        margin: 0;
        padding: 0.95rem 1rem;
        font-size: 1rem;
        color: var(--text-primary);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: center;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.03);
        transition: background 0.25s ease, color 0.25s ease;
    }

    .navbar nav a:hover,
    .navbar nav a:focus-visible {
        color: var(--text-primary);
        background: rgba(59, 130, 246, 0.16);
    }

    .navbar nav a:last-child {
        border-bottom: none;
    }

    .nav-cta {
        display: none !important;
    }

    /* Hero */
    .hero-section {
        padding: 4.25rem 5% 5rem;
        min-height: auto;
    }

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

    .hero-container {
        width: 100%;
        padding: 0;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6.5vw, 2.4rem);
        word-break: break-word;
        text-align: center;
        width: 100%;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-benefits {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin-bottom: 3rem;
    }

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

    .trust-logos {
        gap: 1.5rem;
    }

    /* Blobs: reduce size so they don't overflow */
    .blob-1 {
        width: 300px;
        height: 300px;
    }

    .blob-2 {
        width: 250px;
        height: 250px;
    }

    /* Sections padding */
    .pain-section,
    .partners-section,
    .services-section,
    .process-section,
    .cases-section,
    .testimonials-section,
    .cta-section,
    .contact-section {
        padding: 4rem 5%;
    }

    .section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        word-break: break-word;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    /* Pain grid */
    .pain-grid {
        grid-template-columns: 1fr;
    }

    /* Partners grid */
    .partners-grid {
        grid-template-columns: 1fr;
    }

    /* Services */
    .services-grid,
    .services-grid-4 {
        grid-template-columns: 1fr;
    }

    /* Process */
    .process-grid {
        grid-template-columns: 1fr;
    }

    /* Cases */
    .cases-grid {
        grid-template-columns: 1fr;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* CTA section */
    .cta-container {
        padding: 2.5rem 1.5rem;
        flex-direction: column;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .cta-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        word-break: break-word;
    }

    .cta-list {
        text-align: left;
    }

    /* Final CTA */
    .final-cta-container {
        padding: 0 1rem;
        word-break: break-word;
    }

    .final-cta h2 {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    /* Contact section */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    /* Form */
    .contact-form-container,
    .contact-form {
        width: 100%;
    }

    /* Glass report mock */
    .glass-report {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* ---- Small mobile: 480px ---- */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.6rem, 8vw, 2rem);
    }

    .hero-section {
        padding: 3.4rem 4% 4rem;
    }

    .pain-section,
    .partners-section,
    .services-section,
    .process-section,
    .cases-section,
    .testimonials-section,
    .cta-section,
    .contact-section {
        padding: 3rem 4%;
    }

    .service-card,
    .pain-card,
    .partner-card,
    .process-step,
    .case-card,
    .testimonial-card {
        padding: 1.75rem 1.25rem;
    }

    .cta-container {
        padding: 2rem 1.25rem;
        border-radius: 1rem;
    }

    .process-microcopy {
        font-size: 0.85rem;
        padding: 0.75rem 1.25rem;
    }

    .form-submit-large {
        font-size: 0.95rem;
        padding: 0.875rem 1.25rem;
    }
}

/* Ensure nav-toggle is hidden on desktop to avoid showing it in web mode */
@media (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }
}

/* Mobile: make the first hero line full-bleed (edge-to-edge) and single-line */
@media (max-width: 768px) {
    .hero-title {
        max-width: 100%;
        width: 100%;
        padding: 0; /* allow full-bleed control to the line */
    }

    .hero-line-1 {
        display: block;
        width: 100%;
        text-align: center;
        font-size: clamp(1.8rem, 8.5vw, 2.4rem);
        white-space: normal;
    }

    .hero-line-2 {
        white-space: normal;
        text-align: center;
    }
}

/* ---- Footer: small screens ---- */
@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-content {
        padding: 2.5rem 1.5rem;
    }

    .footer-main-row {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}


.hero-line-1, .hero-line-2 {
    display: block;
    white-space: nowrap;
}

.hero-line-2 {
    font-size: clamp(1rem, 3vw, 0.8em);
    letter-spacing: -0.01em;
}

@media (max-width: 1024px) {
    .hero-line-1 { font-size: 4.46vw; }
    .hero-line-2 { font-size: 3.5vw; }
}

@media (max-width: 768px) {
    .hero-line-1 { font-size: 5.36vw; }
    .hero-line-2 { font-size: 3.2vw; }
}

@media (max-width: 480px) {
    .hero-line-1 { font-size: 7.14vw; }
    .hero-line-2 { font-size: 2.8vw; letter-spacing: -0.02em; }
}

    /* Evita que la última letra se recorte en móviles: permitir overflow y dar un pequeño padding derecho */
    .hero-line-1 {
        overflow: visible !important;
        padding-right: 0.5rem;
    }

/* Captcha Slider Styles */
.captcha-slider-wrapper {
    margin-top: 0.5rem;
    position: relative;
    width: 100%;
}

.captcha-slider {
    position: relative;
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.captcha-slider.active-drag {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}

.captcha-slider.verified {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.captcha-slider-bg {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.2));
    border-radius: 50px 0 0 50px;
    z-index: 1;
    pointer-events: none;
    transition: background 0.3s ease;
}

.captcha-slider.verified .captcha-slider-bg {
    width: 100% !important;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50px;
}

.captcha-slider-handle {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent-primary), #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: grab;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease-out, background 0.3s ease, box-shadow 0.3s ease;
}

.captcha-slider-handle:active {
    cursor: grabbing;
}

.captcha-slider.verified .captcha-slider-handle {
    background: #10b981;
    cursor: default;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
    transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s ease;
}

.captcha-slider-text {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.2s ease, color 0.3s ease;
}

.captcha-slider.verified .captcha-slider-text {
    color: #10b981;
    font-weight: 600;
}

.handle-icon {
    transition: transform 0.3s ease;
}
