/**
 * Theme Name:     Hello Elementor Child
 * Author:         Elementor Team
 * Template:       hello-elementor
 * Text Domain:	   hello-elementor-child
 * Description:    Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
 */

.text-white {
	color: #fff !important;
}
.service-box {
	color: #fff !important;
}
.service-box ul {
	padding-left: 0 !important;
}
.service-box ul li {
	line-height: 2em !important;
	list-style: none !important;
	display: flex;
	align-items: center;
}
.service-box ul li::before {
	content: '';
	display: inline-flex;
	align-items: center;
	background: url('https://tutoriasjuridicas.cl/wp-content/uploads/2025/10/check-icon.svg');
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	width: 20px;
	height: 20px;
	margin-right: 10px;
}
.servicios-complementarios ul {
	padding: 0 !important;
	margin-top: 30px
}
.servicios-complementarios ul li {
	list-style: none !important;
	display: inline-flex;
	border: 1px solid #c2c3c3;
	border-radius: 8px;
	padding: 0px 5px;
	margin: 3px;
	color: #1E67BA;
	font-size: 14px;
}

/* Contenedor principal del carrusel */
.carrusel-alumnos {
	/* Padding para asegurar que la sombra inferior se muestre */
	padding-bottom: 20px;
}

/* El slide que contiene la card */
.carrusel-alumnos .slick-slide {
	height: auto;
	display: flex !important;
	align-items: stretch;
}

/* CLAVE PARA EL GAP (Separación de 4px a cada lado) */
.carrusel-slide {
	padding: 0 4px; 
	box-sizing: border-box;
	padding-bottom: 10px;
}

.card-alumno {
	min-height: 160px;
	width: 100%;
	background-color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	text-align: left;
	height: 100%;
	margin-bottom: 0;
	display: flex;
	flex-direction: column;
}

.card-alumno .card-body {
	flex-grow: 1;
}

.card-alumno .card-header h4 {
	font-weight: bold;
	color: #1E67BA;
	font-size: 18px;
	margin-top: 0;
	margin-bottom: 15px;
}

.card-alumno .card-body p {
	margin-bottom: 5px;
	line-height: 1.4;
	color: #333;
}

/* ======================================= */
/* ESTILOS PARA FLECHAS (NEXT/PREV) CON URLS SVG */
/* ======================================= */

.carrusel-alumnos .slick-prev,
.carrusel-alumnos .slick-next {
	font-size: 0;
	line-height: 0;
	background-color: #1E67BA;
	border-radius: 50%;
	border: none;
	width: 45px;
	height: 45px;
	z-index: 10;
	top: 50%;
	transform: translateY(-50%);
}

.carrusel-alumnos .slick-prev:before {
	content: '';
	display: block;
	width: 20px;
	height: 20px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-image: url('https://tutoriasjuridicas.cl/wp-content/uploads/2025/11/arrow-left.svg');
	background-repeat: no-repeat;
	background-size: contain;
}

.carrusel-alumnos .slick-next:before {
	content: '';
	display: block;
	width: 20px;
	height: 20px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-image: url('https://tutoriasjuridicas.cl/wp-content/uploads/2025/11/arrow-right.svg');
	background-repeat: no-repeat;
	background-size: contain;
}

.carrusel-alumnos .slick-prev:hover,
.carrusel-alumnos .slick-next:hover {
	background-color: #1a56a0;
}

/* ========================================= */
/* 1. ESTRUCTURA DE GRILLA (GRID) */
/* ========================================= */
.grilla-testimonios {
    display: grid;
    /* Crea 3 columnas de igual ancho con un espacio de 20px entre ellas */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    
    /* Permite que las tarjetas tengan la misma altura */
    align-items: stretch; 
    margin: 30px 0;
}

/* ------------------------------------- */
/* Diseño Responsive: 2 columnas en tablets */
/* ------------------------------------- */
@media (max-width: 992px) {
    .grilla-testimonios {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ------------------------------------- */
/* Diseño Responsive: 1 columna en móviles */
/* ------------------------------------- */
@media (max-width: 600px) {
    .grilla-testimonios {
        grid-template-columns: 1fr;
    }
}


/* ========================================= */
/* 2. ESTILOS DE LA CARD DE TESTIMONIO */
/* ========================================= */
.card-testimonio {
    /* Fondo blanco y borde gris */
    background-color: #ffffff;
    border: 1px solid #ddd; /* Borde gris suave */
    border-radius: 8px;
    padding: 25px;
    
    /* Asegura que el contenido se estire dentro del Grid */
    height: 100%; 
    
    /* Utiliza Flexbox para empujar el autor hacia abajo */
    display: flex;
    flex-direction: column;
}

/* Estilo para el área del mensaje */
.testimonio-mensaje {
    font-style: italic;
    color: #444;
    /* Esto permite que el mensaje ocupe todo el espacio disponible */
    flex-grow: 1; 
}
/* Estilo para el nombre (Autor) */
.testimonio-autor strong {
    display: block;
    margin-top: 10px;
    font-size: 16px;
    color: #1E67BA; /* O el color que prefieras para el nombre */
}

/* Estilo para Universidad/Carrera */
.testimonio-autor .datos-autor-secundarios {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

.testimonios-load-more-wrap {
    text-align: center;
    margin-top: 30px;
}

.load-more-button {
    /* Estilos básicos para el botón */
    background-color: #1E67BA;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 35px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.load-more-button:hover {
    background-color: #1a56a0;
}
/* Estilos para evitar el scroll en el fondo cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
}

/* 1. Fondo (Overlay) del Modal - Cubre toda la pantalla */
#testimonio-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

/* 2. Contenido del Modal */
#testimonio-modal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px; /* Ancho máximo del modal */
    width: 90%;
    position: relative;
    margin: 20px 0; /* Margen superior e inferior para el modo scroll */
}

/* 3. Botón de Cerrar */
#testimonio-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* 4. Estado Activo */
#testimonio-modal-overlay.is-active {
    display: flex;
}

/* 5. Estilos internos del contenido */
#testimonio-modal-body {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}
#testimonio-modal-autor {
    border-top: 1px solid #eee;
    padding-top: 15px;
}
.ver-mas-testimonio {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: normal;
    color: #1E67BA;
    text-decoration: underline !important;
    margin-bottom: 12px;
}
#testimonio-modal-autor strong {
		color: #1a56a0;
}