*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}
body{
    background-color: antiquewhite;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    transition: 0.5s ease all; /* Transición más suave */
}
body.dark{
    background: #333;
}
a{
    color: #222;
    text-decoration: none;
    font-weight: 500px;
}
nav{
    background: #fefefe;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Sombra más sutil */
    transition: all 0.5s ease;
}
body.dark nav{
    background: #2b2b2b; /* Fondo oscuro mejorado */
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05); /* Sombra clara para modo oscuro */
}
body.dark nav a {
    color:rgb(180, 174, 174);
}
nav a:hover{ /* Regla de hover mejorada */
    color: #007bff;
    transform: translateY(-2px);
    transition: color 0.2s ease, transform 0.2s ease;
}
body.dark nav a:hover {
    color: #4da6ff;
}
nav .logotipo{
    font-weight: 900;
}
nav .enlaces{
    display: flex;
    gap: 20px;
    align-items: center;
}
nav .enlace a{
    margin-right: 40px;
}
.switch{                /*caja que contiene sol y luna*/
    background: #c9c7c7;
    border: none;
    cursor: pointer;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 1.6rem;
    border-radius: 20px;
}
.switch::after{  /*Círculo que se pone delante iconos*/
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    position: absolute;
    background: #070707;
    top: 0;
    left: 0;
    border-radius: 100px;
    transform: translateX(0);
    transition: transform 0.3 ease; 
}
.switch.active{
    background: rgb(247, 246, 246);
    color: black;
}
.switch.active::after{
    transform: translateX(35px);
}
.switch span{

    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
}
.opinion{
    margin-top: 100px;
    text-align: center;
    padding: 0 20px; /* Añadido padding para que no toque los bordes */
}
.opinion .heading{
    font-size: 2.5rem;
    color: #111;
    margin-bottom: 40px; /* Más espacio */
}
body.dark .opinion .heading{
    color: #f3f1f1;

}
.opinion .row{
    /* Ajuste para que se muestren más tarjetas y sean más flexibles */
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px, 1fr)); /* Min-width más pequeño */
    gap: 25px; /* Más espacio entre ellas */
    max-width: 1200px;
    margin: 0 auto;
    
}
.opinion .row .columns{
    text-align: center;
    max-width: 450px; 
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
    margin: auto;
    border-radius: 10px; 
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
body.dark .opinion .row .columns{
    background: #1f1f1f;
    color: #fefefe;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
}
.opinion .row .columns img{
    width: 100px;
    height: 100px; /* Aseguramos que la altura es igual al ancho para ser perfectamente cuadrada */
    object-fit: cover; /* Para que la imagen no se distorsione */
    border-radius: 50%;
    margin: 10px;
    border: 3px solid #007bff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
body.dark .opinion .row .columns img{
    border-color: #4da6ff;
}
.opinion .row .columns h3{
    font-size: 1.25rem;
}
.opinion .row .columns h4{ /* Nuevo estilo para el cargo */
    font-size: 0.9rem;
    color: #007bff;
    margin-bottom: 10px;
}
body.dark .opinion .row .columns h4{
    color: #4da6ff;
}
.opinion .row .columns p{
    font-size: 0.94rem;
    padding: 10px;
    text-align: center; /* Centramos el texto para un look más limpio */
}