@import url(//fonts.googleapis.com/css?family=Montserrat:400,700);
/**
 * Cumbres contra el Cáncer - Sistema de Diseño CSS
 * Colores corporativos y tipografía Antique Olive Std.
 */

:root {
    /* Paleta Corporativa */
    --cumbres-verde-puro: rgb(135, 180, 30);  /* #87B41E */
    --cumbres-verde-bosque: rgb(70, 115, 80); /* #467350 */
    --cumbres-azul-investigacion: rgb(0, 100, 165); /* #0064A5 */
    
    /* Variaciones y Neutrales */
    --cumbres-white: #ffffff;
    --cumbres-dark: #212529;
    --cumbres-gray-light: #f8f9fa;

    /* Tipografía */
    --cumbres-font-main: 'Antique Olive Std', 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--cumbres-font-main);
    color: var(--cumbres-dark);
    line-height: 1.6;
    background-color: var(--cumbres-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cumbres-font-main);
    font-weight: 700;
    color: var(--cumbres-verde-bosque);
}

.navbar-cumbres {
    background-color: var(--cumbres-azul-investigacion);
    padding: 1rem 0;
}

.hero-header {
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)), url('../images/header2.png') no-repeat center center / 100% 100% !important;
    /* background-size: cover;  Merged into shorthand to avoid override issues */
    /* Aspect Ratio for 1920x800 image */
    aspect-ratio: 1920/800;
    width: 100%;
    height: auto;
    /* min-height: 500px;  Removed to allow adaptation */
    display: flex;
    align-items: center;
    border-bottom: 8px solid var(--cumbres-verde-puro);
}

.hero-logo-overlay {
    max-height: 250px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.hero-text-content {
    color: var(--cumbres-dark); /* Cambiado a oscuro para contraste con el degradado blanco */
    text-shadow: none;
}

.btn-cumbres-primary {
    background-color: var(--cumbres-verde-puro);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cumbres-primary:hover {
    background-color: var(--cumbres-verde-bosque);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cumbres-logo {
    height: 60px;
    width: auto;
    display: block;
}

/* Sección de Sponsors */
.section-sponsors {
    background: transparent;
    padding: 4rem 0;
}

.sponsor-logo {
    max-height: 80px;
    width: auto;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.sponsor-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.2);
}

/* Accesibilidad */
a:focus, button:focus {
    outline: 3px solid var(--cumbres-verde-puro) !important;
    outline-offset: 2px;
}

/* Header Contact & Social */
.header-contact a, 
.header-social a {
    transition: color 0.3s ease;
}

.header-contact a:hover, 
.header-social a:hover {
    color: var(--cumbres-verde-puro) !important;
}

.header-social i {
    font-size: 1.1rem;
}

/* 
 * Footer Styles 
 */
.footer-cumbres {
    background-color: #1a1a1a !important; /* Más oscuro que bg-dark estándar */
    font-size: 0.9rem;
}

.footer-cumbres h5 {
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--cumbres-white);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.transition-link {
    transition: all 0.3s ease;
    display: inline-block;
}

.transition-link:hover {
    color: var(--cumbres-verde-puro) !important;
    transform: translateX(5px);
}

.text-cumbres-green {
    color: var(--cumbres-verde-puro);
}

.footer-social a {
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-social a:hover {
    color: var(--cumbres-verde-puro) !important;
    transform: translateY(-3px);
}

.footer-cumbres hr {
    opacity: 0.1;
}

/* 
 * Main Menu Styles 
 */
.navbar-cumbres .nav-link {
    color: var(--cumbres-white) !important;
    font-family: 'Antique Olive Std', sans-serif; /* Asegurar fuente */
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

/* Efecto Hover Subrayado Animado */
.navbar-cumbres .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--cumbres-verde-puro);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(-50%);
}

.navbar-cumbres .nav-link:hover::after,
.navbar-cumbres .nav-link.active::after {
    width: 80%;
}

.navbar-cumbres .nav-link:hover {
    color: var(--cumbres-white) !important; /* Mantener blanco */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* 
 * Submenu Animations & Glassmorphism 
 */
.dropdown-menu {
    background: rgba(33, 37, 41, 0.95); /* Fondo oscuro semi-transparente */
    backdrop-filter: blur(10px); /* Efecto Glassmorphism */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 1rem 0;
    margin-top: 10px !important; /* Separación del menú principal */
    
    /* Estado inicial para animación */
    display: block; /* Necesario para animar, pero oculto visualmente */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Estado Hover (Mostrar) */
.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    color: var(--cumbres-gray-light);
    font-family: 'Antique Olive Std', sans-serif;
    padding: 0.7rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: transparent;
    color: var(--cumbres-verde-puro);
    transform: translateX(5px);
}

/* Flecha del dropdown */
.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Zoom effect for blog cards */
.zoom-effect {
    transition: transform 0.5s ease;
}

.card:hover .zoom-effect {
    transform: scale(1.05);
}

/* 
 * Featured Links Section 
 */
.featured-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

.card-img-zoom {
    transition: transform 0.5s ease;
}

.featured-card:hover .card-img-zoom {
    transform: scale(1.1);
}

.text-cumbres-blue {
    color: var(--cumbres-azul-investigacion);
}

.btn-cumbres-outline {
    border: 2px solid var(--cumbres-verde-puro);
    color: var(--cumbres-verde-puro);
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
}

.btn-cumbres-outline:hover {
    background-color: var(--cumbres-verde-puro);
    color: white;
    transform: translateX(5px);
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

/* 
 * Featured Links Style 2 (Vertical Cards) 
 */
.featured-card-style-2 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card-style-2:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
}

.featured-card-style-2 .card-img-top {
    transition: transform 0.5s ease;
}

.featured-card-style-2:hover .card-img-top {
    transform: scale(1.05);
}

.card-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--cumbres-gray-light);
    transition: all 0.3s ease;
    text-decoration: none;
}

.card-social a:hover {
    background-color: var(--cumbres-azul-investigacion);
    color: white !important;
    transform: translateY(-3px);
}

/* 
 * Global Typography Enforcement
 * Note: 'Antique Olive Std' font files are not present in the theme.
 * Ensure users have it installed locally or add @font-face rules.
 */
body, h1, h2, h3, h4, h5, h6, 
p, span, a, li, button, 
input, textarea, select, 
.btn, .card-title, .nav-link, 
.dropdown-item, .card-text {
    font-family: 'Antique Olive Std', sans-serif !important;
}

/* 
 * Colabora Video Section 
 */
.section-colabora {
    min-height: 60vh;
    position: relative;
    background-color: var(--cumbres-dark); /* Fallback color */
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    opacity: 0.6; /* Adjust opacity for overlay blend */
}

/* Fallback video container logic needed if video fails? 
   Ideally just let the fallback image inside video tag handle it. 
*/

.overlay-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)); 
    z-index: 1;
}

.section-colabora .container {
    padding-top: 4rem;
    padding-bottom: 4rem;
    position: relative;
    z-index: 2; /* High z-index to sit on top of video/overlay */
}

.animate-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-100 { animation-delay: 0.2s; }
.delay-200 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-colabora-video {
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-colabora-video:hover {
    transform: scale(1.05);
    background-color: transparent;
    border-color: var(--cumbres-white);
    color: var(--cumbres-white);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

/* Ensure text is readable */
.section-colabora h2, .section-colabora p {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: white !important; /* Force white text over video */
}

/* 
 * Colabora Video Section 
 */
.section-colabora {
    min-height: 60vh;
    position: relative;
    background-color: var(--cumbres-dark);
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    opacity: 0.6;
}

.overlay-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)); 
    z-index: 1;
}

.section-colabora .container {
    padding-top: 4rem;
    padding-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.animate-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-100 { animation-delay: 0.2s; }
.delay-200 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-colabora-video {
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-colabora-video:hover {
    transform: scale(1.05);
    background-color: transparent;
    border-color: var(--cumbres-white);
    color: var(--cumbres-white);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.section-colabora h2, .section-colabora p {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: white !important;
}

/* 
 * Mobile Responsiveness 
 */
@media (max-width: 768px) {
    .hero-logo-overlay {
        max-height: 80px; /* Reducir más para ajustar a la altura proporcional */
        margin-left: 1rem;
    }

    .hero-header {
        /* Eliminar min-height para respetar aspect-ratio */
        min-height: auto !important; 
        /* Mantener el aspect-ratio global */
        /* aspect-ratio: auto; REMOVED */
        background-position: center center !important;
    }
}


/* Estilos banner proyecto */

.static-slider10 {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  background-size: cover;
  background-position: center center;
  min-height: 600px !important;
  display: flex !important;
  align-items: flex-end !important;
  padding-bottom: 50px;
  position: relative !important;
}

.section-separator {
    height: 4px;
    background-color: var(--cumbres-azul-investigacion);
    margin: 3rem auto;
    width: 80%;
    max-width: 500px;
    border-radius: 2px;
}

.static-slider10::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 40%, transparent 100%);
    z-index: 1;
}

.static-slider10 .container {
    position: relative;
    z-index: 2;
}
.static-slider10 .title {
  font-weight: 700;
  font-size: 48px;
  line-height: 50px;
}

.static-slider10 .subtitle {
    line-height: 24px;
}

@media (max-width: 900px) {
  .static-slider10 .title {
    font-size: 40px;
    line-height: 45px;
  }
}

.static-slider10 .btn-md {
    padding: 15px 45px;
    font-size: 16px;
    background-color: var(--cumbres-verde-puro);
    border-color: var(--cumbres-verde-puro);
    color: var(--cumbres-white);
}

.static-slider10 .btn-md:hover {
    background-color: var(--cumbres-verde-bosque);
    border-color: var(--cumbres-verde-bosque);
    color: var(--cumbres-white);
}

.static-slider10 .badge {
	line-height: 21px;
}

.static-slider10 .badge-inverse {
	background: var(--cumbres-azul-investigacion);
}

.static-slider10 .op-8 {
	opacity: 0.8;
}

/* Estilos Sección Historia */
.bg-cumbres-blue {
    background-color: var(--cumbres-azul-investigacion) !important;
}

.text-cumbres-green {
    color: var(--cumbres-verde-bosque) !important;
}

.btn-cumbres-primary {
    background-color: var(--cumbres-verde-puro);
    color: var(--cumbres-white);
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-cumbres-primary:hover {
    background-color: var(--cumbres-verde-bosque);
    color: var(--cumbres-white);
    transform: translateY(-2px);
}

.historia-img {
    transition: transform 0.3s ease;
    border: 3px solid var(--cumbres-white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.historia-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

/* Estilos Tarjetas Vivencias */
.vivencia-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.vivencia-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.vivencia-card:hover .fas.fa-quote-left {
    transform: scale(1.1) rotate(-5deg);
    color: var(--cumbres-verde-puro) !important;
    opacity: 0.2 !important;
    transition: all 0.3s ease;
}

.vivencia-card:hover .bg-cumbres-blue {
    background-color: var(--cumbres-verde-puro) !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.vivencia-card .bg-cumbres-blue,
.vivencia-card .fas.fa-quote-left {
    transition: all 0.3s ease;
}