/* 
Following these conventions for responsiveness :
  - Assuming mobile-first design
  - Using min-width media queries for larger screens at these breakpoints:
  - Mobile: up to 767px
  - Tablet: 768px to 1199px (min-width: 768px)
  - Desktop: 1200px and above (min-width: 1200px)
*/

/* Colores */
:root {
    --color-azul-1: #033E60;
    --color-azul-2: #2CB8C7;
    --color-azul-3: #ADDBE3;
    --color-verde-1: #2E9967;
    --color-verde-2: #5CB77D;
    --color-amarillo-1: #EEEB90;
    --color-amarillo-2: #EEDF55;
    --color-amarillo-3: #E5B341;
    --color-naranjo-1: #DD9217;
    --color-naranjo-2: #CF653D;
    --color-naranjo-3: #FF5722;
}

/* Colores de fondo personalizados */
/* Adding !important to overwrite styles in style.css */
.bg-azul-1 {
    background-color: var(--color-azul-1) !important;
}

.bg-azul-2 {
    background-color: var(--color-azul-2) !important;
}

.bg-azul-3 {
    background-color: var(--color-azul-3) !important;
}

.bg-verde-1 {
    background-color: var(--color-verde-1) !important;
}

.bg-verde-2 {
    background-color: var(--color-verde-2) !important;
}

.bg-amarillo-1 {
    background-color: var(--color-amarillo-1) !important;
}

.bg-amarillo-2 {
    background-color: var(--color-amarillo-2) !important;
}

.bg-amarillo-3 {
    background-color: var(--color-amarillo-3) !important;
}

.bg-naranjo-1 {
    background-color: var(--color-naranjo-1) !important;
}

.bg-naranjo-2 {
    background-color: var(--color-naranjo-2) !important;
}   

/* Colores de texto personalizados */
.txt-azul-1 {
    color: var(--color-azul-1) !important;
}
    
.txt-azul-2 {
    color: var(--color-azul-2) !important;
}

.txt-azul-3 {
    color: var(--color-azul-3) !important;
}

.txt-verde-1 {
    color: var(--color-verde-1) !important;
}

.txt-verde-2 {
    color: var(--color-verde-2) !important;
}

.txt-amarillo-1 {
    color: var(--color-amarillo-1) !important;
}

.txt-amarillo-2 {
    color: var(--color-amarillo-2) !important;
}

.txt-amarillo-3 {
    color: var(--color-amarillo-3) !important;
}

.txt-naranjo-1 {
    color: var(--color-naranjo-1) !important;
}

.txt-naranjo-2 {
    color: var(--color-naranjo-2) !important;
} 

.txt-naranjo-3 {
    color: var(--color-naranjo-3) !important;
}

.txt-naranjo-2-title {
    color: var(--color-naranjo-2);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/*--------------------------------------------------------------
# Overall
--------------------------------------------------------------*/

.osn-section {
    padding: 40px 0;
}


/* Extra-small, small and Medium Viewports */
@media (max-width: 767px) {
    /* .container {
        width: 100%;
        padding: 0px 10px; 
        margin: 0px 5px;
    }  */


    .txt-naranjo-2 {
        font-size: 1.2rem !important;
   }

    .txt-naranjo-2-title {
        font-size: 1.2rem;
    }

    /* .row {
    margin: 0 !important;
    padding: 0 !important;
  } */

    p {
        font-size: 0.9rem;
        line-height: 1.5;
  }

    .osn-section {
        padding: 20px 0;
    }
}


/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

@media (max-width: 767px) {
    .header-container{
        width: 100%;
        padding: 0px 10px;
        margin: 0px 5px;
    }
} 


#header.header-scrolled {
    background: rgba(173, 219, 227, 0.8);
    padding: 0;
}

#header.header-scrolled-alt {
    background: rgba(3, 62, 92, 0.8) !important;
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/

#page-title {
    width: 100%;
    background: url("../img/assets_maqueta/montanas_titulo.png");
    background-size: cover;
    background-position: center;
    padding: 0px;
    margin-top: 130px; /* top-m:30px + header:100px + bottom-m:px*/
}

#page-title h2 {
    color: var(--color-azul-1);
    margin-top: 3%;
    /* Reducido de 5% */
    margin-left: 5%;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.8rem;
    /* Nuevo tamaño base */
    position: relative;
}

/* Móviles - Modifica la media query existente */
@media (max-width: 767px) {
    #page-title {
        margin-top: 130px; 
        /* padding: 0px ; */
        /* Aumentado de 15px */
        /* background-position: center; */
        /* Mejor adaptación móvil */
    }

    #page-title h2 {
        font-size: 1.4rem !important;
        margin-top: 2% !important;
        /* Ajuste fino vertical */
        margin-left: 0;
        /* Centrado en móviles */
        padding-left: 15px;
        border-left: 3px solid var(--color-naranjo-2);
        /* Usando tu variable de color */
        width: 90%;
        margin: 0 auto !important;
        /* Centrado horizontal */
    }
}


/*--------------------------------------------------------------
# main
--------------------------------------------------------------*/

/* Maintain a minimum padding of 15px on sides for all viewports */
main {
    padding: 0px 15px;
}

/* Tablet */
/* @media (min-width: 768px) {
    main {
        margin-top: 0;
    }
} */

/* Desktop */
/* @media (min-width: 1200px) {
    main {
        margin-top: 0; 
    }
} */

/*--------------------------------------------------------------
# Nav Bar
--------------------------------------------------------------*/
.mobile-nav-active .mobile-nav a {
    color: #CF653D !important;
}


/*--------------------------------------------------------------
# Hero -- Not really used 
--------------------------------------------------------------*/

#hero {
    height: 40vh !important;
    background-position: 0% 200% !important;
}

#hero-obs {
    width: 100%;
    height: 10vh;
    background: #fff;
    background-size: cover;
    position: relative;
    margin-bottom: -90px;
    border: 1px solid;
}

/*--------------------------------------------------------------
# ridge-separator
--------------------------------------------------------------*/

#ridge-separator {
    width: 100%;
    background: url("../img/assets_maqueta/montanas_vector.png");
    background-size: cover;
    background-position: center;
    margin-bottom: 3%;
    padding: 3rem 0;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

.inline-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}


/*--------------------------------------------------------------
# Teams
--------------------------------------------------------------*/

.team-group {
    margin-bottom: 2rem;
}

/*--------------------------------------------------------------
# Methodology 
--------------------------------------------------------------*/

.osn-figure {
    text-align: center;
    max-width: 85%;
    margin: 20px auto;
    display: block;
}
.osn-figure-img {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.osn-figure-caption {
    padding: 0 15px;
}

@media (max-width: 767px) {
    .osn-figure {
        max-width: 95%;
    }

    .osn-figure-img {
        padding: 15px;
    }

    .osn-figure-caption {
        padding: 0 10px;
        font-size: 0.85rem;
    }
}

/*--------------------------------------------------------------
# Plots (Explorer)
--------------------------------------------------------------*/
/* Plots section horizontal scroll containment */
#plots {
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    max-width: 100vw;
}

#plots>div {
    min-width: 100%;
    justify-content: center;
}

@media (max-width: 576px) {
    #plots>div {
        justify-content: flex-start;
    }
}

.plot-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    flex: 1 1 auto;
    min-width: 320px;
    max-width: 520px;
}

.plot-title {
    font-weight: 600;
    color: var(--color-azul-1);
    text-transform: none;
    padding: 10px 12px;
    margin: 0;
    border-left: 4px solid var(--color-naranjo-2);
    border-bottom: 1px solid #eee;
}

.plot-area {
    background: #fafafa;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    height: 100%;
}

.plot-panel {
    margin-left: 0px;
    margin-right: 0px;
}


.plot-group {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}


.plot-map-menu {
    flex: 0 0 360px;
    min-width: 360px;
}

/* Right column flexes until it hits its own minimum; then it wraps under column 1 */
.plot-grid {
    flex: 1 1 720px;
    min-width: 720px;
    max-width: 1400px;
}

/* Override Bootstrap row styling within plot-grid */
.plot-grid-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Cards within plot-grid get consistent margins */
.plot-grid .plot-card,
.plot-grid .plot-leaflet-card {
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 12px;
}

/* Leaflet card needs same base structure as plot-card */
.plot-leaflet-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    flex: 1 1 100%;
    min-width: 560px;
    max-width: 100%;
}

.plot-leaflet-area {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    height: 100%;
}

/*--------------------------------------------------------------
# Forms (Cuencas)
--------------------------------------------------------------*/

.basin-selector-container {
    max-width: 600px;
    margin: 0 auto;
    /* Centrado horizontal */
    padding: 10px;
    font-family: 'Segoe UI', sans-serif;
}

.basin-select {
    width: 100%;
    padding: 8px 16px;
    margin-top: 4px;
    border: 2px solid #4a90e2;
    border-radius: 8px;
    background-color: #f8f9fa;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a90e2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

.basin-select:focus {
    outline: none;
    border-color: #2c6cb0;
    box-shadow: 0 0 0 3px rgba(44, 108, 176, 0.1);
}

.basin-select:hover {
    outline: none;
    border-color: #2c6cb0;
    box-shadow: 0 0 0 3px rgba(44, 108, 176, 0.1);
    /* background-color: #e3f2fd; */
} 

.basin-select-label {
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
}

/*--------------------------------------------------------------
# Leaflet
--------------------------------------------------------------*/

/* Style the slider */
.leaflet-sbs-range {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.leaflet-sbs-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    width: 4px;
    background-color: #fff;
    pointer-events: none;
    z-index: 999;
}



/* Leaflet container styles for basin plots */
.basin-leaflet {
    /* flex: 1 1 100% !important; */
    position: relative;
    overflow: hidden;
    min-width: 300px;
    max-width: 100%;
    /* width: 1200px !important; */
    width: 100%;
    height: 600px;
    /* display: block; */
    box-sizing: border-box;
}

.basin-leaflet .leaflet-control-zoom {
    margin-left: 10px !important;
    margin-top: 10px !important;
}







