/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background: #f8f8f8;
}

/* HEADER */
header {
    background: white;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: #666;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

 
        nav {
            display: flex;
            gap: 30px;
        }

        nav a {
            color: #555;
            text-decoration: none;
            font-size: 16px;
            transition: color 0.3s;
            padding-bottom: 5px;
        }

        nav a:hover, nav a.active {
            color: #000;
            border-bottom: 2px solid #000;
        }


/* HERO + VIDEO */
.hero-testimonials {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    padding: 80px 50px 60px;
    background: #000;
}

/* FIJADO VIDEO — 100% RESPONSIVE */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: saturate(1) contrast(1.05) brightness(0.9);
}

/* fallback si el video falla */
.hero-testimonials video:before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('poster.jpg') center/cover no-repeat;
    z-index: -1;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

/* CONTENT */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero-testimonials h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
}

.hero-testimonials p {
    font-size: 20px;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* STATS */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
    min-width: 180px;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #e0e0e0;
}

/* TESTIMONIALS SECTION */
.testimonials-section {
    padding: 80px 50px;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 38px;
    margin-bottom: 60px;
    color: #222;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-card {
    background: #fafafa;
    border-radius: 5px;
    padding: 35px;
    border: 1px solid #ddd;
    position: relative;
}

/* ... (resto intacto) ... */

/* RESPONSIVE --------------------------------------------------*/

@media (max-width: 1024px) {

    .hero-testimonials {
        padding: 70px 30px;
        min-height: 460px;
    }

    .hero-testimonials h1 {
        font-size: 38px;
    }

    .stats-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    nav {
       display: flex;
    flex-direction: row;   /* en fila */
    flex-wrap: wrap;       /* permite que bajen a otra línea */
    margin: 2%;
    gap: 15px;
    width: 100%;
    text-align: center;
    }

    .hero-testimonials {
        padding: 50px 20px 40px;
        min-height: 420px;
    }

    /* VIDEO: adapta mejor a pantallas verticales */
    .hero-video {
        object-fit: cover;
        height: 100%;
        width: 100%;
    }

    .hero-testimonials h1 {
        font-size: 32px;
    }

    .hero-testimonials p {
        font-size: 16px;
    }

    .stats-container {
        flex-direction: column;
        gap: 30px;
    }

    .testimonials-section, .ratings-summary {
        padding: 50px 20px;
    }
}

@media (max-width: 480px) {

    .logo {
        font-size: 18px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .hero-testimonials h1 {
        font-size: 26px;
    }

    .section-title {
        font-size: 28px;
    }

    .testimonial-card {
        padding: 25px 20px;
    }
}

/* Preferencias: reduce motion */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
    .hero-testimonials {
        background: url("poster.jpg") center/cover no-repeat, #000;
    }
}
