@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Sansation:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: white;
}


.header {
    background-color: darkgreen;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: auto;
    padding: 15px 5%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 5;
}

.header .header-logo {
    cursor: pointer;
}

img {
    max-width: 100%;
}


.logo-container {
    display: flex;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
}

.logo-container img {
    height: 130px;
    width: auto;
    transition: transform 0.3s;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    display: block;
}

.logo-container img:hover {
    transform: scale(1.03);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}


.header .nav {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 0;
    margin: 0 auto;
}

.header .nav li {
    display: inline-block;
    padding: 8px 16px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.header .nav li:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.header .nav li a:hover {
    text-decoration: none;
    color: #f1f1f1;
}

.header .nav a {
    font-size: 1.05rem;
    color: white;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.header .nav a:hover {
    color: #f1f1f1;
}


.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
    will-change: transform;
    position: relative;
}

.carousel-slide {
    min-width: 100%;
    height: 480px;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}





.welcome-below {
    text-align: center;
    padding: 40px 10%;
}

.welcome-text-h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.welcome-text-h3 {
    font-weight: 400;
    color: #444;
    line-height: 1.6;
    margin-bottom: 10px;
}


.popular-section {
    padding: 50px 10%;
    background-color: #f9f9f9;
    text-align: center;
}

.popular-title {
    font-size: 2.5rem;
    color: #111;
    margin-bottom: 40px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
}

.card {
    background-color: darkgreen;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    box-shadow: 8px 8px 12px yellow;
}

.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background-color: #eee;
}

.card-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 6px;
}

.card-scale {
    color: white;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.card-mark {
    color: white;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.card-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    margin-bottom: 12px;
}

.card-btn {
    margin-top: auto;
    background-color: yellow;
    color: black;
    border: none;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.card-btn:hover {
    background-color: black;
    color: white;
    transform: scale(1.05);
}


.conocenos-section {
    padding: 60px 10%;
    background-color: white;
}

.conocenos-contenido {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.conocenos-texto {
    flex: 1;
}

.conocenos-titulo {
    font-size: 2rem;
    color: #111;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.conocenos-parrafo {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

.conocenos-btn {
    display: inline-block;
    background-color: darkgreen;
    color: white;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.conocenos-btn:hover {
    background-color: #004d00;
    transform: scale(1.05);
}

.conocenos-imagen {
    flex: 0 0 300px;
}

.conocenos-imagen img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.footer {
    background-color: darkgreen;
    color: white;
    padding: 50px 10% 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.footer-logo {
    height: 170px;
    width: auto;
    margin-bottom: 12px;
    image-rendering: crisp-edges;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.footer-heading {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    color: yellow;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li {
    font-size: 0.9rem;
    color: #e0e0e0;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: yellow;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.footer-social a:hover {
    background-color: yellow;
    color: black;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    padding: 18px 0;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #cfcfcf;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 6% 0;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    .logo-container img {
        height: 120px;
    }

    .header {
        padding: 12px 5%;
        flex-direction: row;
        justify-content: center;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 5%;
        z-index: 100;
    }

    .header .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: darkgreen;
        flex-direction: column;
        align-items: flex-start;
        padding: 140px 5% 20px 5%;
        gap: 20px;
        display: none;
        z-index: 99;
    }

    .header.nav-open .nav {
        display: flex;
    }

    .header .nav li {
        width: 100%;
        text-align: left;
        padding: 12px 16px;
    }

    .header .nav a {
        font-size: 1.2rem;
    }

    #carrito-flotante {
        top: auto !important;
        bottom: 22px !important;
    }

    .carousel-slide {
        height: 320px;
    }

    .welcome-below {
        padding: 30px 6%;
    }

    .welcome-text-h1 {
        font-size: 1.8rem;
    }

    .popular-section {
        padding: 30px 5%;
    }

    .popular-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .card-img {
        height: 140px;
    }

    .card-content {
        padding: 12px;
    }

    .card-title {
        font-size: 1.1rem;
    }
}


/* ── RESPONSIVE: Móvil (max 480px) ── */
@media (max-width: 480px) {

    .logo-container img {
        height: 100px;
    }

    .header {
        padding: 10px 4%;
        flex-direction: row;
        justify-content: center;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 4%;
    }

    .header .nav {
        padding: 120px 4% 20px 4%;
        gap: 15px;
    }

    .header .nav li {
        padding: 10px 16px;
    }

    .header .nav a {
        font-size: 0.95rem;
    }

    .carousel-slide {
        height: 220px;
    }

    .welcome-below {
        padding: 25px 5%;
    }

    .welcome-text-h1 {
        font-size: 1.4rem;
    }

    .welcome-text-h3 {
        font-size: 0.9rem;
    }

    .popular-section {
        padding: 25px 4%;
    }

    .popular-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card-img {
        height: 120px;
    }

    .card-content {
        padding: 10px;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .card-scale,
    .card-mark {
        font-size: 0.8rem;
    }

    .card-price {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .card-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .conocenos-section {
        padding: 40px 5%;
    }

    .conocenos-contenido {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .conocenos-titulo {
        font-size: 1.6rem;
    }

    .conocenos-imagen {
        flex: 0 0 auto;
        max-width: 280px;
    }
}