* {
    box-sizing: border-box;
  }

.navbar {
    background-color: transparent; 
    padding: 10px;
    margin-bottom: 2px;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    color: rgb(255, 29, 176); 
    text-decoration: none;
    font-size: 1.2rem;
    font-family: 'Georgia', serif;
    font-weight: bold;
    display: inline-block;
    padding-bottom: 5px;
}

.active {
    border-bottom: 4px solid rgb(255, 29, 176);
}

body {
    background-image: url('fondobonito.jpg');
    background-size: cover;       
    background-position: center; 
    background-attachment: fixed; 
    background-repeat: no-repeat;
    margin: 0; 
} 

.about-container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

.about-container img {
    border-radius: 25px;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.about-container img:hover {
    transform: scale(1.07);
}

.about-card {
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(139, 0, 133, 0.3);
    animation: aparecer 0.8s ease;
}

.historia { background-color: rgba(255, 105, 180, 0.75); }
.ken      { background-color: rgba(255, 182, 193, 0.75); }
.perro    { background-color: rgba(255, 160, 200, 0.75); }
.coche    { background-color: rgba(255, 140, 200, 0.75); }
.casa     { background-color: rgba(255, 120, 200, 0.75); }

.boton-barbie {
    display: block;
    width: 200px;
    max-width:90%;
    margin: 30px auto;
    padding: 14px;
    border-radius: 20px;
    background-color: rgba(255, 29, 176, 0.7);
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.boton-barbie:hover {
    background-color: rgba(255, 29, 176, 0.603);
    transform: translateY(-2px);
}

.foto-principal {
    display: flex;
    justify-content: center;
    align-items: center;

    background-color: rgba(255, 29, 176, 0.7); 
    
    padding: 25px;
    max-width: 520px;
    margin: 0 auto 40px auto;

    border-radius: 30px;        
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.4); 
}


.foto-principal img {
    width: 100%;
    max-width: 480px;           
    border-radius: 25px;
    transition: transform 0.4s ease;
}

.foto-principal img:hover {
    transform: scale(1.08);
}

.contenedor-about {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

.cuadro {
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cuadro h2 {
    text-align: center;
    margin-bottom: 15px;
    color: rgb(253, 181, 241);
}

.cuadro p {
    color: rgb(230, 230, 230);
    font-size: 1.1rem;
    line-height: 1.6;
}

.cuadro {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cuadro:not(.sin-hover):hover {
    transform: scale(1.06);
    box-shadow: 0 12px 25px rgba(255, 20, 147, 0.45);
}

.historia {
    background-color: rgba(255, 29, 176, 0.7);
}

.ken {
    background-color: rgba(255, 29, 176, 0.7);
}

.perro {
    background-color: rgba(255, 29, 176, 0.7);
}

.coche {
    background-color: rgba(255, 29, 176, 0.7);
}

.casa {
    background-color: rgba(255, 29, 176, 0.7);
}

.gif-historia {
    display: block;           
    margin: 0 auto 20px auto; 
    width: 80%;               
    max-width: 400px;         
    border-radius: 20px;      
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
}

.titulo-sobre-mi {
    text-align: center;       
    color: rgb(255, 29, 176);           
    font-size: 2.5rem;        
    font-weight: bold;        
    margin: 30px 0;           
    text-shadow: 2px 2px 5px rgba(0,0,0,0.2); 
}

.fila-columnas {
    display: flex;              
    flex-wrap: wrap;            
    gap: 20px;                  
    justify-content: center;    
    margin-top: 30px;           
}

.fila-columnas .cuadro {
    flex: 1 1 220px;           
    max-width: 250px;           
}

.seccion-video {
    background-color: rgba(255, 29, 176, 0.7); 
    max-width: 550px;    
    margin: 40px auto;   
    text-align: center;
}

.seccion-video h2 {
    color: rgb(253, 181, 241); 
    margin-top: 0;
    font-size: 1.8rem;
}

.video-flexible {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; 
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.video-flexible iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 600px) {
    .columna {
      width: 100%;
    }

    .iresponsive {
        width: 100%;
    }
}

@media screen and (max-width: 600px) {

    .navbar a {
        font-size: 0.85rem !important; 
        padding-bottom: 2px;
    }

    .navbar li {
        margin: 0 8px !important; 
    }

    .active {
        border-bottom: 2px solid rgb(255, 29, 176);
    }

    .card, .columna, .iresponsive {
        width: 100%;
    }
}