/* ========================================
   VARIABLES Y RESET
   ======================================== */

:root {
    --primary-color: #00a8e8;
    --secondary-color: #0077b6;
    --accent-color: #00d4ff;
    --dark-bg: rgba(0, 10, 20, 0.85);
    --darker-bg: rgba(0, 5, 15, 0.92);
    --text-light: #ffffff;
    --text-secondary: #b0d0e8;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 5px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    overflow-x: hidden;
    background: #000;
    min-height: 100vh;
}

/* ========================================
   VIDEO BACKGROUND
   ======================================== */

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 15, 30, 0.88) 0%,
        rgba(0, 25, 45, 0.82) 50%,
        rgba(0, 35, 60, 0.85) 100%
    );
    z-index: 1;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 60px;
    animation: fadeInUp 1s ease-out;
}

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

.logo-container {
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 5px 20px rgba(0, 212, 255, 0.4));
    transition: transform var(--transition-speed) ease;
}

.logo:hover {
    transform: scale(1.05);
}

.main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.subtitle-service {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--accent-color);
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 212, 255, 0.5);
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* ========================================
   SCROLLING SERVICES
   ======================================== */

.services-scroll {
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.services-track {
    display: inline-flex;
    white-space: nowrap;
    animation: scroll-horizontal 20s linear infinite;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.service-item {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: var(--text-secondary);
    padding: 0 15px;
    font-weight: 400;
}

.service-separator {
    color: var(--accent-color);
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    opacity: 0.6;
}

/* Pausar scroll en hover */
.services-scroll:hover .services-track {
    animation-play-state: paused;
}

/* ========================================
   TAGLINE - TRANSPARENTE
   ======================================== */

.tagline {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 20px;
    /* REMOVIDO: background y border */
    /* Ahora es completamente transparente */
    animation: fadeInUp 1s ease-out 0.6s both;
}

.tagline-text {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-light);
    margin: 5px 0;
    font-style: italic;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* ========================================
   REVIEWS SECTION - TRANSPARENTE CON BLUR
   ======================================== */

.reviews-section {
    padding: 60px 20px 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reviews-container {
    width: 100%;
    max-width: 1200px;
    /* ACTUALIZADO: Transparente con blur sutil */
    background: rgba(0, 10, 20, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.8s both;
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
    z-index: 100;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 5px 35px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.8);
    background-color: #1fbc5d;
}

.whatsapp-float i {
    line-height: 60px;
    margin: 0;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--darker-bg);
    backdrop-filter: blur(10px);
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    margin-top: auto;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 80px 15px 40px;
    }

    .logo {
        max-width: 150px;
    }

    .main-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .subtitle-service {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .services-scroll {
        margin-bottom: 30px;
    }

    .service-item {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .tagline {
        padding: 20px 15px;
    }

    .tagline-text {
        font-size: 1rem;
    }

    .reviews-container {
        padding: 25px 15px;
        border-radius: 15px;
        background: rgba(0, 10, 20, 0.3);
    }

    .reviews-section {
        padding: 40px 15px 60px;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }

    .whatsapp-float i {
        line-height: 55px;
    }

    .footer {
        padding: 20px 15px;
    }

    .footer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 10px 30px;
    }

    .logo {
        max-width: 120px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .subtitle-service {
        font-size: 1.1rem;
    }

    .services-scroll {
        margin-bottom: 25px;
    }

    .service-item {
        font-size: 0.85rem;
        padding: 0 8px;
    }

    .tagline {
        padding: 15px 10px;
    }

    .tagline-text {
        font-size: 0.95rem;
    }

    .reviews-container {
        padding: 20px 10px;
        background: rgba(0, 10, 20, 0.35);
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 26px;
    }

    .whatsapp-float i {
        line-height: 50px;
    }
}

/* ========================================
   LOADING OPTIMIZATION
   ======================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .services-track {
        animation: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .video-background,
    .video-overlay,
    .whatsapp-float,
    .services-scroll {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .main-title,
    .subtitle-service,
    .tagline-text,
    .service-item {
        color: black;
        text-shadow: none;
    }
}
