html {
    box-sizing: border-box;
    min-height: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    font-family: courier, monospace;
    min-height: 100vh;
    background-image: url("../img/fondo 2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-color: #f2f2f2;
    color: #111;
}

/* encabezado */
header {
    position: relative;
    text-align: center;
    min-height: 230px;
    padding: 10px 20px 10px 390px;
    font-family: courier;
    
}

header .logo {
    position: absolute;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    width: 350px;
}

header h1 {
    margin: 8px 0 0;
    font-size: 90px;
    color: black;
}

/* logo */
.logo{
    width: 400px;
}

nav {
    display: flex;
    justify-content: center;
    background: #222;
    
}

nav a {
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

nav a:hover {
    background: orange;
}

.banner {
    margin: 28px auto;
    max-width: 800px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.38),
        rgba(255, 255, 255, 0.12)
    );
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    padding: 100px;
    text-align: center;
}

.banner h2 {
    color: black;
    font-size: 50px;
    margin: 0;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.titulo-productos {
    text-align: center;
    font-size: 50px;
}

.card {
    position: relative;
    background: #222;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    color: white;
    overflow: visible;
}

.card p {
    margin: 12px 0 4px;
    font-size: 18px;
    font-weight: bold;
}

.producto-btn {
    display: inline-block;
    margin: 14px 0 4px;
    padding: 11px 18px;
    color: black;
    background: orange;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.producto-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.38);
}

/* carrusel de imagenes  */
.carrusel {
    position: relative;
    width: 320px;
    height: 230px;
    overflow: visible;
    border-radius: 10px;
    background: #111;
}

.carrusel-img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.35s ease;
    position: relative;
}

.carrusel-img.activa {
    display: block;
}

.carrusel:hover .carrusel-img.activa {
    transform: scale(1.28);
    z-index: 5;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border: 2px solid white;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}

.carrusel-btn:hover {
    background: orange;
    transform: translateY(-50%) scale(1.08);
}

.anterior {
    left: 12px;
}

.siguiente {
    right: 12px;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 28px auto 0;
    padding: 16px 28px;
    text-align: center;
    color:black;
    font-weight: bold;
    font-size: 16px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.38),
        rgba(255, 255, 255, 0.12)
    );
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
}

footer .logo {
    width: 250px;
}

footer h2 {
    margin: 6px 0;
    font-size: 22px;
}

footer p {
    margin: 0;
}

.whatsapp-btn {
    position: fixed;
    left: 29px;
    bottom: 29px;
    z-index: 000;
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.whatsapp-btn img {
    display: block;
    width: 90%;
    height: 150%;
    object-fit: contain;
}

.whatsapp-btn:hover {
    transform: scale(1.12);
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45));
}

.contacto {
    min-height: 55vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.contacto-panel {
    width: min(720px, 100%);
    padding: 40px;
    text-align: center;
    color: black;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.45),
        rgba(255, 255, 255, 0.18)
    );
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
}

.contacto-panel h2 {
    margin: 0 0 24px;
    font-size: 36px;
}

.contacto-panel p {
    margin: 14px 0;
    font-size: 22px;
    font-weight: bold;
}

.productos-page {
    padding: 36px 20px 60px;
}

.productos-hero {
    max-width: 900px;
    margin: 0 auto 34px;
    padding: 46px 34px;
    text-align: center;
    color: black;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.16)
    );
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
}

.productos-hero h2 {
    margin: 0 0 12px;
    font-size: 48px;
}

.productos-hero p {
    max-width: 680px;
    margin: 0 auto;
    font-size: 22px;
    font-weight: bold;
}

.productos-lineas {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 26px;
}

.linea-producto {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: center;
    padding: 24px;
    color: white;
    background: rgba(20, 20, 20, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
}

.linea-logo {
    display: block;
    width: 120px;
    max-width: 100%;
    margin-bottom: 14px;
}

.linea-info h2 {
    margin: 0 0 12px;
    font-size: 32px;
}

.linea-info p {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
}

.linea-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.linea-galeria img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.linea-galeria img:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.5);
}

/* ver imagen desde dsiposivo celular  */
@media (max-width: 600px) {
    body {
        background-size: cover;
    }

    header {
        min-height: auto;
        padding: 10px;
    }

    header .logo {
        position: static;
        transform: none;
        width: 260px;
    }

    nav {
        flex-direction: column;
    }

    .banner {
        margin: 18px 12px;
        padding: 50px 20px;
        border-radius: 14px;
    }

    .banner h2,
    .titulo-productos {
        font-size: 34px;
    }

    .grid {
        flex-direction: column;
        align-items: center;
    }

    .carrusel {
        width: 90vw;
        max-width: 320px;
        height: 220px;
    }

    .contacto {
        padding: 30px 12px;
    }

    .whatsapp-btn {
        left: 14px;
        bottom: 14px;
        width: 62px;
        height: 62px;
    }

    .contacto-panel {
        padding: 28px 18px;
    }

    .contacto-panel h2 {
        font-size: 28px;
    }

    .contacto-panel p {
        font-size: 18px;
    }

    .productos-page {
        padding: 24px 12px 42px;
    }

    .productos-hero {
        padding: 32px 18px;
    }

    .productos-hero h2 {
        font-size: 34px;
    }

    .productos-hero p {
        font-size: 18px;
    }

    .linea-producto {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .linea-info h2 {
        font-size: 26px;
    }

    .linea-info p {
        font-size: 16px;
    }

    .linea-galeria {
        grid-template-columns: 1fr;
    }

    .linea-galeria img {
        height: 220px;
    }

    footer {
        gap: 6px;
        width: auto;
        margin: 18px 12px 0;
        padding: 14px;
        font-size: 15px;
    }

    footer .logo {
        width: 140px;
    }
}
