:root {
  --primary-color: #4a6fa5;
  --secondary-color: #166088;
  --overlay-dark: rgba(0, 0, 0, 0.5);
  --overlay-primary: rgba(22, 96, 136, 0.75); /* Semi-transparent primary color */
  --overlay-gradient: linear-gradient(90deg,rgba(31, 153, 57, 0.87) 0%, rgba(0, 212, 255, 0.26) 100%);
}

/* DIDASCALIA FOTOS */
.didascalia {
    font-size: 0.7rem;
    font-style: italic;
}
/* BARRA MENU SUPERIOR */
#navbar-top {
    background-color: #f5ff7d;
    height: 2.5rem;
    padding: 0;
}

.orcid {
	color:#a2c937;
}


/* SIMBOLO DE LUPA PARA LAS BUSQUEDAS */
.hero-section .form-submit::before {
    display: inline-block;
    content: "";
    color: rgb(255,255,255);
    background-image: url('/sites/default/files/images/binoculars-fill.svg');
    background-repeat: no-repeat;
    -webkit-background-size: 1rem 1rem;
    background-size: 1rem 1rem;
    background-position: 0 0.25rem;
    width: 1.5rem;
    height: 1.2rem;
}


/* START ESTILOS PARA FULL WIDHT HERO */
/* Target the specific aside wrapper */
aside.container.section.clearfix[role="complementary"] {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  position: relative;
}

/* Override Bootstrap container class */
aside.container.section.clearfix[role="complementary"] .container,
aside.container.section.clearfix[role="complementary"] .container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
}

/* Remove any left/right margins from parent containers */
main .container aside.container.section.clearfix[role="complementary"] {
  margin-left: -15px !important;
  margin-right: -15px !important;
  width: calc(100% + 30px) !important;
}

/* Ensure the hero block inside is also full width */
#block-bootstrap-subtheme-heroinicial,
#block-bootstrap-subtheme-heroinicial .container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* HERO FIXES - Desktop & Mobile */

/* 1. DESKTOP CENTERING */
@media (min-width: 769px) {
  /* Center the entire hero content */
  .hero-section > div:not(.hero-overlay-dark) {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
  
  /* Center the row */
  .hero-section .row.align-items-center {
    justify-content: center !important;
    width: 100% !important;
  }
  
  /* Center the column */
  .hero-section .col-lg-8 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    float: none !important;
  }
  
  /* Center the content */
  .hero-content {
    text-align: center !important;
    width: 100% !important;
    max-width: 800px !important; /* Optional: limit width for better readability */
  }
  
  /* Center features */
  .hero-section .row.mt-5.pt-3 {
    justify-content: center !important;
  }
}

/* 2. MOBILE SPACING */
@media (max-width: 768px) {
  /* Add breathing room */
  .hero-section {
    padding: 3rem 1rem !important;
    min-height: auto !important;
    display: block !important;
  }
  
  /* Ensure content is visible */
  .hero-content {
    padding: 1rem 0 !important;
    position: relative !important;
    z-index: 2 !important;
  }
  
  /* Adjust title spacing */
  .hero-title {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    font-size: 2rem !important;
  }
  
  /* Adjust subtitle */
  .hero-subtitle {
    margin-bottom: 2rem !important;
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
  }
  
  /* Stack features with spacing */
  .feature-item {
    margin-bottom: 2.5rem !important;
    padding: 0 1rem !important;
  }
  
  /* Reduce icon size */
  .feature-icon .display-3 {
    font-size: 2.5rem !important;
  }
  
  /* Adjust feature icons container */
  .hero-section .row.mt-5.pt-3 {
    margin-top: 2rem !important;
    padding-top: 1rem !important;
  }
}

/* 3. COMMON FIXES (both desktop & mobile) */
/* Ensure text is readable */
.hero-title, .hero-subtitle {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7) !important;
}

/* Ensure overlay doesn't interfere */
.hero-overlay-dark {
  mix-blend-mode: multiply !important;
}






/* FIN ESTILOS PARA FULL WIDHT HERO */


.biblio-text {
	font-size: 0.9rem;
	color: #73726E;
	margin-bottom: 0px;
}


.breadcrumb {
    border: none;
    background: none;
    text-transform: none;
    font-weight: 300;
    font-size: 0.8rem;
}
.breadcrumb a {
    text-decoration: none;
}
.navbar-main {
	background-color: #93c54b !important;
}
.navbar-brand {
    color: var(--bs-gray-800);
}
.navbar-dark .nav-link {
    color: var(--bs-gray-800);
}




/* Hero Section Styles */
        .hero-section {
            position: relative;
            height: 100vh;
            min-height: 600px;
            background-image: url('/sites/default/files/images/hero-ant-scale.jpg');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            display: flex;
            align-items: center;
            overflow: hidden;
        }
        
        /* Option 1: Solid Color Overlay */
        .hero-overlay-solid {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--overlay-primary); /* Semi-transparent blue */
        }
        
        /* Option 2: Gradient Overlay (currently active) */
        .hero-overlay-gradient {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--overlay-gradient);
        }
        
        /* Option 3: Dark Overlay */
        .hero-overlay-dark {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
        }
        
        /* Option 4: Dual-tone Overlay */
        .hero-overlay-dual {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to right, 
                rgba(22, 96, 136, 0.8) 0%, 
                rgba(22, 96, 136, 0.6) 50%, 
                rgba(74, 111, 165, 0.8) 100%);
        }
        
        /* Hero content styling */
        .hero-content {
            position: relative;
            z-index: 2;
            color: white;
            padding: 2rem;
            max-width: 800px;
        }
        
        .hero-title {
            font-size: 3.5rem;
            font-weight: 800;
            margin-bottom: 1.5rem;
            text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
        }
        
        .hero-subtitle {
            font-size: 1.5rem;
            margin-bottom: 2rem;
            font-weight: 300;
            line-height: 1.6;
        }
        
        .hero-btn {
            padding: 0.8rem 2.5rem;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 50px;
            transition: all 0.3s ease;
            margin-right: 1rem;
            margin-bottom: 1rem;
        }
        
        .hero-btn-primary {
            background-color: white;
            color: var(--secondary-color);
            border-color: white;
        }
        
        .hero-btn-primary:hover {
            background-color: #f8f9fa;
            border-color: #f8f9fa;
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
            color: var(--secondary-color);
        }
        
        .hero-btn-outline {
            color: white;
            border: 2px solid white;
            background-color: transparent;
        }
        
        .hero-btn-outline:hover {
            background-color: white;
            color: var(--secondary-color);
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }
        
        /* Overlay selector controls */
        .overlay-selector {
            position: absolute;
            bottom: 20px;
            right: 20px;
            z-index: 10;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 8px;
            padding: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            max-width: 300px;
        }
        
        .overlay-selector h6 {
            color: var(--secondary-color);
            margin-bottom: 10px;
            font-weight: 600;
        }
        
        .overlay-option {
            display: inline-block;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            margin-right: 8px;
            cursor: pointer;
            border: 2px solid white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        
        .overlay-option.active {
            transform: scale(1.2);
            border: 2px solid #333;
        }
        
        .option-solid {
            background-color: var(--overlay-primary);
        }
        
        .option-gradient {
            background: var(--overlay-gradient);
        }
        
        .option-dark {
            background-color: rgba(0, 0, 0, 0.65);
        }
        
        .option-dual {
            background: linear-gradient(to right, 
                rgba(22, 96, 136, 0.8) 0%, 
                rgba(22, 96, 136, 0.6) 50%, 
                rgba(74, 111, 165, 0.8) 100%);
        }
        
        /* Feature icons styling */
        .feature-icon {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: rgba(255, 255, 255, 0.9);
        }
        
        .feature-item {
            text-align: center;
            padding: 1.5rem;
        }
        
        /* Contrast warning */
        .contrast-warning {
            background-color: rgba(255, 255, 255, 0.2);
            border-left: 4px solid #ffc107;
            padding: 10px 15px;
            margin-top: 20px;
            border-radius: 0 4px 4px 0;
        }
        
        /* Responsive adjustments */
        @media (max-width: 992px) {
            .hero-title {
                font-size: 2.8rem;
            }
            
            .hero-subtitle {
                font-size: 1.3rem;
            }
            
            .overlay-selector {
                max-width: 250px;
                bottom: 10px;
                right: 10px;
            }
        }
        
        @media (max-width: 768px) {
            .hero-section {
                height: 80vh;
                min-height: 500px;
                background-attachment: scroll;
            }
            
            .hero-title {
                font-size: 2.2rem;
            }
            
            .hero-subtitle {
                font-size: 1.1rem;
            }
            
            .hero-content {
                padding: 1.5rem;
            }
            
            .hero-btn {
                display: block;
                width: 100%;
                margin-bottom: 1rem;
            }
            
            .overlay-selector {
                position: relative;
                bottom: auto;
                right: auto;
                margin: 20px auto;
                max-width: 100%;
            }
        }
        
        @media (max-width: 576px) {
            .hero-section {
                height: 70vh;
                min-height: 450px;
            }
            
            .hero-title {
                font-size: 1.8rem;
            }
            
            .hero-subtitle {
                font-size: 1rem;
            }
        }
        
        /* Additional content for scrolling */
        .content-section {
            padding: 5rem 0;
        }
        
        .section-title {
            color: var(--secondary-color);
            margin-bottom: 3rem;
            font-weight: 700;
        }