/* ==========================================================================
   Forzar el esquema de color claro para todo el sitio
   ========================================================================== */
:root {
  color-scheme: light dark;
}

/* ------------------------------------------------------------------------------
	Typography
-------------------------------------------------------------------------------*/

p {
	font-size: 14px;
	line-height: 22.4px;
	color: #ECECEC;
}
h1 {
	font-size: 65px;
	color: #2d3033;
	
}
h2 {
    font-size: 40px;
    color: #2d3033;
    font-weight: 300;
    /* Por defecto, en pantallas grandes, es flex (icono y texto al lado) */
    display: flex;
    flex-direction: row; /* Icono y texto en fila */
    align-items: center; /* Centra verticalmente el icono y el texto */
    justify-content: center; /* Centra horizontalmente todo el contenido */
    gap: 15px; /* Espacio entre el icono y el texto */
}
h3 {
	font-size: 30px;
	color: #2d3033;
	font-weight: 700;
	padding-left: 10px;
	justify-content: center;
	
}
h4 {
	font-size: 40px;
	color: #2d3033;
	font-weight: 300;
}
h5 {
	font-size: 14px;
	color: #2d3033;
	text-transform: uppercase;
	font-weight: 300;
}
h6 {
	font-size: 12px;
	color: #333;
	text-transform: uppercase;
	font-weight: 300;
}
h7 {
	font-size: 12px;
	color: #2d3033;
	text-transform: uppercase;
	font-weight: 300;
}
h8 {
	font-size: 12px;
	color: #fff;
	font-weight: 300;
}
h1, h2, h3, h4, h5, h6, h7, h8{
	font-family: "Ubuntu", "Open Sans", "Arial", sans-serif;
}

/* ------------------------------------------------------------------------------
	Global Styles
-------------------------------------------------------------------------------*/
a {
	color: #ffd500;
}
a:hover, a:focus {
	text-decoration: none;
	-moz-transition: background-color, color, 0.3s;
	-o-transition: background-color, color, 0.3s;
	-webkit-transition: background-color, color, 0.3s;
	transition: background-color, color, 0.3s;
}
a.morebtn {
    border: 1px solid #ffd500;
    padding: 6px 18px;
    margin-top: 15px;
    display: inline-block;
}
a.morebtn:hover {
    color: #fff;
    background: #ffd500;
}
ul, ol {
	margin: 0;
	padding: 0;
}
ul li {
	list-style: none;
}
.section {
	padding: 60px 0;
	margin-bottom: 50px;
}
.no-padding {
	padding: 0;
}
.no-gutter [class*=col-] {
	padding-right: 0;
	padding-left: 0;
}
.space {
	margin-top: 60px;
}
.icogrande {
	margin-top: 10px;
	algn-content: center;
}
.icogrande img {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    margin-bottom: -6px; /* Este margen ayuda a alinear verticalmente */
}
.icochico {
}
.icochico img {
	width: 40px;
	height: 40px;
	border-radius:20px;
	margin: auto;
}

/* -----------------------------------------------------------------------------
Common Styles
------------------------------------------------------------------------------- */
.section-header{	
	text-align: center;	
	padding-bottom: 30px;
	margin-top: 60px
}
.section-header h2{
	font-size: 48px;
}
.section-header p {
    color: #777;
    max-width: 650px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---------------------------------------------------- */
/* REGLAS BÁSICAS DEL SITIO */
/* ---------------------------------------------------- */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;	
    font-family: sans-serif;
    background-color: #f4f4f4;
    color: #333;
    overflow-x: hidden;
}

body {
    padding-top: 62px;	/* Mantenemos esto para el menú fijo */
}

/* SI el usuario tiene el modo oscuro activado... */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #fff;
    }
}

/* ---------------------------------------------------- */
/* ESTILOS PARA EL SLIDER PRINCIPAL */
/* ---------------------------------------------------- */
.slider-principal { display: block;	position: relative;	width: 100%; z-index: 1; }
.slider-principal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slick-dots { position: absolute;	width: 100%; margin: 0; padding: 0; list-style: none; text-align: center; z-index: 100; }
.slick-dots li { background-color: #bdbdbd; border-radius: 50%; width: 10px; height: 10px; display: inline-block; margin: 0 5px; cursor: pointer; transition: background-color 0.3s ease; }
.slick-dots li button, .slick-dots li button:before { display: none; }
.slick-dots li.slick-active { background-color: #ffd500; }
.slider-wrapper .slick-dots { bottom: 25px; }

/* ---------------------------------------------------- */
/* REGLAS PARA EL DISEÑO DEL GRID Y FANCYBOX */
/* ---------------------------------------------------- */
.galeria-container { display: grid; gap: 20px; padding: 20px; grid-template-columns: repeat(1, 1fr); }
.proyecto-galeria { position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.proyecto-galeria a:nth-of-type(n+2) { display: none; }
.imagen-con-zoom { position: relative; width: 100%; }
.imagen-con-zoom img { width: 100%; height: auto; display: block; transition: transform 0.3s ease-in-out; }
.imagen-con-zoom:hover img { transform: scale(1.1); }
.marca-de-agua { position: absolute; bottom: 10px; left: 10px; width: 5vw; max-width: 20px; height: auto; opacity: 0.7; z-index: 10; }
.descripcion-imagen-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); color: #fff; display: flex; justify-content: center; align-items: center; text-align: center; opacity: 0; transition: opacity 0.3s ease-in-out; pointer-events: none; z-index: 1; }
.descripcion-imagen-overlay p { margin: 0; font-size: 1.2rem; padding: 5px; }
.imagen-con-zoom:hover .descripcion-imagen-overlay { opacity: 1; }
.fancybox-container { overflow: hidden !important; }
.fancybox-content { background-color: transparent !important; padding: 0 !important; border-radius: 10px !important; }
.fancybox-image { position: relative !important; border: 5px solid #ffffff !important; border-radius: 10px !important; transform: none !important; box-sizing: content-box !important; }
.fancybox-image-wrap { overflow: hidden !important; border-radius: 10px !important; }
.fancybox-image::after { content: ''; position: absolute; bottom: 20px; left: 20px; width: 60px; height: 60px; background-image: url('../images/favicon.png'); background-size: contain; background-repeat: no-repeat; background-position: center; opacity: 0.7; z-index: 10; }

/* ---------------------------------------------------- */
/* REGLAS PARA EL DISEÑO RESPONSIVO DEL GRID */
/* ---------------------------------------------------- */
@media (min-width: 768px) { .galeria-container { grid-template-columns: repeat(3, 1fr); } .marca-de-agua { width: 20px; } }
@media (min-width: 1024px) { .galeria-container { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1400px) { .galeria-container { grid-template-columns: repeat(6, 1fr); } }

/* --- SECCIÓN DE DOS COLUMNAS (VERSIÓN LIMPIA Y FINAL) --- */
.two-column-section { display: flex; width: 100%; flex-wrap: wrap; }
section.two-column-section > div.column-left { flex: 1; min-width: 300px; box-sizing: border-box; position: relative; }
.column-left-inner { width: 100%; height: 100%; min-height: 450px; padding: 40px; box-sizing: border-box; background-image: url('../images/frases/frase1.png'); background-color: #ffffff; background-size: cover; background-position: center; background-repeat: no-repeat; display: flex; flex-direction: column; }
.autor-frase { position: absolute; bottom: 20px; right: 20px; font-size: 12px; color: #888888; font-family: 'Ubuntu', sans-serif; font-weight: 400; z-index: 10; }
.column-left-inner .slider-container { flex-grow: 1; display: flex; align-items: center; justify-content: center; }
.text-slider { width: 100%; max-width: 550px; }
section.two-column-section div.column-left .text-slider .slide-text p { font-family: 'Ubuntu', sans-serif; font-size: 2em; font-weight: 700; line-height: 1.4; margin: 0; color: #2d3033 !important; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.column-right { flex: 1; min-width: 300px; box-sizing: border-box; background-color: #f9f9f9; padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.column-right h4 { font-size: 2.5em; font-weight: 700; color: #2d3033; margin-bottom: 10px; }
.column-right .subtitle { font-size: 18px; line-height: 1.6; font-weight: 400; color: #333 !important; margin-bottom: 30px; max-width: 400px; }
.button-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.download-btn { display: inline-block; padding: 12px 28px; background-color: transparent; color: #000; border: 1px solid #000; border-radius: 8px; text-decoration: none; font-weight: 500; font-family: 'Ubuntu', sans-serif; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.download-btn:hover { background-color: #ffd500; border-color: #ffd500; color: #000; }
section.two-column-section > div.column-left .slick-dots { position: absolute; bottom: -160px; right: auto; width: auto; padding: 10; margin: 10; text-align: left; z-index: 10; }
.column-left .slick-dots li { background-color: #ccc; }
.column-left .slick-dots li.slick-active { background-color: #ffd500; }

/* --- Estilos para la sección de Contacto y Footer --- */
.footer-background { background: linear-gradient(to right, #ff5d00 0%, #ffd500 70%); padding: 30px 0 60px 0; }
.map-container { position: relative; width: 100%; height: 450px; }
.map-container iframe { vertical-align: top; }
.contact-overlay { position: absolute; top: 50%; right: 5%; transform: translateY(-50%); width: 300px; padding: 25px; background-color: rgba(0, 0, 0, 0.75); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); color: #fff; }
.contact-overlay h4 { margin-top: 0; font-family: 'Ubuntu', sans-serif; color: #ffd500; font-size: 2rem; font-weight: 400; border-bottom: 1px solid #555; padding-bottom: 10px; margin-bottom: 20px; }
.contact-overlay address { font-style: normal; }
.contact-email { display: flex; align-items: center; text-decoration: none; color: #fff; margin-bottom: 5px; transition: color 0.3s; }
.contact-email:hover { color: #ccc; }
.contact-email img { width: 20px; margin-right: 35px; }
.contact-email span { font-size: 1.2rem; font-weight: bold; }
.contact-overlay small { display: block; margin-left: 55px; color: #bbb; margin-bottom: 25px; }
.social-icons { margin-bottom: 25px; padding-top: 15px; border-top: 1px solid #555; }
.social-icons a { margin-right: 15px; }
.social-icons img { width: 35px; opacity: 0.8; transition: opacity 0.3s; }
.social-icons img:hover { opacity: 1; }
.copyright { margin: 0; font-size: 0.9rem; color: #aaa; line-height: 1.4; }
.location-subtitle { text-align: center; padding-bottom: 30px; }
.location-subtitle h3 { margin: 0; font-size: 0.8rem; color: #FFFFFF; font-weight: 400; letter-spacing: 1px; }

/* --- ESTILOS PARA BOTONES DE GALERÍA ('VER MÁS' Y 'VER MENOS') --- */
.ver-mas-container { text-align: center; padding: 20px 0 40px 0; display: flex; justify-content: center; gap: 15px; }
.ver-mas-btn, .ver-menos-btn { display: inline-block; padding: 12px 28px; background-color: transparent; color: #2d3033; border: 1px solid #2d3033; border-radius: 8px; text-decoration: none; font-family: 'Ubuntu', sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease; }
.ver-mas-btn:hover, .ver-menos-btn:hover { background-color: #ffd500; border-color: #ffd500; transform: translateY(-2px); }

/* ==========================================================================
   CONTROLES PERSONALIZADOS DE FANCYBOX
   ========================================================================== */
.fancybox-custom-controls { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 99999; display: flex; align-items: center; gap: 15px; padding: 8px 15px; background: rgba(0, 0, 0, 0.7); border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); transition: all 0.2s ease-in-out; opacity: 0; animation: fadeInControls 0.3s forwards 0.2s; }
@keyframes fadeInControls { from { opacity: 0; top: -20px; } to { opacity: 1; top: 0; } }
.fancybox-custom-controls .fancybox-toolbar { position: static !important; width: auto !important; display: flex; padding: 0; background: transparent; }
.fancybox-custom-controls .fancybox-infobar { position: static !important; width: auto !important; font-size: 13px; color: #fff; background: transparent; padding: 0; line-height: 1; margin: 0; -webkit-font-smoothing: subpixel-antialiased; white-space: nowrap; text-align: center; }
.fancybox-button { width: 40px; height: 40px; margin: 0 2px; background: transparent; color: #ccc; font-size: 18px; display: flex; justify-content: center; align-items: center; }
.fancybox-button:hover { color: #fff; background: rgba(255, 255, 255, 0.15); border-radius: 5px; }
.fancybox-slide--image .fancybox-content { padding: 0 !important; }
.fancybox-slide { padding-top: 60px; }

/* ==========================================================================
   ESTILOS PARA ANIMACIONES CON GSAP
   ========================================================================== */
.icogrande.anim-title-item { margin: 0; padding: 0; line-height: 0; }
.icogrande.anim-title-item img { display: block; }

/* --- ESTILOS PARA SLIDER RESPONSIVE --- */
.slider-movil { display: none; }
.slider-movil img { width: 100%; height: auto; display: block; }

/* --- ELIMINAR ESPACIO BAJO EL SLIDER --- */
.slider-wrapper { font-size: 0; line-height: 0; }

/* ==========================================================================
   NUEVOS ESTILOS PARA LA SECCIÓN DE REFERENTES
   ========================================================================== */
/* ... (Estilos .referente-carousel-section, .referente-item, modal, etc.) ... */
.referente-carousel-section { padding: 60px 0 80px 0; background-color: #f4f4f4; position: relative; }
.referente-carousel { max-width: 1000px; margin: 0 auto; }
.referente-carousel .slick-slide { padding: 0 15px; height: auto; }
.referente-carousel .slick-list { padding-top: 10px; }
.referente-item { text-align: center; padding: 10px; display: flex !important; flex-direction: column; align-items: center; transition: transform 0.3s ease; cursor: pointer; position: relative; z-index: 2; }
.referente-foto { width: 90px; height: 90px; margin-bottom: 20px; border-radius: 50%; border: 5px solid transparent; transition: border-color 0.3s ease; overflow: hidden; }
.referente-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.referente-info .referente-nombre { font-family: 'Ubuntu', sans-serif; font-size: 1.2rem; font-weight: 700; color: #2d3033; margin: 0 0 5px 0; transition: color 0.3s ease; }
.referente-info .referente-puesto { font-size: 0.9rem; color: #666; margin: 0; min-height: 40px; }
.referente-item:hover .referente-foto { border-color: #ffd500; } .referente-item:hover .referente-nombre { color: #ffd500; }
.referente-carousel-section .slick-arrow { position: absolute; top: 40%; transform: translateY(-50%); z-index: 10; background-color: transparent; box-shadow: none; width: 40px; height: 40px; border: none; }
.referente-carousel-section .slick-arrow:before { color: #555555; font-size: 30px; text-shadow: none; transition: color 0.3s ease; }
.referente-carousel-section .slick-arrow:hover:before { color: #ffd500; }
.referente-carousel-section .slick-prev { left: -15px; } .referente-carousel-section .slick-next { right: -15px; }
.referente-carousel-section .slick-dots { position: relative; bottom: auto; margin-top: 40px; }
.referente-carousel-section .slick-dots li button:before { font-size: 12px; color: #c4c4c4; } .referente-carousel-section .slick-dots li.slick-active button:before { color: #ffd500; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 1050; display: none; }
.modal-container { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.3); z-index: 1051; width: 90%; max-width: 450px; padding: 25px; display: none; }
.modal-cerrar { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 2rem; color: #aaa; cursor: pointer; line-height: 1; } .modal-cerrar:hover { color: #2d3033; }
.modal-header { display: flex; align-items: center; gap: 20px; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid #eee; }
.modal-foto { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.modal-foto img { width: 100%; height: 100%; object-fit: cover; }
.modal-nombre { margin: 0; font-size: 1.5rem; font-weight: 700; color: #2d3033; }
.modal-detalles-body p { color: #333; margin: 0 0 10px 0; } .modal-detalles-body .modal-cargo-completo { font-weight: 500; } .modal-detalles-body .modal-relacion { font-style: italic; color: #777; font-size: 0.9rem; margin-bottom: 20px; }
.modal-contacto { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.modal-contacto .modal-link { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #333; font-size: 0.9rem; transition: color 0.3s ease; }
.modal-contacto .modal-link:hover { color: #ffd500; }
.modal-contacto .modal-link img { height: 20px; width: 20px; opacity: 0.9; transition: opacity 0.3s ease; }
.modal-contacto .modal-link:hover img { opacity: 1; }
.modal-contacto .modal-link span { font-size: 0.9rem; line-height: 1; }

/* --- AJUSTES DE ESPACIO ENTRE GALERÍAS --- */
section[id^="projects-"] { padding-top: 30px; margin-bottom: 0; }
section[id^="projects-"] .section-header { margin-top: 20px; padding-bottom: 20px; }

/* --- AJUSTE GALERÍAS --- */
.gallery-disclaimer { text-align: center; font-size: 12px; color: #6c757d; padding: 0 20px 40px 20px; max-width: 800px; margin: 0 auto; }


/* ==========================================================================
   BLOQUE ÚNICO DE MEDIA QUERIES (RESPONSIVE DESIGN <= 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* --- Estilos de Fancybox --- */
    .fancybox-slide { padding: 15px !important; }
    .fancybox-image { box-sizing: border-box !important; }

    /* --- Estilos de Dos Columnas --- */
    .column-left-inner { min-height: 350px; padding: 40px 20px; }
    section.two-column-section div.column-left .text-slider .slide-text p { font-size: 1.5em; }
    .column-right h4 { font-size: 2em; }
	section.two-column-section > div.column-left .slick-dots { position: absolute; bottom: -105px; right: auto; width: auto; padding: 10; margin: 10; text-align: left; z-index: 10; }

    /* --- Estilos de Footer y Contacto --- */
    .contact-overlay { position: relative; width: 100%; right: auto; top: auto; transform: none; border-radius: 0; box-sizing: border-box; }
    .map-container { height: auto; }
    .location-subtitle h3 { font-size: 1.4rem; padding: 0 15px; }

    /* --- Estilos de Títulos de Sección (h2) --- */
    h2 { flex-direction: column; gap: 10px; text-align: center; }
    .icogrande.anim-title-item { margin-bottom: 10px; }

    /* --- Estilos de Sliders --- */
    .slider-principal { display: none; }
    .slider-movil { display: block; }

} /* FIN DEL BLOQUE @media (max-width: 768px) */


/* AJUSTES RESPONSIVE ADICIONALES (SI HABÍA OTROS @media) */
@media (max-width: 1100px) {
    .referente-carousel-section .slick-prev { left: 10px; }
    .referente-carousel-section .slick-next { right: 10px; }
}