@charset "utf-8";
/* CSS Document */

:root {
	/*--color-amarillo: #AF8519;*/
	--color-vino: #7B0633;
	--color-verde-obscuro: #234645;
	--color-blanco: #ffffff;
	--color-negro: #000;
	--color-anaranjado: #234645;
	--color-amarillo: #B09E2A;
	--color-verde-agua: #00857D;
}

body {
	/*font-family: 'Montserrat', sans-serif;*/
	font-family: Patria;
	color: var(--color-verde-obscuro);
	overflow-x: hidden;
}

h1, h2, h3, .navbar-brand {
	/*font-family: 'Playfair Display', serif;*/
	font-family:Patria;
}

/* Navbar */
.navbar {
	background-color: var(--color-blanco);
	border-bottom: 4px solid var(--color-verde-obscuro);
	transition: all 0.3s ease;
}

.nav-link {
	color: var(--color-verde-obscuro) !important;
	font-weight: 600;
	margin: 0 10px;
}

.nav-link:hover {
	color: var(--color-amarillo) !important;
}

/* Botón de Registro Específico en Nav */
.btn-register-nav {
	background-color: var(--color-blanco) !important;
	color: var(--color-verde-obscuro) !important;
	border: 2px solid var(--color-verde-obscuro) !important;
	padding: 8px 25px !important;
	border-radius: 50px;
	font-weight: 700;
	transition: all 0.3s ease !important;
	margin-left: 15px;
	display: inline-block;
	text-decoration: none;
}

.btn-register-nav:hover {
	color: var(--color-amarillo) !important;
	border-color: var(--color-amarillo) !important;
	background-color: var(--color-blanco) !important;
}

/* Hero Section */
.hero {
	/*background: linear-gradient(rgba(0, 68, 69, 0.8), rgba(255, 255, 255, 0.6)), 
				url('../img/castillo.png');*/
	background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), 
				url('../img/castillo.png');
	background-size: cover;
	background-position: center;
	height: 55vh;
	display: flex;
	align-items: center;
	color: var(--color-negro);
	text-align: center;
}

.hero h1 {
	font-size: 3rem;
	margin-bottom: 20px;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
	font-size: 1.5rem;
	max-width: 800px;
	margin: 0 auto 30px;
}

.btn-custom {
	background-color: var(--color-amarillo);
	color: white;
	padding: 12px 30px;
	border-radius: 50px;
	font-weight: bold;
	border: none;	
	transition: transform 0.3s ease;
	text-decoration: none;
    display: inline-block;
}

.btn-custom:hover {
	background-color: var(--color-verde-obscuro);
	color: white;
	transform: scale(1.05);
}

/* Section Titles */
.section-title {
	text-align: center;
	margin-bottom: 50px;
	position: relative;
	padding-bottom: 15px;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 4px;
	background-color: var(--color-amarillo);
}

/* Gallery */
#galeria {
	padding: 80px 0;
	background-color: #ffffff;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	margin-bottom: 20px;
	height: 250px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.gallery-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 68, 69, 0.85); /* Verde Obscuro */
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	opacity: 0;
	transition: opacity 0.3s ease;
	text-align: center;
	padding: 20px;
}

.gallery-item:hover .gallery-img {
	transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
	opacity: 1;
}

/* Book Download Button Style */
.btn-book-download {
	background-color: var(--color-verde-obscuro);
	color: white;
	padding: 20px 40px;
	border-radius: 15px;
	border: 2px solid var(--color-amarillo);
	font-weight: 700;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 15px;
	text-decoration: none;
	margin-top: 20px;
}

.btn-book-download:hover {
	background-color: var(--color-amarillo);
	color: white;
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Program Section */
#programa {
	background-color: #f8f9fa;
	padding: 80px 0;
}

/*.btn-program {
	padding: 30px;
	font-size: 1.25rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-radius: 15px;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 15px;
	height: 100%;
	width: 100%;
	border: 2px solid transparent;
	text-decoration: none;
}

.btn-academic {
	background-color: var(--color-verde-obscuro);
	color: white;
}

.btn-academic:hover {
	background-color: var(--color-blanco);
	color: var(--color-verde-obscuro);
	border-color: var(--color-verde-obscuro);
	transform: translateY(-5px);
}

.btn-musical {
	background-color: var(--color-amarillo);
	color: white;
}

.btn-musical:hover {
	background-color: var(--color-blanco);
	color: var(--color-amarillo);
	border-color: var(--color-amarillo);
	transform: translateY(-5px);
}*/

/* Contact Section */
/*#contacto {
	padding: 80px 0;
	background-color: #ffffff;
}

.contact-info-card {
	background-color: var(--color-verde-obscuro);
	color: white;
	padding: 50px;
	border-radius: 15px;
	position: relative;
	overflow: hidden;
}

.contact-info-card::before {
	content: '';
	position: absolute;
	top: -50px;
	right: -50px;
	width: 150px;
	height: 150px;
	background: var(--color-amarillo);
	opacity: 0.1;
	border-radius: 50%;
}

.contact-entry {
	background: rgba(255, 255, 255, 0.05);
	padding: 20px;
	border-radius: 12px;
	border-left: 3px solid var(--color-amarillo);
	transition: all 0.3s ease;
}

.contact-entry:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-5px);
}*/

/* Map Section */
#ubicacion {
	padding: 80px 0;
	background-color: var(--color-verde-obscuro);
	color: white;
}

.map-container {
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.3);
	height: 450px;
	background: #eee;
}

/* Registration CTA */
.register-section {
	background-color: var(--color-verde-obscuro);
	color: white;
	padding: 60px 0;
	text-align: center;
}

/* Footer */
footer {
	background-color: #1a1a1a;
	color: #ccc;
	padding: 40px 0;
	border-top: 5px solid var(--color-amarillo);
}

.footer-logo {
	color: var(--color-amarillo);
	font-size: 1.5rem;
	font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.hero h1 { font-size: 2.5rem; }
	.hero p { font-size: 1.1rem; }
	.map-container { height: 350px; }
	.contact-info-card { padding: 30px; }
	.btn-book-download { padding: 15px 25px; font-size: 0.9rem; }
	.btn-register-nav { margin-left: 0; margin-top: 10px; width: 100%; text-align: center; }
}





/**********************************************/

.carousel-container {
	max-width: 900px;
	margin: 50px auto;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	border-radius: 15px;
	overflow: hidden;
	background-color: #fff;
}

/* Contenedor de la imagen para controlar el desborde del zoom */
.carousel-item a {
	display: block;
	overflow: hidden;
	position: relative;
}

/* Efecto Hover Elegante */
.carousel-item img {
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9; /* Mantiene la proporción en cualquier pantalla */
	object-fit: cover;
}

.carousel-item a:hover img {
	transform: scale(1.04); /* Zoom sutil */
	filter: brightness(90%); /* Oscurece ligeramente para dar profundidad */
}

/* Personalización de los indicadores (Dots) */
.carousel-indicators [data-bs-target] {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: #fff;
	opacity: 0.5;
	transition: opacity 0.3s ease, background-color 0.3s ease;
}

.carousel-indicators .active {
	opacity: 1;
	background-color: #0d6efd; /* Color azul de Bootstrap para el activo */
}

/* Títulos superpuestos mejorados con fondo difuminado */
.carousel-caption {
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(5px);
	border-radius: 10px;
	padding: 15px;
	bottom: 30px;
}



/****************************************/


/* --- DISEÑO DE LA SECCIÓN DE VIDEOS (RESPONSIVO 16:9) --- */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .video-gallery {
        grid-template-columns: 1fr; /* Un solo video por fila en móviles */
    }
}

.video-item {
    background-color: #fff;
    /*border: 1px solid #e0e0e0;*/
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Técnica clásica de padding hack para mantener el aspecto 16:9 de los reproductores embed */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 18px;
    color: #0C231E;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.video-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}