/* =========================================================
   PRODIESEL - ESTILOS PRINCIPALES
========================================================= */

:root {
    --black: #050505;
    --red: #ed1c24;
    --red-dark: #c90008;
    --white: #ffffff;
    --gray: #666;
    --light: #f5f5f5;
    --border: #e7e7e7;
    --shadow: 0 8px 25px rgba(0,0,0,.08);
    --radius: 10px;
    --transition: 220ms ease;
}

.product-price {
    margin: 15px 0;
    color: #ed1c24;
    font-size: 22px;
    font-weight: 900;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #171717;
    background: #fff;
}

body.menu-open {
    overflow: hidden;
}

/* =========================================================
   NAVBAR
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    height: 92px;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: var(--black);
}

.navbar-logo {
    justify-self: start;
    display: flex;
    align-items: center;
}

.navbar-logo img {
    width: 285px;
    max-height: 70px;
    display: block;
    object-fit: contain;
}

.nav-menu {
    justify-self: center;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 58px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    position: relative;
    display: block;
    padding: 35px 2px 32px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: color var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--red);
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    justify-self: end;
    width: 46px;
    height: 46px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px auto;
    background: #fff;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================
   BANNER
========================================================= */

.hero {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background: #111;
}

.hero img {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================================
   ACCESOS RÁPIDOS
========================================================= */

.quick-links {
    max-width: 1400px;
    margin: 0 auto;
    padding: 26px 5%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 170px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: #171717;
    transition: transform var(--transition), box-shadow var(--transition);
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0,0,0,.12);
}

.quick-icon {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff1f1;
    color: var(--red);
    font-size: 34px;
    font-weight: 900;
}

.quick-card:nth-child(2) .quick-icon {
    background: #f0f0f0;
    color: #111;
}

.quick-card h2 {
    margin: 0 0 8px;
    font-size: 25px;
}

.quick-card p {
    margin: 0 0 18px;
    color: var(--gray);
    line-height: 1.4;
}

.quick-button {
    display: inline-block;
    padding: 10px 18px;
    background: var(--red);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

/* =========================================================
   BARRA DE SERVICIOS
========================================================= */

.services {
    background: var(--black);
    color: #fff;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 32px 7%;
}

.service {
    display: flex;
    align-items: center;
    gap: 18px;
}

.service-icon {
    font-size: 34px;
}

.service h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.service p {
    margin: 0;
    color: #bbb;
    font-size: 14px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {

    .navbar {
        height: 76px;
        grid-template-columns: 1fr auto;
        padding: 0 20px;
    }

    .navbar-logo img {
        width: 210px;
        max-height: 55px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        padding: 8px 20px 20px;
        background: var(--black);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: opacity var(--transition),
                    visibility var(--transition),
                    transform var(--transition);
    }

    .nav-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid #252525;
    }

    .nav-menu a {
        padding: 17px 8px;
    }

    .nav-menu a::after {
        left: 0;
        right: auto;
        bottom: 0;
        width: 45px;
    }

    .quick-links {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .services {
        grid-template-columns: 1fr;
        padding: 28px 20px;
    }
}

@media (max-width: 520px) {

    .navbar-logo img {
        width: 190px;
    }

    .quick-card {
        padding: 22px;
    }

    .quick-icon {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        font-size: 27px;
    }

    .quick-card h2 {
        font-size: 21px;
    }
}

/* Accesibilidad */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
}


/* =========================================================
   CATÁLOGO DE PRODUCTOS
========================================================= */

.products-section {
    max-width: 1450px;
    margin: 0 auto;
    padding: 55px 5% 70px;
}

.products-header {
    text-align: center;
    margin-bottom: 35px;
}

.products-header h2 {
    margin: 0 0 8px;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
}

.products-header h2 span {
    color: var(--red);
}

.products-header p {
    margin: 0;
    color: var(--gray);
    font-size: 16px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(0,0,0,.12);
}

.product-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f4f4f4;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #777;
    font-size: 52px;
    font-weight: 800;
}

.product-info {
    padding: 22px;
}

.product-category {
    margin-bottom: 7px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info h3 {
    margin: 0 0 9px;
    font-size: 21px;
}

.product-info p {
    min-height: 44px;
    margin: 0 0 18px;
    color: var(--gray);
    line-height: 1.4;
}

.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-button {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 6px;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: background var(--transition);
}

.product-button:hover {
    background: var(--red-dark);
}

.product-link {
    color: #222;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

@media (max-width: 1000px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .products-section {
        padding: 40px 20px 50px;
    }

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

    .product-image {
        height: 210px;
    }
}


/* =========================================================
   PAQUETES DE PROGRAMAS
========================================================= */

.packages-section {
    background: #f5f5f5;
    padding: 60px 5% 70px;
}

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

.packages-header {
    text-align: center;
    margin-bottom: 35px;
}

.packages-header h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 900;
}

.packages-header h2 span {
    color: var(--red);
}

.packages-header p {
    margin: 0;
    color: #555;
    font-size: 17px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.package-card {
    position: relative;
    padding: 32px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,.07);
}

.package-card.complete {
    border: 2px solid var(--red);
}

.package-card h3 {
    margin: 0 0 8px;
    font-size: 25px;
}

.package-price {
    margin-bottom: 20px;
    color: var(--red);
    font-size: 32px;
    font-weight: 900;
}

.package-card ul {
    margin: 0 0 25px;
    padding: 0;
    list-style: none;
}

.package-card li {
    margin: 12px 0;
    font-size: 16px;
}

.package-card li::first-letter {
    font-weight: 900;
}

.package-question {
    margin: 30px 0 0;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
}

.package-note {
    margin-top: 18px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.package-whatsapp {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 12px 24px;
    background: #16a34a;
    color: #fff;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 800;
    transition: .2s ease;
}

.package-whatsapp:hover {
    background: #12813b;
    transform: translateY(-2px);
}

@media (max-width: 750px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }

    .package-card {
        padding: 25px;
    }
}
