/* Reset y variables */
:root {
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'DM Sans', var(--font-body);
    --primary-color: #0a1929;
    --primary-dark: #132f4c;
    --secondary-color: #1a365d;
    --accent-color: #2c5282;
    --text-dark: #1a202c;
    --text-light: #4a5568;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --grey-light: #edf2f7;
    --grey-medium: #cbd5e0;
    --grey-dark: #718096;
    --blue-dark: #1e3a5f;
    --blue-medium: #2d4a6b;
    --success-color: #2d8659;
    --error-color: #c53030;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* Saltar al contenido */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10001;
    padding: 0.75rem 1.25rem;
    background: var(--primary-color);
    color: var(--bg-white);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0;
    box-shadow: var(--shadow);
}

.skip-link:focus {
    left: 0;
    outline: 2px solid var(--bg-white);
    outline-offset: 2px;
}

/* Enfoque visible coherente (sin depender solo del navegador) */
.nav-toggle:focus-visible,
.nav-link:focus-visible,
.logo:focus-visible,
.carousel-btn:focus-visible,
.carousel-indicator:focus-visible,
.btn:focus-visible,
.back-to-top:focus-visible,
.whatsapp-button:focus-visible,
.contact-option-btn:focus-visible,
.refresh-challenge:focus-visible,
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible,
.footer-section a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.hero .btn-primary:focus-visible {
    outline: 2px solid var(--bg-white);
    outline-offset: 3px;
}

/* Honeypot */
.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header y Navegación */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
}

.navbar {
    padding: 1rem 0;
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--font-display);
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
}

.logo-text {
    line-height: 1.2;
}

.logo:hover {
    color: var(--primary-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100vh;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* IT Pattern background effect - muy sutil */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    will-change: transform, opacity;
    background-image: 
        /* Binary code pattern - muy sutil */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 4px,
            rgba(255, 255, 255, 0.015) 4px,
            rgba(255, 255, 255, 0.015) 8px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 4px,
            rgba(255, 255, 255, 0.015) 4px,
            rgba(255, 255, 255, 0.015) 8px
        ),
        /* Circuit pattern dots - muy sutil */
        radial-gradient(circle at 20% 30%, rgba(26, 54, 93, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(26, 54, 93, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(10, 25, 41, 0.02) 1.5px, transparent 1.5px),
        /* Grid pattern - muy sutil */
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 
        100% 100%,
        100% 100%,
        80px 80px,
        80px 80px,
        80px 80px,
        30px 30px,
        30px 30px;
    opacity: 0.25;
    animation: itPatternMove 60s ease-in-out infinite;
    pointer-events: none;
}

@keyframes itPatternMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.25;
    }
    25% {
        transform: translate(-2px, -2px) scale(1.005);
        opacity: 0.27;
    }
    50% {
        transform: translate(2px, 2px) scale(1.01);
        opacity: 0.28;
    }
    75% {
        transform: translate(-1px, 1px) scale(1.005);
        opacity: 0.27;
    }
}

/* Animated gradient background with IT theme - muy sutil */
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    will-change: transform;
    background: 
        /* Data flow lines - muy sutil */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(26, 54, 93, 0.02) 20px,
            rgba(26, 54, 93, 0.02) 40px
        ),
        /* Binary digits effect - muy sutil */
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 25px,
            rgba(255, 255, 255, 0.015) 25px,
            rgba(255, 255, 255, 0.015) 50px
        );
    animation: gradientRotate 50s linear infinite;
    pointer-events: none;
    opacity: 0.15;
}

@keyframes gradientRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
    width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    font-family: var(--font-display);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 36rem;
    margin: 0 auto 1.5rem;
    opacity: 0.92;
    line-height: 1.55;
    font-weight: 500;
}

/* Hero Carousel */
.hero-carousel {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1rem;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(16px) saturate(180%);
    padding: 3rem 2rem;
    padding-bottom: 3.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset,
                0 2px 8px rgba(0, 0, 0, 0.1) inset;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 90vh;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: carouselPulse 8s ease-in-out infinite;
    transition: all 0.3s ease;
}

.carousel-container:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    border-color: rgba(255, 255, 255, 0.2);
}

.carousel-track {
    position: relative;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    will-change: transform;
}

.carousel-track.is-dragging {
    transition: none;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    will-change: opacity, transform;
    box-sizing: border-box;
    filter: blur(2px);
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    filter: blur(0);
    z-index: 2;
}

.carousel-slide.prev {
    transform: translateX(-20px) scale(0.98);
    opacity: 0.6;
    filter: blur(1px);
}

.carousel-slide.next {
    transform: translateX(20px) scale(0.98);
    opacity: 0.6;
    filter: blur(1px);
}

.carousel-content {
    text-align: center;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-height: 0;
}

.carousel-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    color: var(--bg-white);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.carousel-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-slide.active .carousel-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3),
                0 0 0 4px rgba(255, 255, 255, 0.1),
                inset 0 2px 8px rgba(255, 255, 255, 0.2);
}

.carousel-slide.active .carousel-icon::before {
    opacity: 1;
    animation: iconShine 3s ease-in-out infinite;
}

@keyframes iconShine {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg);
    }
}

.carousel-icon svg {
    width: 40px;
    height: 40px;
}

.carousel-title {
    font-size: 2rem;
    font-family: var(--font-display);
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
    flex-shrink: 0;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s,
                opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.carousel-slide.active .carousel-title {
    transform: translateY(0);
    opacity: 1;
}

.carousel-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s,
                opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s;
}

.carousel-slide.active .carousel-text {
    transform: translateY(0);
    opacity: 1;
}

/* Carousel Progress Indicator */
.carousel-progress-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
    width: 100%;
    max-width: 300px;
    padding: 0 1rem;
}

.progress-line {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
    overflow: hidden;
    position: relative;
}

.progress-line-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.6) 100%);
    border-radius: 1px;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5),
                0 0 24px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.progress-line-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Subtle pulse effect on carousel container - merged with main definition above */

@keyframes carouselPulse {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25),
                    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }
    50% {
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3),
                    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    }
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    z-index: 3;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.3);
}

.carousel-indicator.active {
    background: var(--bg-white);
    border-color: var(--bg-white);
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Progress circle in indicators */
.indicator-progress {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-indicator.active .indicator-progress {
    opacity: 1;
}

.indicator-progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
}

.indicator-progress-fill {
    fill: none;
    stroke: var(--bg-white);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 100.53;
    stroke-dashoffset: 100.53;
    transition: stroke-dashoffset 0.1s linear;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bg-white);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.9);
    transition: transform 0.1s ease;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-btn-prev {
    left: 1rem;
}

.carousel-btn-next {
    right: 1rem;
}

@media (max-width: 768px) {
    .hero {
        padding: 0;
        min-height: 100vh;
        min-height: 100dvh;
        height: 100vh;
        height: 100dvh;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-carousel {
        max-width: 100%;
        margin: 0 auto;
        padding: 1rem 0.5rem;
        width: 100%;
        box-sizing: border-box;
        height: 100%;
    }
    
    .carousel-container {
        padding: 1.5rem 0.75rem;
        padding-bottom: 2rem;
        border-radius: 0.75rem;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: visible;
        max-height: 85vh;
    }
    
    .carousel-track {
        width: 100%;
        overflow: hidden;
    }
    
    .carousel-slide {
        width: 100%;
        min-width: 100%;
        flex-shrink: 0;
        box-sizing: border-box;
    }
    
    .carousel-content {
        padding: 0.5rem 0;
        width: 100%;
        box-sizing: border-box;
        flex: 1;
        min-height: 0;
    }
    
    .carousel-title {
        font-size: 1.0625rem;
        margin-bottom: 0.5rem;
        line-height: 1.35;
        padding: 0 0.25rem;
    }
    
    .carousel-text {
        font-size: 0.9375rem;
        line-height: 1.5;
        padding: 0 0.25rem;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        opacity: 0.85;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .carousel-btn-prev {
        left: 0.125rem;
    }
    
    .carousel-btn-next {
        right: 0.125rem;
    }
    
    .carousel-icon {
        width: 44px;
        height: 44px;
        margin: 0 auto 0.75rem;
    }
    
    .carousel-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .carousel-progress-indicator {
        bottom: 0.75rem;
        max-width: 250px;
        gap: 0.5rem;
    }
    
    .progress-line {
        height: 1.5px;
    }
    
    .carousel-indicators {
        margin-top: 1rem;
        gap: 0.375rem;
        flex-wrap: wrap;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
    
    .carousel-indicator.active {
        width: 24px;
    }
    
    .indicator-progress {
        width: 12px;
        height: 12px;
    }
    
    .indicator-progress-bg,
    .indicator-progress-fill {
        stroke-width: 1.5;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 0;
        min-height: 100vh;
        min-height: 100dvh;
        height: 100vh;
        height: 100dvh;
    }
    
    .hero-content {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-carousel {
        margin: 0 auto;
        padding: 0.75rem 0.25rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        height: 100%;
    }
    
    .carousel-container {
        padding: 1rem 0.5rem;
        padding-bottom: 1.75rem;
        border-radius: 0.5rem;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: visible;
        max-height: 85vh;
    }
    
    .carousel-track {
        width: 100%;
        overflow: hidden;
    }
    
    .carousel-slide {
        width: 100%;
        min-width: 100%;
        flex-shrink: 0;
        box-sizing: border-box;
    }
    
    .carousel-content {
        padding: 0.25rem 0;
        width: 100%;
        box-sizing: border-box;
        flex: 1;
        min-height: 0;
    }
    
    .carousel-title {
        font-size: 1rem;
        margin-bottom: 0.375rem;
        line-height: 1.35;
        padding: 0 0.25rem;
    }
    
    .carousel-text {
        font-size: 0.9375rem;
        line-height: 1.5;
        padding: 0 0.25rem;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .carousel-btn {
        width: 28px;
        height: 28px;
        opacity: 0.8;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .carousel-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .carousel-btn-prev {
        left: 0.125rem;
    }
    
    .carousel-btn-next {
        right: 0.125rem;
    }
    
    .carousel-icon {
        width: 36px;
        height: 36px;
        margin: 0 auto 0.5rem;
    }
    
    .carousel-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .carousel-progress-container {
        height: 3px;
        border-radius: 0 0 0.5rem 0.5rem;
    }
    
    .carousel-progress-fill {
        border-radius: 0 0 0.5rem 0;
    }
    
    .carousel-indicators {
        margin-top: 0.5rem;
        gap: 0.25rem;
        flex-wrap: wrap;
        padding: 0 0.25rem;
    }
    
    .carousel-indicator {
        width: 6px;
        height: 6px;
        border-width: 1px;
    }
    
    .carousel-indicator.active {
        width: 18px;
    }
    
    .indicator-progress {
        width: 10px;
        height: 10px;
    }
    
    .indicator-progress-bg,
    .indicator-progress-fill {
        stroke-width: 1.5;
    }
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(26, 54, 93, 0.08);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Submit Button - Mejorado */
.btn-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.0625rem;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(10, 25, 41, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

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

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

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(10, 25, 41, 0.25);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.btn-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(10, 25, 41, 0.2);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(10, 25, 41, 0.15);
}

.btn-submit .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
    transform: translateX(3px) rotate(-15deg);
}

.btn-submit .btn-text {
    position: relative;
    z-index: 1;
}

/* Clear Button */
.btn-clear {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.0625rem;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-clear::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(239, 68, 68, 0.1);
    transition: width 0.3s ease;
}

.btn-clear:hover::before {
    width: 100%;
}

.btn-clear:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.btn-clear:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-clear .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-clear:hover .btn-icon {
    transform: rotate(15deg) scale(1.1);
}

.btn-clear .btn-text {
    position: relative;
    z-index: 1;
}

/* Secciones */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-display);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* Servicios */
.services {
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--bg-light) 50%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(26, 54, 93, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(10, 25, 41, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
}

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

.service-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 54, 93, 0.08), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(10, 25, 41, 0.15);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--grey-light) 0%, var(--grey-medium) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-icon svg {
    width: 60%;
    height: 60%;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    transform: rotate(360deg) scale(1.15);
    box-shadow: 0 10px 25px rgba(10, 25, 41, 0.25);
}

.service-card:hover .service-icon::after {
    opacity: 1;
}

.service-card:hover .service-icon svg {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    font-family: var(--font-display);
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.service-features li {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.8;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1rem;
}

.service-card:hover .service-features li {
    color: var(--text-dark);
}

.service-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    margin-top: auto;
    border: 2px solid transparent;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 25, 41, 0.2);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.service-btn:active {
    transform: translateY(0);
}

/* Sobre Nosotros */
.about {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.about::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 54, 93, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-30px) translateX(20px);
    }
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

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

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(10, 25, 41, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.feature-item {
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(10, 25, 41, 0.12);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--grey-light) 0%, var(--grey-medium) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-item:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    transform: scale(1.1);
}

.feature-item strong {
    display: block;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Contacto */
.contact {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
}

/* Opciones de contacto */
.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact-option {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.contact-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

.contact-option:hover::before {
    transform: scaleX(1);
}

.contact-option-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    transition: all 0.3s ease;
}

.contact-option-icon.whatsapp-icon {
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
}

.contact-option:hover .contact-option-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-option-icon svg {
    width: 40px;
    height: 40px;
}

.contact-option-title {
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.contact-option-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-option-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    color: var(--bg-white);
    border: none;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #20BA5A 0%, #1DA851 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
    transform: translateY(0);
}

.btn-whatsapp-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(26, 54, 93, 0.04), transparent);
    pointer-events: none;
}

.contact-form--section-top {
    margin-top: 3rem;
}

.contact-form {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(10, 25, 41, 0.08);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 12px 40px rgba(10, 25, 41, 0.12);
    transform: translateY(-2px);
}

.form-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-progress {
    text-align: center;
    padding: 3rem 2rem;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.progress-container {
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
}

.form-group label::after {
    content: ' *';
    color: var(--error-color);
    font-weight: bold;
    margin-left: 2px;
}

/* Ocultar asterisco si el campo no es requerido (para futuros campos opcionales) */
.form-group:has(input:not([required])) label::after,
.form-group:has(select:not([required])) label::after,
.form-group:has(textarea:not([required])) label::after {
    display: none;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--bg-white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: var(--success-color);
    background-color: #f0fdf4;
}

.form-group input:invalid:not(:placeholder-shown):not(:focus),
.form-group textarea:invalid:not(:placeholder-shown):not(:focus) {
    border-color: var(--error-color);
    background-color: #fef2f2;
}

/* Solo mostrar estado válido después de que el usuario haya interactuado */
.form-group input:valid:not(:placeholder-shown):not(.error).touched,
.form-group select:valid:not([value=""]):not(.error).touched,
.form-group textarea:valid:not(:placeholder-shown):not(.error).touched {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Solo mostrar error si el campo tiene la clase error explícitamente */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* No mostrar estado inválido hasta que el usuario haya interactuado */
.form-group input:invalid:not(:placeholder-shown):not(.error):not(.touched),
.form-group select:invalid:not([value=""]):not(.error):not(.touched),
.form-group textarea:invalid:not(:placeholder-shown):not(.error):not(.touched) {
    border-color: var(--border-color);
    box-shadow: none;
}

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

.message-counter {
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.message-counter span {
    font-weight: 600;
}

/* Desafío de seguridad */
.security-challenge {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
}

.challenge-question {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.security-challenge input[type="number"] {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
}

.security-challenge input[type="number"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.refresh-challenge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-dark);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem auto 0;
}

.refresh-challenge:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.refresh-challenge svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .security-challenge {
        padding: 0.75rem;
    }
    
    .security-challenge input[type="number"] {
        max-width: 100%;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .contact-option {
        padding: 2rem;
    }
}

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid var(--success-color);
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid var(--error-color);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--bg-white);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--bg-white);
}

.footer-whatsapp-link {
    display: inline-flex;
    align-items: center;
    color: #25D366;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-whatsapp-link:hover {
    color: #20BA5A;
    transform: translateX(3px);
}

.footer-whatsapp-link svg {
    transition: transform 0.3s ease;
}

.footer-whatsapp-link:hover svg {
    transform: scale(1.1);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-whatsapp-wrap {
    margin-top: 0.5rem;
}

.footer-whatsapp-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-features {
        text-align: center;
    }
    
    .service-features li {
        padding-left: 1.75rem;
    }
    
    .service-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    .contact-form {
        max-width: 100%;
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-submit,
    .btn-clear {
        width: 100%;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .about-main {
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }
    
    .about-stats {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.25rem 0.75rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8125rem;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }
    
    .feature-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .feature-item {
        padding: 1.25rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .form-actions {
        gap: 0.5rem;
    }
    
    .btn-submit,
    .btn-clear {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .btn-submit .btn-icon,
    .btn-clear .btn-icon {
        width: 18px;
        height: 18px;
    }
    
    .thank-you-content {
        padding: 2rem 1.5rem;
    }
    
    .thank-you-title {
        font-size: 2rem;
    }
    
    .thank-you-actions {
        flex-direction: column;
    }
    
    .thank-you-actions .btn {
        width: 100%;
    }
}

/* Smooth scroll + offset for sticky header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Botón Volver Arriba */
/* Botón WhatsApp Flotante */
body.contact-section-visible .whatsapp-button,
body.contact-section-visible .back-to-top.visible {
    opacity: 0.55;
}

.whatsapp-button {
    position: fixed;
    bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    left: calc(2rem + env(safe-area-inset-left, 0px));
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background: #20BA5A;
}

.whatsapp-button:active {
    transform: scale(0.95);
}

.whatsapp-button svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
}

.back-to-top {
    position: fixed;
    bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    right: calc(2rem + env(safe-area-inset-right, 0px));
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(10, 25, 41, 0.25);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .whatsapp-button {
        bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
        left: calc(1.5rem + env(safe-area-inset-left, 0px));
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-button svg {
        width: 28px;
        height: 28px;
    }
    
    .back-to-top {
        bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
        right: calc(1.5rem + env(safe-area-inset-right, 0px));
        width: 45px;
        height: 45px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Página de Agradecimiento */
.thank-you-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    color: var(--success-color);
    background-color: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

.thank-you-icon svg {
    width: 50px;
    height: 50px;
}

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

.thank-you-title {
    font-size: 2.5rem;
    font-family: var(--font-display);
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.thank-you-message {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.thank-you-info {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.thank-you-info p {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-info-box {
    background-color: var(--bg-white);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.contact-info-box p {
    margin: 0.5rem 0;
    color: var(--text-light);
}

.contact-info-box a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-info-box a:hover {
    text-decoration: underline;
}

.thank-you-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================================
   UI/UX Improvements
   ============================================================ */

/* Section title accent underline */
.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin: 0.875rem auto 0;
}

/* Nav CTA button */
.nav-cta {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white) !important;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 25, 41, 0.3);
    color: var(--bg-white) !important;
}

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

/* Active nav link */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-link.active::after {
    width: 100%;
}

/* Hero scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 5;
    transition: color 0.3s ease;
}

.hero-scroll-indicator:hover {
    color: rgba(255, 255, 255, 0.95);
}

.hero-scroll-indicator svg {
    width: 22px;
    height: 22px;
    animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.65; }
    50% { transform: translateY(5px); opacity: 1; }
}

@media (max-width: 768px) {
    .hero-scroll-indicator {
        bottom: 1rem;
    }
}

/* 2-column form row layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
}

.form-row .form-group {
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Footer service links */
.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--bg-white);
    padding-left: 4px;
}

/* Preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero::before,
    .hero::after {
        animation: none;
    }

    .carousel-container {
        animation: none;
    }

    .whatsapp-button {
        animation: none;
    }

    .about::after {
        animation: none;
    }

    .progress-line-fill::after {
        animation: none;
    }

    .thank-you-icon {
        animation: none;
    }

    .hero-scroll-indicator svg {
        animation: none;
    }

    .carousel-track,
    .carousel-slide,
    .carousel-slide .carousel-title,
    .carousel-slide .carousel-text,
    .carousel-slide .carousel-icon,
    .carousel-icon::before {
        transition-duration: 0.01ms;
    }

    .service-card,
    .feature-item,
    .contact-option,
    .stat-item,
    .contact-form {
        transition-duration: 0.01ms;
    }
}

