:root {
    --verde-principal: #24560b;
    --amarillo-principal: #fac010;
    --verde-claro: rgba(36, 86, 11, 0.1);
    --amarillo-claro: rgba(250, 192, 16, 0.1);
    --amarillo-medio: rgba(250, 192, 16, 0.5);
    --verde-hover: #1a3f08;
    --amarillo-hover: #e6ad0e;
}
@media (min-width: 992px) {
    .masthead h1,
    .masthead .h1 {
        font-size: 8rem;
    }
}
.text-climagro {
    font-family:
        "Varela Round",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Segoe UI Symbol",
        "Noto Color Emoji";
    font-size: 2.5rem;
    /* line-height: 2.5rem; */
    letter-spacing: 0.8rem;
    background: linear-gradient(90deg, #24560b 0%, #fac010 100%);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    text-align: center;
}
.btn-go {
    background: linear-gradient(
        90deg,
        rgba(250, 192, 16, 0.6),
        rgba(36, 86, 11, 0.4)
    );
    color: white;
    border: none;
    padding: 0.5rem 2rem;
    font-size: 1rem;
    letter-spacing: 0.1rem;
    border-radius: 10px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition:
        background 0.3s ease,
        transform 0.2s ease;
    cursor: pointer;
    backdrop-filter: blur(2px);
}
.btn-go:hover {
    background: linear-gradient(
        90deg,
        rgba(250, 192, 16, 0.7),
        rgba(36, 86, 11, 0.5)
    ); /* apenas más opaco */
    transform: scale(1.01); /* casi imperceptible */
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2); /* sombra un poquito más definida */
    color: white;
}
.img-climagro-logotype {
    width: 200px;
}
.signup-section {
    position: relative;
    overflow: hidden;
}
.signup-section .bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5;
}
.signup-section > .container {
    position: relative;
    z-index: 1;
}
.signup-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1; /* encima del video, debajo del contenido */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.8) 80%,
        #000 100%
    );
    pointer-events: none;
}
.btn-newsletter {
    background: linear-gradient(
        90deg,
        rgba(250, 192, 16, 0.6),
        rgba(36, 86, 11, 1)
    );
    color: white;
    border: none;
    padding: 0.5rem 2rem;
    font-size: 1rem;
    letter-spacing: 0.1rem;
    border-radius: 10px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition:
        background 0.3s ease,
        transform 0.2s ease;
    cursor: pointer;
    backdrop-filter: blur(2px);

    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-newsletter:hover {
    background: linear-gradient(
        90deg,
        rgba(250, 192, 16, 0.7),
        rgba(36, 86, 11, 0.5)
    ); /* apenas más opaco */
    transform: scale(1.01); /* casi imperceptible */
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2); /* sombra un poquito más definida */
    color: white;
}
.bg-dark-custom {
    background: linear-gradient(
        135deg,
        rgba(36, 86, 11, 0.95),
        rgba(36, 86, 11, 0.85)
    );
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(250, 192, 16, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.btn-primary {
    background: linear-gradient(
        45deg,
        #fac010,
        #f4b000
    ) !important; /* Amarillo en lugar de verde */
    color: #24560b !important;
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(45deg, #f4b000, #e8a000) !important;
    color: #1a4008 !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(250, 192, 16, 0.4) !important;
}
.btn-secondary {
    background: rgba(
        255,
        255,
        255,
        0.15
    ) !important; /* Fondo semi-transparente */
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #fac010 !important;
    border-color: #fac010 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
}
.btn-outline-light {
    color: #fac010 !important;
    border-color: #fac010 !important;
    background: transparent !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
.btn-outline-light:hover,
.btn-outline-light:focus {
    background: #fac010 !important;
    color: #24560b !important;
    border-color: #fac010 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(250, 192, 16, 0.3) !important;
}
.btn-warning {
    background: linear-gradient(45deg, #fac010, #f4b000) !important;
    color: #24560b !important;
    border: none !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
.btn-warning:hover,
.btn-warning:focus {
    background: linear-gradient(45deg, #f4b000, #e8a000) !important;
    color: #1a4008 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(250, 192, 16, 0.4) !important;
}
.dropdown-menu-dark {
    background: rgba(26, 64, 8, 0.95) !important; /* Verde más oscuro */
    border: 1px solid rgba(250, 192, 16, 0.3) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
    padding: 4px 6px !important;
}
.dropdown-item {
    color: white !important;
    padding: 0.75rem 1.25rem !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    margin: 2px 0 !important;
}
.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(250, 192, 16, 0.2) !important;
    color: #fac010 !important;
}
.dropdown-item.disabled {
    color: rgba(255, 255, 255, 0.5) !important;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.5rem 1rem;
}
.navbar-brand img {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #fac010;
    border-radius: 12px;
    padding: 8px;
    transition: all 0.3s ease;
    filter: brightness(1.1);
}
.navbar-brand img:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #f4b000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(250, 192, 16, 0.3);
}
.fix-padding-dropdown {
    padding: 0.75rem 2rem;
}
/* Asegurar z-index correcto para el navbar */
.navbar.fixed-top {
    z-index: 1030;
}

/*navbar responsive*/

/* ========================================
   TABLET: < 992px (colapsa el navbar)
   ======================================== */
@media (max-width: 991.98px) {
    /* El menú colapsado ocupa todo el ancho */
    .navbar-collapse {
        padding: 12px 0 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 6px;
    }

    /* Stack vertical: Explorador + Créditos arriba, Auth abajo */
    .navbar-collapse > div {
        width: 100%;
    }

    /* Fila superior: Explorador de mapas + Créditos */
    .navbar-collapse > div:first-child {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 10px;
    }

    .navbar-collapse > div:first-child .btn,
    .navbar-collapse > div:first-child .dropdown {
        flex: 1 1 auto;
    }

    .navbar-collapse > div:first-child .btn {
        width: 100%;
    }

    /* Dropdown de explorador ocupa todo el ancho */
    .navbar-collapse .dropdown .btn {
        width: 100%;
        text-align: left;
    }

    /* Fila inferior: Auth (ms-auto pierde efecto en mobile) */
    .navbar-collapse > div.ms-auto {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-left: 0 !important;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* Login + Registro ocupan el ancho disponible */
    .navbar-collapse .btn-outline-light,
    .navbar-collapse .btn-warning,
    .navbar-collapse .btn-outline-warning {
        flex: 1 1 auto;
        text-align: center;
    }

    /* Nombre del usuario */
    .navbar-collapse .text-light.small {
        width: 100%;
        text-align: left !important;
        padding-bottom: 4px;
        opacity: 0.75;
    }

    /* Dropdown administración ocupa todo el ancho */
    .navbar-collapse > div.ms-auto .dropdown {
        width: 100%;
        margin-right: 0 !important;
    }

    .navbar-collapse > div.ms-auto .dropdown .btn {
        width: 100%;
        text-align: left;
    }

    /* Dropdown menus en mobile: ancho completo */
    .navbar-collapse .dropdown-menu {
        width: 100%;
        position: static !important;
        transform: none !important;
    }
}

/* ========================================
   MÓVIL PEQUEÑO: < 480px
   ======================================== */
@media (max-width: 480px) {
    /* Banner de incidencias más compacto */
    .climagro-announcement {
        font-size: 11px;
        padding: 5px 0;
    }

    .announcement-message {
        /* Truncar mensaje largo en pantallas muy pequeñas */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .navbar-collapse {
        padding: 10px 0 6px;
    }

    /* Botones de auth en columna */
    .navbar-collapse > div.ms-auto {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar-collapse .btn-outline-light,
    .navbar-collapse .btn-warning {
        width: 100%;
    }
}

/*end navbar responsive*/

.dropdown-section-title {
    padding: 0.5rem 1rem 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    cursor: default;
    user-select: none;
}

.submenu-item {
    padding-left: 1.8rem;
}
/* Contenedor principal del mapa */
.main-content {
    position: relative;
    width: 100%;
}
#map {
    height: 100dvh; /* Valor inicial, se ajustará con JavaScript */
    width: 100%;
    position: relative;
    z-index: 1;
}
/* Noticias */
.news-title {
    margin: 10px 0;
    font-size: 1.2rem;
    text-align: center;
    flex-grow: 1;
}
.img-thumbnail {
    width: 50%;
    height: 150px;
    object-fit: cover;
}
.slick-prev:before,
.slick-next:before {
    color: #1a4008 !important;
}
/* Detalle de la noticia */
.news-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--verde-principal);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--amarillo-principal);
    border-radius: 2px;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.breaking-news {
    background: linear-gradient(
        135deg,
        var(--verde-principal),
        var(--verde-hover)
    );
    color: white;
    padding: 8px 0;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.breaking-badge {
    background: var(--amarillo-principal);
    color: var(--verde-principal);
    font-weight: bold;
    padding: 5px 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breaking-text {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    padding-left: 20px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.featured-news {
    position: relative;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-news:hover {
    transform: translateY(-5px);
}

.featured-news img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-news:hover img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 30px 30px;
    color: white;
}

.featured-category {
    background: var(--amarillo-principal);
    color: var(--verde-principal);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.featured-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.featured-meta {
    font-size: 0.9rem;
    opacity: 0.9;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.03);
}

.news-content {
    padding: 25px;
}

.news-category {
    background: var(--verde-principal);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.4;
    margin-bottom: 12px;
    text-decoration: none;
}

.news-title:hover {
    color: var(--verde-principal);
    text-decoration: none;
}

.news-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #8b949e;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    color: var(--verde-principal);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--verde-hover);
}

.trending-sidebar {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.trending-title {
    color: var(--verde-principal);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.trending-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--amarillo-principal);
    border-radius: 2px;
}

.trending-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.trending-item:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 0 -15px;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-number {
    background: var(--amarillo-principal);
    color: var(--verde-principal);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.trending-content h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
    margin-bottom: 5px;
}

.trending-content small {
    color: #8b949e;
    font-size: 0.8rem;
}

.load-more-btn {
    background: var(--verde-principal);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 40px;
}

.load-more-btn:hover {
    background: var(--verde-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(36, 86, 11, 0.3);
    color: white;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .featured-news {
        height: 350px;
    }

    .featured-title {
        font-size: 1.4rem;
    }

    .breaking-text {
        font-size: 0.9rem;
    }
}
/* Cards del equipo */
.team-member {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(36, 86, 11, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.team-member::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: all 0.5s ease;
    z-index: 0;
}
.team-member:hover::before {
    left: 0;
}
.team-member:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
    border-color: var(--verde-principal);
}
.team-member > * {
    position: relative;
    z-index: 1;
}
/* Avatar del miembro */
.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(
        135deg,
        var(--verde-principal) 0%,
        var(--amarillo-principal) 100%
    );
    padding: 4px;
    box-shadow: 0 8px 24px rgba(36, 86, 11, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}
.member-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}
.team-member:hover .member-avatar {
    transform: scale(1.1);
    box-shadow: 0 12px 36px rgba(36, 86, 11, 0.4);
}
.team-member:hover .member-avatar img {
    transform: scale(1.05);
}
/* Información del miembro */
.member-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--verde-principal);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}
.member-position {
    font-size: 1rem;
    color: var(--amarillo-principal);
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.member-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.member-roles {
    list-style: none;
    padding: 0;
    margin: 10px 0 15px 0;
}

.member-roles li {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 6px;
    position: relative;
    padding-left: 16px;
}

.member-roles li::before {
    position: absolute;
    left: 0;
    font-weight: bold;
}
/* Enlaces sociales */
.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--verde-principal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}
.social-link:hover {
    background: var(--amarillo-principal);
    color: var(--verde-principal);
    transform: translateY(-3px) scale(1.1);
}
/* Responsive */
@media (max-width: 768px) {
    .team-member {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .member-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}
/* Animaciones de entrada */
/* @keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */
.team-member {
    animation: fadeInUp 0.8s ease forwards;
}
.team-member:nth-child(1) {
    animation-delay: 0.1s;
}
.team-member:nth-child(2) {
    animation-delay: 0.2s;
}
.team-member:nth-child(3) {
    animation-delay: 0.3s;
}
.team-member:nth-child(4) {
    animation-delay: 0.4s;
}

/* Cards de contacto */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--verde-principal),
        var(--amarillo-principal)
    );
    width: 60px;
    margin: 1rem auto;
}
.contact .card {
    /* background: linear-gradient(135deg, var(--verde-claro) 0%, var(--amarillo-claro) 100%); */
    border: 1px solid rgba(36, 86, 11, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}
.contact .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--verde-principal) 0%,
        var(--amarillo-principal) 100%
    );
}
.contact .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.contact .contact-card-icon {
    color: var(--verde-principal);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.contact .contact-card-title {
    color: var(--verde-principal);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.contact-section {
    background: #000;
    padding: 4rem 0;
}
.contact-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.contact-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.contact-card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--verde-principal);
}
.contact-section-title {
    color: white;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 300;
}
/* loading.css */

/* Fondo que cubre toda la pantalla mientras carga */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(
        255,
        255,
        255,
        0.95
    ); /* Blanco semi-transparente para un look limpio */
    z-index: 9999; /* Asegura que esté por encima de todo */
    display: flex; /* Para centrar el loader */
    justify-content: center; /* Centrado horizontal */
    align-items: center; /* Centrado vertical */
    transition:
        opacity 0.7s ease-out,
        visibility 0.7s ease-out; /* Transición suave al ocultar */
    opacity: 1;
    visibility: visible;
}

/* Ocultar el loader (se añade con JavaScript) */
#loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Contenedor de la animación */
.loader {
    width: 60px; /* Ancho total del loader */
    height: 60px; /* Alto total del loader */
    display: flex; /* Para organizar los elementos internos */
    justify-content: space-between; /* Espacio entre los elementos */
    align-items: center;
}

/* Las formas individuales que animan */
.loader-inner {
    width: 25px; /* Ancho de cada forma */
    height: 25px; /* Alto de cada forma */
    border-radius: 50%; /* Para hacerlos círculos */
    transform: translateY(0); /* Estado inicial para la animación */
    animation: bounce 1.2s infinite ease-in-out; /* Aplicar la animación */
}

/* Retraso de animación para el segundo círculo */
.loader-inner:nth-child(2) {
    animation-delay: -0.6s; /* Inicia a mitad de ciclo del primero */
}

/* Definición de la animación 'bounce' */
@keyframes bounce {
    0%,
    100% {
        transform: translateY(0); /* Arriba */
    }
    50% {
        transform: translateY(-20px); /* Abajo */
    }
}
/* Map */
.sidebar-climagro h5 {
    color: #fac010 !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-align: center;
}
.sidebar-climagro .btn {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    ) !important;
    color: white !important;
    border: 1px solid rgba(250, 192, 16, 0.4) !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 0.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 2px;
    padding: 6px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.sidebar-climagro .btn:hover {
    background: linear-gradient(
        145deg,
        rgba(250, 192, 16, 0.2),
        rgba(250, 192, 16, 0.1)
    ) !important;
    border-color: #fac010 !important;
    box-shadow: 0 4px 12px rgba(250, 192, 16, 0.2);
    transform: translateY(-1px);
}
.sidebar-climagro .btn-primary {
    background: linear-gradient(45deg, #fac010, #f4b000) !important;
    color: #24560b !important;
    border: 1px solid #fac010 !important;
    box-shadow: 0 4px 15px rgba(250, 192, 16, 0.3);
    font-weight: 600 !important;
}
.sidebar-climagro .btn-group {
    margin-bottom: 15px !important;
    gap: 2px;
}
/* Pestaña del sidebar */
.sidebar-tab {
    position: fixed;
    top: 50vh;
    width: 20px;
    height: 60px;
    background-color: #36672f;
    border-radius: 0 6px 6px 0;
    border-top: 1px solid #2a5424;
    border-right: 1px solid #2a5424;
    border-bottom: 1px solid #2a5424;
    border-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: left 0.25s ease;
    /* left se define dinámicamente */
}
.sidebar-tab:hover {
    background-color: #2a5424;
}
/* Estilos para input range - Todas las opciones */
.sidebar-climagro .form-control-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    outline: none;
    border: 1px solid rgba(250, 192, 16, 0.3);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin: 10px 0;
}
.sidebar-climagro .form-control-range:hover {
    border-color: rgba(250, 192, 16, 0.6);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 10px rgba(250, 192, 16, 0.3);
}
/* Webkit Slider Thumb */
.sidebar-climagro .form-control-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #fac010, #f4b000);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(250, 192, 16, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-climagro .form-control-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 0 4px rgba(250, 192, 16, 0.3),
        0 0 20px rgba(250, 192, 16, 0.2);
}
.sidebar-climagro .form-control-range::-webkit-slider-thumb:active {
    transform: scale(0.95);
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.5),
        0 0 0 6px rgba(250, 192, 16, 0.4);
}
/* Mozilla Slider Thumb */
.sidebar-climagro .form-control-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #fac010, #f4b000);
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(250, 192, 16, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Mozilla Slider Track */
.sidebar-climagro .form-control-range::-moz-range-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(250, 192, 16, 0.3);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
/* MEDIA QUERIES RESPONSIVE */
/* Tablets grandes (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .sidebar-climagro h5 {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    .sidebar-climagro .btn {
        font-size: 0.75rem;
        padding: 5px 8px;
    }
}
/* Tablets (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .sidebar-climagro h5 {
        font-size: 0.75rem;
        margin-bottom: 8px;
        letter-spacing: 0.3px;
    }
    .sidebar-climagro .btn {
        font-size: 0.7rem;
        padding: 4px 6px;
        margin: 1px;
    }
    .sidebar-climagro .btn-group {
        margin-bottom: 12px !important;
    }
    .sidebar-climagro .sidebar-divider {
        margin: 15px 0;
    }
    .sidebar-climagro .form-check-label {
        font-size: 0.8rem;
    }
}
/* Móviles grandes (375px - 480px) */
@media (max-width: 480px) and (min-width: 376px) {
    .sidebar-climagro h5 {
        font-size: 0.7rem;
        margin-bottom: 6px;
        letter-spacing: 0.2px;
    }
    .sidebar-climagro .btn {
        font-size: 0.65rem;
        padding: 3px 5px;
        border-radius: 4px !important;
    }
    .sidebar-climagro .btn-group .btn {
        margin-bottom: 2px;
        width: 100%;
    }
    .sidebar-climagro .form-control-range {
        height: 5px;
    }
    .sidebar-climagro .form-control-range::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }
    .sidebar-climagro .form-check-label {
        font-size: 0.75rem;
    }
}
/* Móviles pequeños (hasta 375px) */
@media (max-width: 375px) {
    .sidebar-climagro h5 {
        font-size: 0.65rem;
        margin-bottom: 5px;
        letter-spacing: 0.1px;
    }
    .sidebar-climagro .btn {
        font-size: 0.6rem;
        padding: 2px 4px;
        border-radius: 3px !important;
    }
    .sidebar-climagro .btn-group .btn {
        margin-bottom: 1px;
        width: 100%;
    }
    .sidebar-climagro .sidebar-divider {
        margin: 10px 0;
        height: 1px;
    }
    .sidebar-climagro .form-control-range {
        height: 4px;
        margin: 6px 0;
    }
    .sidebar-climagro .form-control-range::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
    }
    .sidebar-climagro .form-check {
        margin-bottom: 6px;
    }
    .sidebar-climagro .form-check-label {
        font-size: 0.7rem;
        margin-left: 6px;
    }
}
/* Calendar en pronóstico */
#calendar-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    background: rgba(40, 40, 40, 0.65);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    /*border: 1px solid rgba(255, 255, 255, 0.2);*/

    padding: 6px 8px;
    border-radius: 12px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    display: flex;
    gap: 4px;
    z-index: 999;
}

.calendar-day {
    background-color: transparent;
    border: none;
    border-radius: 8px;
    padding: 5px 14px;
    font-weight: 500;
    font-size: 13px;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.day-label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.day-date {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.2;
    transition: color 0.25s ease;
    text-shadow: none;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.calendar-day:hover .day-date {
    color: rgba(255, 255, 255, 0.85);
}

.calendar-day.active {
    background: rgba(68, 113, 64, 0.95);
    color: white;
    text-shadow: none;
    box-shadow: 0 4px 12px rgba(68, 113, 64, 0.45);
    transform: scale(1.03);
}

.calendar-day.active .day-label,
.calendar-day.active .day-date {
    color: white;
    text-shadow: none;
}
/* Media query: pantallas pequeñas */
@media (max-width: 480px) and (min-width: 376px) {
    #calendar-buttons {
        bottom: 50px;
        gap: 4px;
    }
    .calendar-day {
        position: relative;
        font-size: 0;
    }
    .calendar-day::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: bold;
        display: inline-block;
        text-align: center;
    }
}
@media (max-width: 375px) {
    #calendar-buttons {
        bottom: 0px;
        gap: 4px;
    }
    #calendar-buttons button {
        padding: 10px;
    }
    .calendar-day {
        position: relative;
        font-size: 0;
    }
    .calendar-day::before {
        content: attr(data-label);
        font-size: 8px;
        font-weight: bold;
        display: inline-block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .day-label,
    .day-date {
        font-size: 0;
    }
}
/* Modal */
/* .modal-dialog-scrollable .modal-content {
  background-color: var(--amarillo-principal);
} */

/* Créditos */
.extraControl {
    background-color: transparent !important;
}
.extraControl button {
    text-decoration: none !important;
}
/* Popups */
.popup-wms .icon {
    font-size: 16px;
    line-height: 1;
}
/* Estilo del contenido del popup */
.popup-content {
    font-family: "Arial", sans-serif;
    color: var(--verde-principal);
    padding: 10px;
    border-radius: 5px;
}

.popup-content h4 {
    margin-top: 0;
    font-size: 18px;
    color: #c19a00;
}

.popup-content p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.4;
}
.pixel_value {
    color: black;
    font-size: 8px;
}
/* Animación pulso para destacar visualmente en el mapa */
.radar-container {
    position: relative;
}
.radar-container::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radarPulse 1.5s infinite;
    z-index: -1;
}
@keyframes radarPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.6;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}
/* BottomSheeet */
[data-vsbs-sheet] {
    --vsbs-background: #f7f8f9;
    /* background: linear-gradient(90deg, #36672f, #fac010); */
    /* background:
    linear-gradient(90deg, rgba(054, 103, 47, 0.6), rgba(54, 103, 47, 0.4)),
    url("../assets/img/forecast-weather.28d237ea7913.png"); */
    /* background-size: cover, cover; */
    /* background-position: center, center; */
    /* background-repeat: no-repeat, no-repeat; */

    --vsbs-border-radius: 16px;
    /* --vsbs-padding-x: 20px; */
    --vsbs-border-color: #1e470a;
    --vsbs-handle-background: #fac010;
    --vsbs-shadow-color: rgba(0, 0, 0, 0.25);
    --vsbs-backdrop-bg: rgba(0, 0, 0, 0.6);
    --vsbs-max-width: 98%;
    color: #fff;
}

[data-vsbs-sheet] a {
    color: #fac010;
    font-weight: bold;
    text-decoration: underline;
}

[data-vsbs-sheet] hr {
    border-color: #fac010;
    opacity: 0.6;
}
/* MapLibre Popup de pronóstico */
/* .popup-weather-content {
  background: linear-gradient(145deg, #36672f, #fac010);
  border-radius: 12px;
} */

.popup-weather-content {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.popup-weather-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../assets/img/forecast-weather.28d237ea7913.png");
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.popup-weather-content::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        145deg,
        rgba(54, 103, 47, 0.3),
        rgba(250, 192, 16, 0.2)
    );
    z-index: -1;
}

/* Tarjetas de cada día */
.weather-card {
    border-radius: 1rem;
    border: none;
    background: rgba(248, 249, 250, 0.8);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    width: 100%;
    height: 180px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(2px);
}

.weather-card .card-body {
    padding: 8px;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    flex: 1;
}

.weather-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

/* Iconos para el popup */
.weather-icon-custom-popup {
    color: #4a90e2;
    font-size: 2.5em;
}

.wind-dir-icon {
    color: #666;
    font-size: 1.2rem;
}

/* Iconos para el bottom sheet */
/* .weather-icon-custom-bottom {
  color: #ffffff;
  font-size: 2.5em;
} */

/* Estilos específicos para íconos */
.weather-icon-custom-bottom {
    color: #fff;
    font-size: 24px !important; /* Tamaño consistente */
    line-height: 1 !important;
    display: block;
}

/* Iconos para el detalle de predio */
.weather-icon-custom-property {
    color: #24560b;
    font-size: 2em;
}

/* Título principal */
.weather-title {
    color: #666;
}

.weather-title-info {
    font-size: 1rem;
}

/* Título y subtítulo */

.card-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: #333;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px !important;
}

.card-subtitle {
    font-size: 0.75rem;
    color: #888;
    height: 15px;
    margin-bottom: 8px !important;
}

.weather-icon {
    width: 50px !important;
    height: 50px !important;
    object-fit: contain;
    flex-shrink: 0;
    margin: 4px 0;
}

/* Temperaturas */
.temp-range {
    font-size: 0.85rem;
    margin: 6px 0;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    white-space: nowrap;
}

.slash-temp {
    color: gray;
}

.temp-min {
    color: #3498db;
    font-weight: bold;
    display: inline-block;
    min-width: 25px;
    text-align: right;
}

.temp-max {
    color: #e74c3c;
    font-weight: bold;
    display: inline-block;
    min-width: 25px;
    text-align: left;
}

/* Precipitación */
.precipitation {
    font-size: 0.75rem;
    color: #414141;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Viento */
.wind {
    font-size: 0.75rem;
    color: #666;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Popup container de MapLibre */
.maplibregl-popup-content {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    width: 620px !important;
}

/* Background verde climagro */
.bg-climagro {
    background-color: #24560b;
}

/* Nuevo estilo del sidebar */
/* Header */
.sidebar-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    text-align: center;
    margin-bottom: 1rem;
}

.header-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #fac010, transparent);
    margin-bottom: 2rem;
    opacity: 0.6;
}

/* Secciones de Variables */
.variable-section {
    margin-bottom: 1.5rem;
}

.variable-section label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.1rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

.variable-section label i {
    color: #fac010; /* Acento en los iconos */
}

/* Segmented Control (Los botones tipo píldora) */
.segmented-control {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-pill {
    flex: 1;
    border: none;
    background: transparent;
    color: #aaa;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Estado Activo (Ajusta 'active' según lo que retorne tu getButtonClass) */
/* Asumiendo que getButtonClass devuelve 'active' o similar */
.btn-pill.active {
    background: #fac010;
    color: #000;
    box-shadow: 0 4px 12px rgba(250, 192, 16, 0.3);
}

/* Este contenedor imita exactamente el marco de los botones dobles */
.single-pill-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; /* Para que el botón interno se estire */
}

/* El botón dentro del contenedor */
.full-width {
    width: 100%;
    flex: 1;
}

/* Reutilizamos el estilo de activo para que brille igual */
.btn-pill.active {
    background: #fac010;
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(250, 192, 16, 0.3);
}

.full-width {
    width: 100%;
}

/* Slider de Opacidad */
.opacity-wrapper {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pestaña de apertura (Tab) */
.tab {
    position: absolute;
    top: 50%;
    right: -24px;
    width: 24px;
    height: 50px;
    background: rgba(10, 25, 12, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 0 8px 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fac010;
}

/* Popup */
.maplibregl-popup.fires-popup .maplibregl-popup-content {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0px !important;
    width: 300px !important;
}

.popup-fires-content {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.popup-fires-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: aliceblue;
    z-index: -2;
}

.popup-fires-content::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        145deg,
        rgba(54, 103, 47, 0.3),
        rgba(250, 192, 16, 0.2)
    );
    z-index: -1;
}
