/* RESET BÁSICO */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: "Lexend", sans-serif;
    background-color: #66a9bd;
    color: #003366;  
}
style {
    display: none; 
}
header, main, footer{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* banner SUPERIOR */
.top-banner{
    background-color: #377192; 
    color: white;
    padding: 10px;
    font-weight: bold;
}

/* nav principal */
.nav-principal{
    background-color: #2a6672;
    padding: 15px 25px;
    max-width: 1200px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo{
    font-size: 24px;
    font-weight: bold;
    color: #003366;
}

/* la navegacion */
.nav-lista{
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-lista a{
    text-decoration: none;
    color: #003366;
    font-weight: bold;
    transition: .3s;
}

.nav-lista a:hover{
    color: #ff6b35;
}

/* estilo para las imagenes con width */
img[width] {
    border: 2px solid #00b4d8;
    transition: transform .3s ease;
}

img[width]:hover {
    transform: scale(1.05);
}
/* grid*/
.galeria{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 160px;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
}

.card{
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    transition: transform .2s ease;
}

.card:hover{
    transform: translateY(-6px);
}

.c1{
    grid-column: 1/3;
    grid-row: 1/3;
    background-image: url(https://i.pinimg.com/736x/9d/82/9c/9d829c04e1d8e1c10964ded23842db65.jpg);
}

.c2{
    grid-column: 3/5;
    grid-row: 1/2;
    background-image: url(https://i.pinimg.com/1200x/f5/45/9b/f5459b446f46a003d434d1f7aede7252.jpg);
}

.c3{
    grid-column: 5/7;
    grid-row: 1/3;
    background-image: url(https://i.pinimg.com/1200x/77/b0/02/77b002b2b25cba01fb1e9dce240446a2.jpg);
}

.c4{
    grid-column: 3/5;
    grid-row: 2/3;
    background-image: url(https://i.pinimg.com/1200x/62/47/7d/62477d2a5f3e29ac0a3275383766f41c.jpg);
}

.c5{
    grid-column: 3/6;
    grid-row: 3/5;
    background-image: url(https://i.pinimg.com/736x/9b/0f/d2/9b0fd2f2d0cad6f61066b34fd9d337ce.jpg);
}

.c6{
    grid-column: 6/7;
    grid-row: 3/5;
    background-image: url(https://i.pinimg.com/1200x/c0/0f/20/c00f20bfe5cd7daee792d5efe879bc37.jpg);
}

.c7{
    grid-column: 1/3;
    grid-row: 3/5;
    background-image: url(https://i.pinimg.com/1200x/38/38/fa/3838fa149bdb5b584ddbcd7f3242ab18.jpg);
}
/* habitats */
.catalogo-contenedor{
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* tarjetas */
.producto-tarjeta{
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    padding-bottom: 20px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
    flex: 1 1 240px;
}

.producto-tarjeta:hover{
    transform: translateY(-6px);
    box-shadow: 0px 10px 20px rgba(0,0,0,0.15);
}
/*este es el estilo de libros*/
.producto-img{
    width: 100%;
    height: 220px;
    object-fit: contain;
    background-color: #f0f8ff;
    padding: 10px;
}
.catalogo-contenedor {
    display: flex;
    gap: 20px;            
}

.producto-tarjeta {
    width: 45%;
}

.producto-titulo{
    font-size: 22px;
    font-weight: 700;
    margin-top: 10px;
    color: #006994;
}

.producto-desc{
    font-size: 14px;
    color: #2c5282;
    margin: 10px 15px;
}

.producto-precio{
    font-size: 18px;
    font-weight: bold;
    color: #00a8cc;
    margin-bottom: 10px;
}

.producto-btn{
    background: #00b4d8;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: .3s ease;
    font-size: 15px;
    font-weight: bold;
}

.producto-btn:hover{
    background: #0077be;
}

/* parte de la genral */
section{
    padding: 25px;
}

h2{
    font-size: 28px;
    margin-bottom: 10px;
    color: #003366;
}

h3{
    font-size: 22px;
    margin: 15px 0;
    color: #006994;
}

/* las listas vayan ordenadas */
ol{
    padding-left: 30px;
    margin: 15px 0;
    text-align: left;
    display: inline-block;
}

ol li{
    margin-bottom: 8px;
    color: #2c5282;
    padding-left: 5px;
}

/* formulario */

input[type="number"]{
    padding: 10px;
    border: 1px solid #0077be;
    border-radius: 6px;
    width: 100%;
    max-width: 200px;
}

/*el radio en los botones */
input[type="radio"]{
    margin-right: 5px;
    margin-left: 15px;
}

input[type="radio"]:first-of-type{
    margin-left: 0;
}

label[for]{
    display: block;
    margin: 5px 0;
    font-weight: bold;
    color: #003366;
}

/* Checkbox */
input[type="checkbox"]{
    margin-right: 8px;
    transform: scale(1.2);
}

/* para la fecha */
input[type="date"]{
    padding: 10px;
    border: 1px solid #0077be;
    border-radius: 6px;
    font-family: "Lexend", sans-serif;
    color: #003366;
}



/* Listas regulares */
ul{
    padding-left: 20px;
    margin: 10px 0;
}

ul li{
    margin-bottom: 6px;
    color: #2c5282;
}

/* defensores */
.defensores-section{
    text-align: center;
    padding: 40px 25px;
}

.defensores-section p{
    max-width: 700px;
    margin: 0 auto 20px;
}

.defensores-contenedor{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
}

.defensores-card{
    background-color: #b3e0ff;
    width: 250px;
    padding: 60px 20px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.defensores-foto{
    width: 80%;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #66c2ff;
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
}

.defensores-card h3{
    margin-top: 15px;
    color: #003366;
    font-size: 20px;
}

.defensores-rol{
    font-size: 14px;
    color: #006994;
    margin: 10px;
}

.defensores-desc{
    font-size: 13px;
    color: #2c5282;
    line-height: 1.4;
}

/* contacto en columnas */
.contacto-section{
    margin-top: 40px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.contacto-contenido,
.contacto-aside{
    flex: 1 1 300px;
}

/* formulario */
.form-contacto{
    background: rgb(179, 224, 255);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-contacto input,
.form-contacto textarea{
    padding: 10px;
    border: 1px solid #0077be;
    border-radius: 6px;
    font-family: "Lexend", sans-serif;
}

.form-contacto textarea{
    resize: vertical;
    min-height: 100px;
}

/* estilos para suscripcion */
#suscripcion .form-contacto{
    background-color: #b3e0ff;
    border: 2px solid #00b4d8;
}

#suscripcion h3{
    color: #003366;
    border-bottom: 2px solid #00b4d8;
    padding-bottom: 10px;
}

/* para div  */
div > label{
    display: flex;
    align-items: center;
    margin: 5px 0;
    cursor: pointer;
}

/* footer */
footer{
    text-align: center;
    padding: 15px;
    margin-top: 30px;
    background-color: #006994;
    color: #b3e0ff;
}

footer a{
    color: #b3e0ff;
    text-decoration: none;
    transition: color .3s;
}

footer a:hover{
    color: #ff6b35;
    text-decoration: underline;
}

/* boto flotante */
.boton-carrito{
    position: fixed;
    bottom: 25px;
    background-color: #003366;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    color: white;
    padding: 12px 20px;
    z-index: 1500;
    right: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: .2s ease;
}

.boton-carrito:hover{
    background-color: #001a33;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

.producto-badge{
    position: absolute;
    background-color: #ff6b35; 
    top: 10px;
    left: 10px;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* aqui teien diseño responsivo*/
@media screen and (max-width: 1024px) {
    .nav-principal{
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .producto-tarjeta{
        flex: 1 1 260px;
    }
    
    .equipo-card{
        width: 260px;
    }
    
    .galeria{
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* ajustes para formularios */
    input[type="number"],
    input[type="date"],
    input[type="file"]{
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .top-banner{
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .nav-principal{
        justify-content: center;
        gap: 12px;
        padding: 10px 12px;
    }
    
    .logo{
        font-size: 20px;
        text-align: center;
        width: 100%;
    }
    
    .nav-lista{
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 16px;
    }
    
    .galeria{
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 120px;
    }
    
    .c1, .c3, .c5, .c6, .c7 {
        grid-column: 1/3;
    }
    
    .c2, .c4 {
        grid-column: 1/3;
    }
    
    /* ajustes para formularios  */
    .contacto-section{
        flex-direction: column;
    }
    
    .contacto-contenido,
    .contacto-aside{
        flex: 1 1 100%;
    }
    div > label{
        flex-wrap: wrap;
    }
    
    /* listas ordenadas */
    ol{
        padding-left: 20px;
    }
}

p strong{
    color: #006994;
}