/* --- Variables --- */
:root {
    --imperial-blue:     #00296b;
    --french-blue:       #003f88;
    --steel-azure:       #00509d;
    --school-bus-yellow: #fdc500;
    --gold:              #ffd500;
    --dark-grey:         #1a1a2e;
    --light-grey:        #f5f7fc;
    --border-color:      #e2e6f0;
    --body-text:         #4a4a6a;
    --white:             #ffffff;
    --shadow-sm:         0 2px 10px rgba(0,41,107,.07);
    --shadow-md:         0 6px 24px rgba(0,41,107,.12);
    --shadow-lg:         0 16px 48px rgba(0,41,107,.16);
}

/* --- Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--white);
    color: var(--body-text);
    width: 100%;
    margin: 0;
    overflow-x: hidden;
}

/* --- Secciones a ancho completo --- */
header, .hero, .brands-section, .about,
.products-section, .reviews-section,
.contact-section, .main-footer {
    width: 100%;
}

/* --- Tipografía base: Syne en todos los títulos --- */
h1, h2, h3, h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}

/* --- Utilidad compartida --- */
.container-fixed {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: linear-gradient(90deg, var(--imperial-blue) 0%, var(--french-blue) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: rgba(255,255,255,.85);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 6px;
    transition: color .25s, background-color .25s;
}

.nav-links li a:hover {
    color: var(--gold);
    background-color: rgba(255,255,255,.07);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: 100px 60px;
    background: linear-gradient(135deg, #f4f6fb 0%, #eaf0ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,80,157,.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    width: 450px;
}

.hero-text h1 {
    font-size: 48px;
    color: var(--dark-grey);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 17px;
    color: var(--body-text);
    line-height: 1.7;
    margin-bottom: 40px;
}

.btn-cta {
    display: inline-block;
    background-color: var(--imperial-blue);
    color: var(--white);
    padding: 16px 34px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 6px;
    letter-spacing: .5px;
    transition: background-color .25s, transform .2s;
}

.btn-cta:hover {
    background-color: var(--french-blue);
    transform: translateY(-2px);
}

.image-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.hero-video {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}

/* ============================================================
   BRANDS
   ============================================================ */
.brands-section {
    text-align: center;
    padding: 60px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.brands-section h3 {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 36px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 600;
}

.brands-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.brand-box {
    width: 140px;
    height: 76px;
    background-color: var(--light-grey);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    transition: box-shadow .25s, border-color .25s;
}

.brand-box:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--steel-azure);
}

.brand-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter .3s, opacity .3s;
}

.brand-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.customer-count {
    color: #aaa;
    font-size: 13px;
    letter-spacing: .5px;
}

.customer-count strong {
    color: var(--imperial-blue);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
    padding: 100px 60px;
    background-color: var(--white);
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    width: 450px;
}

.about-text h2 {
    font-size: 34px;
    color: var(--imperial-blue);
    margin-bottom: 24px;
}

.description-group p {
    font-size: 16px;
    color: var(--body-text);
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Horarios */
.horarios-container {
    margin-top: 40px;
    background-color: var(--light-grey);
    padding: 24px;
    border-radius: 10px;
    border-left: 4px solid var(--school-bus-yellow);
}

.horarios-container h3 {
    font-size: 13px;
    color: var(--imperial-blue);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.horarios-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.horarios-table th {
    background-color: var(--imperial-blue);
    color: var(--school-bus-yellow);
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
}

.horarios-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eef0f6;
    font-size: 14px;
    color: #555;
}

.horarios-table tr:last-child td {
    border-bottom: none;
}

.horarios-table tbody tr:hover {
    background-color: #f9faff;
}

.highlight-hours {
    font-weight: 700;
    color: var(--french-blue);
}

/* Mapa */
.about-map {
    width: 550px;
    text-align: center;
}

.about-map h3 {
    font-size: 14px;
    color: var(--dark-grey);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.map-container {
    width: 100%;
    height: 460px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform .3s ease;
}

.map-container:hover {
    transform: scale(1.01);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(.15);
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products-section {
    padding: 80px 0;
    background-color: var(--light-grey);
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 26px;
    color: var(--dark-grey);
}

.products-grid {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 50px;
}

/* Tarjeta de producto */
.product-card {
    width: 200px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-image {
    width: 100%;
    height: 200px;
    background-color: #f8f9fc;
    position: relative;
    padding: 12px;
}

.product-info {
    padding: 14px 16px 18px;
}

.product-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 5px;
    line-height: 1.4;
}

.product-info p {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

/* Precios */
.price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.current-price {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: var(--imperial-blue);
}

.old-price {
    text-decoration: line-through;
    color: #ccc;
    font-size: 13px;
}

.discount {
    color: var(--steel-azure);
    font-weight: 700;
    font-size: 12px;
    background-color: rgba(0,80,157,.08);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Badges */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 9px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    border-radius: 4px;
    color: var(--white);
}

.badge.sale { background-color: var(--imperial-blue); }
.badge.new  { background-color: var(--school-bus-yellow); color: var(--imperial-blue); }

/* Promo boxes */
.promo-box-large,
.promo-box-small {
    background: linear-gradient(135deg, var(--imperial-blue) 0%, var(--french-blue) 100%);
    color: var(--school-bus-yellow);
    padding: 44px 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.promo-box-large {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
}

.promo-row {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.promo-box-small {
    flex: 1;
}

.promo-content h3,
.promo-box-small h3 {
    color: var(--school-bus-yellow);
    font-size: 18px;
    margin-bottom: 12px;
}

.promo-discount {
    line-height: 1;
    margin-bottom: 12px;
}

.up-to {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,.7);
    margin-bottom: 4px;
}

.percent {
    font-family: 'Syne', sans-serif;
    font-size: 64px;
    font-weight: 800;
    color: var(--school-bus-yellow);
    line-height: 1;
}

.promo-content p,
.promo-box-small p {
    font-size: 14px;
    color: rgba(255,255,255,.8);
}

.promo-image {
    width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-section {
    padding: 100px 0;
    background-color: var(--white);
}

.reviews-header {
    text-align: center;
    margin-bottom: 60px;
}

.reviews-header h2 {
    font-size: 34px;
    color: var(--dark-grey);
    margin-bottom: 12px;
}

.reviews-header p {
    color: #999;
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
}

.reviews-grid {
    display: flex;
    justify-content: center;
    gap: 28px;
    align-items: flex-start;
}

.review-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px 30px;
    width: 350px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.review-user {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.user-img-placeholder {
    width: 46px;
    height: 46px;
    background-color: var(--border-color);
    border-radius: 50%;
    margin-right: 14px;
    flex-shrink: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff" viewBox="0 0 24 24"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
    background-size: 28px;
    background-repeat: no-repeat;
    background-position: center;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    color: var(--dark-grey);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.verified {
    color: #1d9bf0;
    font-size: 12px;
}

.user-handle {
    color: #999;
    font-size: 13px;
}

.review-content {
    font-size: 14px;
    color: #555;
    line-height: 1.65;
    margin-bottom: 18px;
}

.review-date {
    font-size: 12px;
    color: #bbb;
    font-weight: 500;
}

/* Formulario de reseña */
.add-review-container {
    margin-top: 72px;
    display: flex;
    justify-content: center;
}

.form-card {
    background-color: var(--white);
    width: 800px;
    padding: 44px 48px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.form-card h3 {
    color: var(--imperial-blue);
    font-size: 22px;
    margin-bottom: 8px;
}

.form-card > p {
    color: #999;
    margin-bottom: 32px;
    font-size: 14px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 4px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--dark-grey);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #dde2ef;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    background-color: #fafbff;
    color: var(--dark-grey);
    transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--steel-azure);
    box-shadow: 0 0 0 3px rgba(0,80,157,.08);
    background-color: var(--white);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eef0f8;
    padding-top: 24px;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-input span {
    font-weight: 700;
    font-size: 14px;
    color: var(--dark-grey);
}

.stars-placeholder {
    color: var(--school-bus-yellow);
    font-size: 20px;
    letter-spacing: 2px;
}

/* ============================================================
   BOTONES (compartido)
   ============================================================ */
.btn-submit,
.btn-send {
    border: none;
    font-family: inherit;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: .5px;
    transition: background-color .25s, transform .2s;
}

.btn-submit:hover,
.btn-send:hover {
    transform: translateY(-2px);
}

.btn-submit {
    background-color: var(--imperial-blue);
    color: var(--white);
    padding: 14px 28px;
    font-size: 13px;
}

.btn-submit:hover {
    background-color: var(--french-blue);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(160deg, var(--imperial-blue) 0%, var(--steel-azure) 100%);
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h2 {
    font-size: 38px;
    color: var(--white);
    margin-bottom: 10px;
}

.contact-header p {
    color: rgba(255,255,255,.7);
    font-size: 17px;
}

.contact-form-wrapper {
    width: 600px;
    margin: 0 auto;
}

.main-contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-field input,
.input-field textarea {
    width: 100%;
    padding: 17px 20px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background-color: rgba(255,255,255,.1);
    color: var(--white);
    backdrop-filter: blur(4px);
    transition: border-color .2s, background-color .2s;
}

.input-field input::placeholder,
.input-field textarea::placeholder {
    color: rgba(255,255,255,.5);
}

.input-field input:focus,
.input-field textarea:focus {
    outline: none;
    border-color: var(--school-bus-yellow);
    background-color: rgba(255,255,255,.15);
}

.btn-send {
    background-color: var(--school-bus-yellow);
    color: var(--imperial-blue);
    padding: 18px;
    font-size: 15px;
    font-weight: 800;
}

.btn-send:hover {
    background-color: var(--gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
    background-color: var(--dark-grey);
    color: rgba(255,255,255,.6);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
    opacity: .85;
}

.footer-content p {
    font-size: 13px;
}

.social-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.social-links span {
    font-size: 13px;
    font-weight: 600;
    color: var(--school-bus-yellow);
    cursor: pointer;
    transition: color .2s;
}

.social-links span:hover {
    color: var(--gold);
}

/* ============================================================
   HAMBURGER (oculto en escritorio)
   ============================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

/* Animación al abrirse: las 3 líneas forman una X */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MEDIA QUERY — TABLET (max 900px)
   ============================================================ */
@media (max-width: 900px) {

    .container-fixed { padding: 0 30px; }

    /* Hero */
    .hero { padding: 70px 30px; }
    .hero-text { width: 100%; max-width: 480px; }
    .hero-text h1 { font-size: 38px; }

    /* About */
    .about { padding: 70px 30px; }
    .about-container { flex-direction: column; gap: 40px; }
    .about-text, .about-map { width: 100%; }
    .map-container { height: 380px; }

    /* Products */
    .products-grid { flex-wrap: wrap; }
    .product-card { width: calc(50% - 8px); }

    /* Contact */
    .contact-form-wrapper { width: 100%; max-width: 540px; }
}

/* ============================================================
   MEDIA QUERY — MÓVIL (max 768px)
   ============================================================ */
@media (max-width: 768px) {

    body { overflow-x: hidden; }
    .container-fixed { padding: 0 20px; }

    /* --- Navbar con hamburguesa --- */
    .navbar {
        padding: 14px 20px;
        position: relative;
    }

    .hamburger { display: flex; }

    .nav-links {
        display: none;                        /* oculto por defecto */
        flex-direction: column;
        gap: 4px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--imperial-blue);
        padding: 16px 20px 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,.25);
        z-index: 150;
    }

    .nav-links.open { display: flex; }        /* se muestra al pulsar hamburguesa */

    .nav-links li a {
        display: block;
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 8px;
    }

    .nav-links a.nav-cta {
        margin-top: 8px;
        text-align: center;
    }

    /* --- Hero --- */
    .hero { padding: 56px 20px; }
    .hero-container { flex-direction: column; text-align: center; gap: 28px; }
    .hero-text { width: 100%; }
    .hero-text h1 { font-size: 30px; }
    .hero-text p { font-size: 15px; margin-bottom: 28px; }
    .hero-tag { font-size: 11px; }

    /* --- Brands --- */
    .brands-section { padding: 40px 20px; }
    .brands-row { flex-wrap: wrap; gap: 10px; }
    .brand-box { width: calc(33.33% - 10px); height: 64px; }

    /* --- About --- */
    .about { padding: 56px 20px; }
    .about-container { flex-direction: column; gap: 36px; }
    .about-text, .about-map { width: 100%; }
    .about-text h2 { font-size: 26px; }
    .map-container { height: 300px; }

    /* --- Products --- */
    .products-section { padding: 50px 0; }
    .products-grid {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .product-card { width: 100%; max-width: 340px; }
    .product-image { height: 220px; }

    .promo-box-large {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 24px;
    }
    .promo-box-large .promo-image { width: 100%; max-width: 220px; }

    .promo-row { flex-direction: column; gap: 14px; }
    .promo-box-small { padding: 28px 24px; }
    .percent { font-size: 52px; }

    /* --- Reviews --- */
    .reviews-section { padding: 56px 0; }
    .reviews-header h2 { font-size: 26px; }
    .reviews-grid {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .review-card { width: 100%; max-width: 400px; }

    /* Formulario reseña */
    .add-review-container { padding: 0 20px; }
    .form-card { width: 100%; padding: 28px 20px; }
    .form-row { flex-direction: column; gap: 0; }
    .form-footer { flex-direction: column; gap: 18px; text-align: center; }
    .btn-submit { width: 100%; }

    /* --- Contact --- */
    .contact-section { padding: 60px 20px; }
    .contact-header h2 { font-size: 28px; }
    .contact-form-wrapper { width: 100%; }
    .btn-send { font-size: 14px; }

    /* --- Footer --- */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 0 20px;
    }
    .social-links { justify-content: center; }
}

/* ============================================================
   MEDIA QUERY — MÓVIL PEQUEÑO (max 480px)
   ============================================================ */
@media (max-width: 480px) {

    .hero-text h1 { font-size: 26px; }
    .brand-box { width: calc(50% - 8px); }
    .about-text h2, .reviews-header h2, .section-header h2 { font-size: 22px; }
    .contact-header h2 { font-size: 24px; }
    .percent { font-size: 44px; }
    .product-card { max-width: 100%; }
}