* {
    margin: 0;
    font-family: "Montserrat", sans-serif;
}

body {
    background-color: rgb(43, 43, 43);
}

a {
    text-decoration: none;
    color: black;
    transition: all 0.2s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

a:hover {
    color: rgb(255, 60, 34);
}

#title {
    display: flex;
    align-content: left;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    z-index: 1;
    padding-left: 10vw;
    transition: all 0.2s ease-in-out;
}

#title>h1 {
    color: aliceblue;
    font-size: 70px;
    transition: all 0.2s ease-in-out;
}

#title>h4 {
    color: aliceblue;
    font-size: 20px;
    transition: all 0.2s ease-in;
    max-width: 36%;
    text-align: center;
}

#title>p {
    color: aliceblue;
    transition: all 0.2s ease-in;
    max-width: 36%;
    padding: 5px;
    text-align: center;
}

#title:hover {
    transform: translateY(-10px);
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 7vh;
    min-height: 50px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: 4px 17px 26px 0px rgba(0, 0, 0, 0.7);
    background-color: aliceblue;
    position: relative;
    z-index: 10;
}

nav>a {
    display: flex;
    width: 100px;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    height: 5vh;
    background-color: rgb(83, 83, 83);
    transition: all 0.2s ease-in-out;
}

nav>a:hover {
    background-color: rgb(255, 60, 34);
}

nav>a>h5 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90vw;
    color: aliceblue;
}

#logos {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

#bando-logo {
    display: flex;
    background-image: url('img/Bando-color.webp');
    background-size: contain;
    background-repeat: no-repeat;
    width: 150px;
    height: 6vh;
}

#r-logo {
    background-image: url('img/r.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 180px;
    height: 8vh;
}

#portada {
    height: 50vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#portada_vid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#second {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    min-height: 100vh;
    background-image: url('img/pbg.webp');
    background-color: rgb(43, 43, 43);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    position: relative;
    padding: 50px 0;
}

#second::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

#productos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    justify-items: center;
    max-width: 1200px;
    width: 90%;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.card {
    position: relative;
    z-index: 1;
    max-width: 500px;
    width: 100%;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    padding: 2rem;
    margin: 0;
    text-align: center;
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px -10px rgba(255, 255, 255, 0.6);
}

h1 {
    font-size: 1.9rem;
    color: #1e2a3e;
    margin-bottom: 0.5rem;
}

.badge {
    background: #eef2ff;
    color: #1e40af;
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.desc {
    color: #334155;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.usos {
    background: #f8fafc;
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.usos h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #0f172a;
    text-align: center;
}

.usos ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 0px;
}

.usos li {
    background: white;
    padding: 0.6rem 1.2rem;
    border-radius: 60px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    color: #0c4a6e;
    border: 1px solid #e2e8f0;
}

.dato-tecnico {
    background: #e6f0ff;
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #075985;
}

#lineas {
    width: 100%;
    min-height: 400px;
    background: linear-gradient(145deg, #686868, #17191f);
    border-radius: 32px;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 15px 30px rgba(27, 27, 27, 0.9);
    transition: all 0.2s ease;
    gap: 20px;
}

#lineas:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px -10px rgba(255, 255, 255, 0.9);
}

#lineas>a {
    width: 100%;
    max-width: 400px;
    margin: 5px;
}

.l-contenedor {
    color: #e6f0ff;
    text-align: center;
    width: 100%;
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-direction: column;
    padding-bottom: 30px;
    background-color: #616161;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.l-contenedor:hover {
    background-color: rgb(255, 60, 34);
    border-radius: 10px;
}

.l-contenedor h2 {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.l-contenedor p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.6;
    width: 100%;
}

.l-contenedor ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    text-align: left;
    width: 100%;
}

.l-contenedor li {
    font-size: 12px;
    text-align: left;
    padding: 5px 0;
    color: #e6f0ff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.l-contenedor li:last-child {
    border-bottom: none;
}

.banda {
    width: 100%;
    height: 110px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.banda.dent {
    background-image: url('img/dentadas.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.banda.est {
    background-image: url('img/estriadas.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.banda.lisa {
    background-image: url('img/lisas.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.btn-contacto {
    display: inline-block;
    background: rgb(255, 60, 34);
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 60px;
    font-size: 1.2rem;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

.btn-contacto:hover {
    background: #1d1d1d;
    transform: scale(1.02);
}

footer {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ========== RESPONSIVE ========== */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    #title>h1 {
        font-size: 55px;
    }

    #title>h4,
    #title>p {
        max-width: 50%;
    }
}

@media (max-width: 968px) {
    #productos {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 95%;
    }

    .card {
        max-width: 100%;
        padding: 1.5rem;
    }

    #title>h4,
    #title>p {
        max-width: 70%;
    }

    #title>h1 {
        font-size: 50px;
    }

    #lineas {
        padding: 20px;
    }

    #lineas>a {
        max-width: 100%;
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    #portada {
        height: 45vh;
    }

    #title {
        padding-left: 5vw;
        padding-right: 5vw;
        align-items: center;
        text-align: center;
    }

    #title>h1 {
        font-size: 42px;
        text-align: center;
    }

    #title>h4 {
        font-size: 18px;
        max-width: 90%;
        text-align: center;
    }

    #title>p {
        font-size: 16px;
        max-width: 90%;
        text-align: center;
    }

    #title:hover {
        transform: translateY(-5px);
    }

    nav {
        flex-direction: row;
        height: auto;
        padding: 10px 15px;
        gap: 10px;
        flex-wrap: wrap;
    }

    #logos {
        gap: 8px;
    }

    #bando-logo {
        width: 120px;
        height: 5vh;
    }

    #r-logo {
        width: 140px;
        height: 6vh;
    }

    nav>a {
        width: 90px;
        height: 40px;
    }

    #second {
        padding: 30px 0;
        min-height: auto;
    }

    #productos {
        gap: 25px;
        padding: 15px;
        width: 100%;
    }

    .card {
        padding: 1.5rem;
        border-radius: 24px;
        margin: 0 10px;
        max-width: calc(100% - 20px);
    }

    .usos ul {
        flex-direction: column;
        align-items: center;
    }

    .usos li {
        width: 100%;
        text-align: center;
    }

    #lineas {
        padding: 15px;
        border-radius: 24px;
        margin: 0 10px;
        width: calc(100% - 20px);
        min-height: 300px;
        gap: 15px;
    }

    #lineas>a {
        max-width: 100%;
        margin: 3px 0;
    }

    .l-contenedor {
        padding: 15px;
        padding-bottom: 20px;
    }

    .l-contenedor h2 {
        font-size: 1.1rem;
        margin-top: 0.8rem;
    }

    .l-contenedor p {
        font-size: 0.85rem;
    }

    .l-contenedor li {
        font-size: 11px;
    }

    .banda {
        height: 90px;
    }

    .btn-contacto {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    #productos>h2 {
        font-size: 28px;
        padding: 20px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    #portada {
        height: 40vh;
    }

    #title>h1 {
        font-size: 30px;
        margin: 0;
    }

    #title>h4 {
        font-size: 10px;
    }

    #title>p {
        font-size: 13px;
    }

    nav {
        flex-direction: column;
        padding: 8px 10px;
    }

    #logos {
        width: 100%;
        justify-content: center;
    }

    #bando-logo {
        width: 90px;
        height: 4vh;
    }

    #r-logo {
        width: 100px;
        height: 5vh;
    }

    nav>a {
        width: 80%;
        height: 36px;
    }

    nav>a>h5 {
        font-size: 14px;
    }

    #second {
        padding: 20px 0;
    }

    #productos {
        gap: 20px;
        padding: 10px;
    }

    .card {
        padding: 1rem;
        border-radius: 20px;
        margin: 0 5px;
        max-width: calc(100% - 10px);
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.8rem;
    }

    .desc {
        font-size: 0.95rem;
    }

    .usos {
        padding: 1rem;
    }

    .usos h2 {
        font-size: 1.1rem;
    }

    .usos ul {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0px;
    }

    .usos li {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        max-width: 50vw;
    }

    .dato-tecnico {
        font-size: 0.8rem;
        padding: 0.8rem;
    }

    #lineas {
        padding: 12px;
        border-radius: 20px;
        margin: 0 5px;
        width: calc(100% - 10px);
        min-height: 250px;
        gap: 12px;
    }

    .l-contenedor {
        padding: 12px;
        padding-bottom: 15px;
    }

    .l-contenedor h2 {
        font-size: 1rem;
    }

    .l-contenedor p {
        font-size: 0.8rem;
    }

    .l-contenedor li {
        font-size: 10px;
        padding: 4px 0;
    }

    .banda {
        height: 70px;
        border-radius: 12px;
    }

    .btn-contacto {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
        width: 100%;
        box-sizing: border-box;
    }

    footer {
        font-size: 0.65rem;
        margin-top: 1.5rem;
    }

    #productos>h2 {
        font-size: 22px;
        padding: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
    #title>h1 {
        font-size: 24px;
    }

    #title>h4 {
        font-size: 12px;
    }

    #title>p {
        font-size: 11px;
    }

    #bando-logo {
        width: 70px;
        height: 3.5vh;
    }

    #r-logo {
        width: 80px;
        height: 4vh;
    }

    .card {
        padding: 0.8rem;
    }

    .banda {
        height: 60px;
    }

    .l-contenedor h2 {
        font-size: 0.9rem;
    }

    .l-contenedor li {
        font-size: 9px;
    }

    .btn-contacto {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
}