@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f0f4f8;
}

/* HEADER */
.header {
    background: #4a90e2;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* NAV */
nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    background: white;
    padding: 1rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

nav a:hover {
    color: #4a90e2;
}

/* CONTENEDOR */
.contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

/* PERFIL */
.perfil {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

/* FOTO PERFIL */
.foto-perfil {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #4a90e2;
    object-fit: cover;
}

/* NOMBRE */
.nombre {
    color: #4a90e2;
}

/* TARJETAS */
.card {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

/* TARJETAS GRANDES */
.ancho {
    max-width: 800px;
}

/* HABILIDADES */
.habilidades-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.habilidad {
    background: #e6e6e6;
    padding: 0.8rem;
    border-radius: 10px;
}

/* FILA GENERAL */
.fila {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* SUB CAJAS */
.sub-card {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
    width: 220px;
}

/* PELÍCULAS EN FILA */
.peliculas {
    display: flex;              
    gap: 1rem;                  
    justify-content: center;    
    flex-wrap: wrap;            
}

/* CADA ITEM / PELÍCULA */
.item {
    width: 220px;                 
    background-color: #f9f9f9;    
    border: 1px solid #ccc;       
    border-radius: 12px;           
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    padding: 10px;                 
    text-align: center;            
    transition: transform 0.2s, box-shadow 0.2s; 
}

/* IMÁGENES DE LAS PELÍCULAS */
.item img {
    width: 100%;
    height: 300px;          
    object-fit: cover;      
    border-radius: 8px;     
}

/* TÍTULOS */
.item h4 {
    margin: 10px 0 5px 0;
    font-size: 16px;
    color: #333;
}

/* DESCRIPCIONES */
.item p {
    font-size: 14px;
    color: #555;
}

/* EFECTO AL PASAR EL MOUSE */
.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* CARRUSEL / MASCOTAS */
.carrusel {
    display: flex;               
    justify-content: center;     
    flex-wrap: wrap;             
}

/* CADA MASCOTA */
.mascota {
    width: 180px;                
    background-color: #f9f9f9;   
    border: 1px solid #ccc;      
    border-radius: 12px;         
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    padding: 10px;               
    text-align: center;          
    transition: transform 0.2s, box-shadow 0.2s; 
}

/* IMÁGENES DE LAS MASCOTAS */
.mascota img {
    width: 100%;
    height: 150px;              
    object-fit: cover;          
    border-radius: 8px;         
}

/* NOMBRES DE LAS MASCOTAS */
.mascota p {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
}

/* EFECTO HOVER */
.mascota:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* FORMULARIO */
.formulario {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

/* INPUTS */
.formulario input {
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: 'Poppins', sans-serif;
}

/* BOTÓN */
.formulario button {
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    background: #4a90e2;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

/* HOVER BOTÓN */
.formulario button:hover {
    background: #357abd;
}

/* FOOTER */
footer {
    text-align: center;
    background: #4a90e2;
    color: white;
    padding: 1rem;
    margin-top: 1rem;
}