*{
    box-sizing:border-box;
}

/* =========================================
   ESTILOS GENERALES DEL BODY
========================================= */
body{
    font-family:'Segoe UI', Arial, sans-serif;
    margin:0;
    background:#f4f4f4;
    color:#333;
    line-height:1.6;
}

/* =========================================
   LOGO Y TITULO
========================================= */
.logo-titulo{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
}

.logo{
    width:60px;
    height:60px;
    border-radius:50%;
    object-fit:cover;
}

/* =========================================
   BOTÓN PRINCIPAL
========================================= */
.boton-productos{
    display:inline-block;
    padding:12px 25px;
    background:#d45d79;
    color:white;
    text-decoration:none;
    border-radius:25px;
    font-weight:bold;
    transition:0.3s;
}

.boton-productos:hover{
    background:#b94460;
    transform:scale(1.05);
}

/* =========================================
   HEADER
========================================= */
header{
    background:linear-gradient(135deg,#ff6f91,#ff9671);
    color:white;
    text-align:center;
    padding:40px;
}

/* =========================================
   NAV
========================================= */
nav{
    background:#333;
}

nav ul{
    display:flex;
    justify-content:center;
    list-style:none;
    margin:0;
    padding:15px;
    flex-wrap:wrap;
}

nav ul li{
    margin:0 15px;
}

nav ul li a{
    color:white;
    text-decoration:none;
    font-weight:bold;
    transition:0.3s;
}

nav ul li a:hover{
    color:#ff6f91;
}

/* =========================================
   CONTENEDOR PRINCIPAL
========================================= */
.contenedor{
    display:flex;
    align-items:flex-start;
    gap:30px;
    max-width:1200px;
    margin:auto;
    padding:20px;
}

/* =========================================
   MAIN
========================================= */
main{
    width:70%;
    padding:25px;
    background:white;
    border-radius:10px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

/* =========================================
   ASIDE
========================================= */
aside{
    background:#e8a9b3;
    padding:20px;
    border-radius:15px;
    width:260px;
    height:fit-content;
    margin-top:40px;
    box-shadow:0 4px 10px rgba(0,0,0,0.15);
}

/* =========================================
   GALERÍA
========================================= */
.galeria{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
    margin-top:20px;
}

.tarjeta{
    background:white;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
    transition:transform 0.3s;
}

.tarjeta:hover{
    transform:scale(1.08);
}

.tarjeta img{
    width:100%;
    height:200px;
    object-fit:cover;
}

.tarjeta p{
    padding:10px;
    text-align:center;
    font-weight:bold;
}

/* =========================================
   TABLA
========================================= */
table{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
}

th{
    background:#ff6f91;
    color:white;
    padding:10px;
}

td{
    border:1px solid #ddd;
    padding:10px;
    text-align:center;
}

/* =========================================
   VIDEO
========================================= */
video{
    display:block;
    margin:20px auto;
    border-radius:10px;
    width:100%;
    max-width:400px;
    height:auto;
}

/* =========================================
   FORMULARIO GENERAL (MODAL)
========================================= */
form{
    width:100%;
    display:flex;
    flex-direction:column;
}

/* Labels alineados correctamente */
form label{
    display:block;
    margin-top:10px;
    font-weight:bold;
}

/* Inputs normales (texto, email, textarea) */
input[type="text"],
input[type="email"],
textarea{
    width:100%;
    padding:8px;
    margin-top:5px;
    border:1px solid #ccc;
    border-radius:5px;
}

/* CORRECCIÓN IMPORTANTE
   Evita que radio y checkbox se estiren */
input[type="radio"],
input[type="checkbox"]{
    width:auto;
    margin-right:8px;
}

/* Botón */
button{
    background:#ff6f91;
    color:white;
    padding:10px 15px;
    border:none;
    border-radius:5px;
    cursor:pointer;
    transition:0.3s;
    margin-top:15px;
}

button:hover{
    background:#ff3f6c;
}

/* =========================================
   MODAL FORMULARIO
========================================= */
.modal{
    display:none;
    position:fixed;
    z-index:1000;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    justify-content:center;
    align-items:center;
    padding:15px;
}

.modal-contenido{
    background:white;
    padding:25px;
    border-radius:15px;
    width:100%;
    max-width:400px;
    max-height:90vh;
    overflow-y:auto;
    position:relative;
    animation:aparecer 0.3s ease;
    box-shadow:0 10px 25px rgba(0,0,0,0.3);
}

.cerrar{
    position:absolute;
    right:15px;
    top:10px;
    font-size:25px;
    cursor:pointer;
    font-weight:bold;
    color:#333;
}

.cerrar:hover{
    color:#ff3f6c;
}

@keyframes aparecer{
    from{
        transform:scale(0.8);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

/* =========================================
   FOOTER
========================================= */
footer{
    background:#333;
    color:white;
    text-align:center;
    padding:20px;
    margin-top:20px;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width:768px){

    .contenedor{
        flex-direction:column;
    }

    main{
        width:100%;
    }

    aside{
        width:100%;
        margin-top:20px;
    }

    nav ul{
        flex-direction:column;
        align-items:center;
    }

    nav ul li{
        margin:10px 0;
    }
}

@media (max-width:480px){

    .modal-contenido{
        padding:20px;
        border-radius:12px;
    }
}


/*git add .
git commit -m "mensaje de cambios"
git push origin main*/