:root {

    --primary: #a6e358;
    --primary-fixed: #b7f568;
    --on-primary: #203700;
    --secondary: #82cfff;
    --deep-navy: #0A0C10;
    --surface: #101415;
    --on-surface: #e0e3e5;
    --glass-stroke: rgba(255, 255, 255, 0.12);
    --surface-container: #1d2022;
    --gris-texto: #b7b7b793;
}

html {
    height: 100%;
}

body {
    /*
    background-color: var(--surface);
    background-image: url('assets/img/fondo aggricultura.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: var(--on-surface);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    */

    background-color: var(--deep-navy);

    background-image:
        radial-gradient(
            ellipse at 20% 50%,
            rgba(130, 207, 255, 0.15) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse at 80% 30%,
            rgba(183, 245, 104, 0.10) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse at 60% 80%,
            rgba(200, 160, 255, 0.10) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse at 60% 80%,
            rgba(200, 160, 255, 0.10) 0%,
            transparent 50%
        ),
        url('../img/fondo/TINAJONES-1536x1152.jpg');
   
    /*
    Para un efecto más cinematográfico puedes activar:*/
     background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--on-surface);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}


h1,
h2,
h3,
h4,
h5,
h6,
p .font-heading {
    font-family: 'Montserrat', sans-serif;
}

.lista-empresas li::marker {
    color: #a6e358;
}

p {
    text-align: justify;
    color: white;
    text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.85),
    0 6px 18px rgba(0, 0, 0, 0.65),
    0 0 35px rgba(0, 0, 0, 0.35);
}


/* ==========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================== */

.text-primary-custom {
    color: var(--primary);
}

.text-secondary-custom {
    color: var(--secondary);
}

.text-on-surface-custom {
    color: var(--on-surface);
}

.text-surface-container-custom {
    color: var(--surface-container);
}

.text-deep-navy-custom {
    color: var(--deep-navy);
}

.bg-primary-custom {
    background-color: var(--primary);
    color: var(--on-primary);
}

.bg-primary-custom:hover {
    background-color: var(--primary-fixed);
}

.bg-secondary-custom {
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.bg-secondary-custom:hover {
    background-color: var(--secondary);
    color: var(--deep-navy);
}

.bg-terceary-custom {
    color: var(--gris-texto);
}


/* ==========================================================================
   ICONS
   ========================================================================== */

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}


/* ==========================================================================
   GLASSMORPHISM
   ========================================================================== */

.glass-card {
    background: rgba(48, 88, 167, 0.329);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
}

.ambient-glow {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ambient-glow:hover {
    box-shadow:
        0 20px 40px rgba(166, 227, 88, 0.15),
        0 0 0 1px rgba(166, 227, 88, 0.10);
    transform: translateY(-4px);
    background: rgba(62, 61, 61, 0.278);
}


/* ==========================================================================
   CUSTOM NAV
   ========================================================================== */

.custom-navbar {
    background: rgba(48, 88, 167, 0.274) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-stroke) !important;
    border-radius: 50px;
    top: 1.5rem;
    z-index: 1030;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.custom-navbar .navbar-nav {
    gap: 1rem !important;
}

@media (min-width: 1200px) {
    .custom-navbar .navbar-nav {
        gap: 1.5rem !important;
    }
}

.custom-navbar .btn-custom-pill {
    padding: 0.5rem 1.5rem;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 50px;
    line-height: 1.2;
}

@media (min-width: 992px) {
    .btn-contacto-desktop {
        margin-right: 1.5rem !important;
    }
}


/* Responsive navbar collapse on mobile */

@media (max-width: 991.98px) {

    .custom-navbar {
        border-radius: 24px !important;
        width: calc(100% - 24px) !important;
        padding: 0.75rem 1.25rem !important;
    }

    .custom-navbar .navbar-collapse {
        background: rgba(48, 88, 167, 0.22);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 18px;
        padding: 1.25rem;
        margin-top: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    }

    .custom-navbar .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
}


.custom-navbarsx {
    background: rgba(15, 56, 143, 0.286);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


.nav-link {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    transition:
        color 0.3s,
        background-color 0.3s,
        box-shadow 0.3s;
}

.nav-link:hover {
    color: var(--secondary);
}

.nav-link.active {
    color: var(--on-primary);
    background-color: var(--primary);
    border-radius: 999px;
    box-shadow: 0 0 0 2px rgba(166, 227, 88, 0.18);
    padding: 0.35rem 0.9rem;
}

.nav-link.active:hover {
    color: var(--on-primary);
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-custom-pill {
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    padding: 0.5rem 1.5rem;
    transition:
        transform 0.2s ease-in-out,
        background-color 0.3s,
        color 0.3s;
}

.btn-custom-pill:hover {
    transform: scale(0.95);
}

.hover-primary:hover {
    background-color: var(--primary) !important;
    color: var(--on-primary) !important;
}


/* ==========================================================================
   MODAL CONVOCATORIA
   ========================================================================== */

.table {
    margin-bottom: 0;
    border: none;
}

.table td {
    background: transparent !important;
}


/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 6rem;
}

.hero-bg-overlay {
/*
    background: linear-gradient(to bottom, rgba(10, 51, 133, 0.9), rgba(6, 117, 36, 0.09), rgba(8, 33, 84, 0.548));
  */
background: radial-gradient(
    ellipse at center,
    rgba(5, 20, 40, 0.55) 0%,
    rgba(5, 20, 40, 0.28) 60%,
    rgba(5, 20, 40, 0) 85%
    );    
    filter:blur(8px);  
    z-index: 1;
    opacity: 0.8;
}

.hero-bg-img {
    opacity: 0.6;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #fff;
    /*
    text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.85),
    0 6px 18px rgba(0, 0, 0, 0.65),
    0 0 35px rgba(0, 0, 0, 0.35);
    text-shadow:
    0 3px 6px rgba(0,0,0,.9),
    0 8px 25px rgba(0,0,0,.6);
    */
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(5, 20, 40, 0.55) 0%,
    rgba(5, 20, 40, 0.28) 45%,
    rgba(5, 20, 40, 0) 75%
  );
  z-index: -1;
}
.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgb(255, 255, 255);
}

.shadow-primary {
    box-shadow: 0 0 30px rgba(166, 227, 88, 0.4);
}


/* ==========================================================================
   TIMELINE
   ========================================================================== */

.timeline-item {
    position: relative;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--surface-container);
    border: 2px solid;
    position: absolute;
    left: -32px;
    top: 0;
    z-index: 2;
}

.timeline-line {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--glass-stroke);
    z-index: 1;
}


/* ==========================================================================
   FORMS
   ========================================================================== */

.custom-input {
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 0;
}

.custom-input:focus {
    background-color: transparent;
    border-bottom-color: var(--primary);
    box-shadow: none;
    color: white;
}

.custom-input-search:focus {
    outline: none;
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 1px var(--secondary) !important;
    color: white;
}


/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--deep-navy);
}

::-webkit-scrollbar-thumb {
    background: #323537;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}


/* ==========================================================================
   SCROLL MARGINS
   ========================================================================== */

#nosotros {
    scroll-margin-top: 6rem;
}

#areas {
    scroll-margin-top: 3rem;
}

#noticias {
    scroll-margin-top: 3rem;
}

#contacto {
    scroll-margin-top: 5rem;
}


/* ==========================================================================
   FACEBOOK
   ========================================================================== */

#fb-root {
    border-radius: 12px;
    overflow-y: hidden;
    width: 50%;
    height: 38rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.fb-page {
    border-radius: 12px;
    overflow-y: hidden;
}


/* ==========================================================================
   GALERÍA SLIDER
   ========================================================================== */

#carouselGaleria {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

#carouselGaleria .carousel-item img {
    transition: transform 0.6s ease-in-out;
}

#carouselGaleria:hover .carousel-item.active img {
    transform: scale(1.02);
}

#carouselGaleria .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--on-surface);
    opacity: 0.5;
    transition: all 0.3s ease;
}

#carouselGaleria .carousel-indicators .active {
    width: 24px;
    border-radius: 5px;
    background-color: var(--primary) !important;
    opacity: 1;
    box-shadow: 0 0 8px var(--primary);
}

#carouselGaleria .carousel-control-prev,
#carouselGaleria .carousel-control-next {
    width: 8%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#carouselGaleria:hover .carousel-control-prev,
#carouselGaleria:hover .carousel-control-next {
    opacity: 1;
}


/* ==========================================================================
   SCROLL MARGINS FOR NEW SECTIONS
   ========================================================================== */

#galeria-institucional,
#resumen-institucional,
#videos-institucionales,
#calendario-eventos {
    scroll-margin-top: 5rem;
}

#videos-institucionales iframe {
    border: none;
    background-color: #000;
}


/* ==========================================================================
   DARK GLASS CARD
   ========================================================================== */

.glass-card-dark {
    background: rgba(4, 12, 30, 0.85) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 0 15px 45px -10px rgba(0, 0, 0, 0.75);
    transition: all 0.3s ease;
}


/* ==========================================================================
   CUSTOM INTERACTIVE CALENDAR
   ========================================================================== */

.calendar-card {
    background: rgba(10, 25, 47, 0.45) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.calendar-grid-day-name {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-family: var(--font-headings), sans-serif;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 8px;
    column-gap: 4px;
}

.calendar-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
    position: relative;
    padding: 3px 2px;
    border-radius: 8px;
    transition: all 0.25s ease;
    user-select: none;
}

.calendar-cell-empty {
    opacity: 0.18;
}

.calendar-day-num-box {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-headings), sans-serif;
    transition: all 0.2s ease;
}

.calendar-cell.is-today .calendar-day-num-box {
    border: 2px solid var(--secondary) !important;
    box-shadow: 0 0 15px var(--secondary) !important;
}

.calendar-cell.is-today:not(.has-event) .calendar-day-num-box {
    color: var(--secondary);
    background: rgba(130, 207, 255, 0.1);
}


/* Event Types */

.calendar-cell.has-event {
    cursor: pointer;
}

.calendar-cell.has-event:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.calendar-cell.event-blue .calendar-day-num-box {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
}

.calendar-cell.event-green .calendar-day-num-box {
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(22, 163, 74, 0.6);
}

.calendar-cell.event-orange .calendar-day-num-box {
    background: #ea580c;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(234, 88, 12, 0.6);
}

.calendar-cell.event-red .calendar-day-num-box {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.6);
}


/* Underline Indicator Lines */

.calendar-event-line {
    width: 18px;
    height: 3px;
    border-radius: 2px;
    margin-top: 6px;
    margin-bottom: 4px;
}

.event-blue .calendar-event-line {
    background-color: #3b82f6;
}

.event-green .calendar-event-line {
    background-color: #22c55e;
}

.event-orange .calendar-event-line {
    background-color: #f97316;
}

.event-red .calendar-event-line {
    background-color: #ef4444;
}


/* Day labels */

.calendar-event-text {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 2px;
}

.event-blue .calendar-event-text {
    color: #93c5fd;
}

.event-green .calendar-event-text {
    color: #86efac;
}

.event-orange .calendar-event-text {
    color: #fdba74;
}

.event-red .calendar-event-text {
    color: #fca5a5;
}


/* ==========================================================================
   CUSTOM GLASS MODAL
   ========================================================================== */

.glass-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 9, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.glass-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.glass-modal-container {
    max-width: 550px;
    width: 100%;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-modal-overlay.active .glass-modal-container {
    transform: scale(1);
}


@media (min-width: 992px) {

    .border-lg-end {
        border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
}


/* ==========================================================================
   FLOATING FIREWORKS BUTTON
   ========================================================================== */

.fireworks-floating-btn-wrapper {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 99990;
    display: flex;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fireworks-btn-round {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(48, 88, 167, 0.32) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35),
        0 0 16px rgba(255, 255, 255, 0.12);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    color: #ffffff;
    user-select: none;
    outline: none;
    padding: 0;
    margin: 0;
}

.fireworks-btn-round .material-symbols-outlined {
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.fireworks-btn-round:hover {
    transform: scale(1.15) rotate(8deg);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(255, 255, 255, 0.35);
    background: rgba(48, 88, 167, 0.45) !important;
}

.fireworks-btn-round:active {
    transform: scale(0.92);
}

.fireworks-btn-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.6;
    animation: fireworksPulse 2s infinite ease-out;
    pointer-events: none;
}

@keyframes fireworksPulse {

    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}


/* ==========================================================================
   GLASS CARD THEMES FOR FLOATING BUTTON
   ========================================================================== */

.fireworks-theme-fiestas_patrias {
    border-color: rgba(239, 68, 68, 0.8) !important;
    color: #ef4444;
    box-shadow:
        0 8px 24px rgba(220, 38, 38, 0.35),
        0 0 15px rgba(239, 68, 68, 0.25);
}

.fireworks-theme-aniversario {
    border-color: rgba(234, 179, 8, 0.8) !important;
    color: #facc15;
    box-shadow:
        0 8px 24px rgba(37, 99, 235, 0.35),
        0 0 15px rgba(234, 179, 8, 0.3);
}

.fireworks-theme-ano_nuevo {
    border-color: rgba(250, 204, 21, 0.9) !important;
    color: #fde047;
    box-shadow:
        0 8px 24px rgba(234, 179, 8, 0.45),
        0 0 18px rgba(255, 215, 0, 0.4);
}

.fireworks-theme-eventos {
    border-color: rgba(236, 72, 153, 0.8) !important;
    color: #f472b6;
    box-shadow:
        0 8px 24px rgba(139, 92, 246, 0.35),
        0 0 15px rgba(236, 72, 153, 0.3);
}

.fireworks-theme-custom {
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff;
}


/* ==========================================================================
   FLOATING HOVER LABEL BADGE
   ========================================================================== */

.fireworks-btn-label {
    position: absolute;
    left: 54px;
    top: 50%;
    transform: translateY(-50%) translateX(-8px);
    background: rgba(48, 88, 167, 0.42);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.fireworks-floating-btn-wrapper:hover .fireworks-btn-label {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}


@media (max-width: 576px) {

    .fireworks-floating-btn-wrapper {
        bottom: 20px;
        left: 16px;
    }

    .fireworks-btn-label {
        font-size: 0.75rem;
        padding: 4px 10px;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}


/* ==========================================================================
   PROFESSIONAL SCROLLX / AOS ANIMATION ENHANCEMENTS
   ========================================================================== */

[data-aos] {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


/* Hardware accelerated smooth scroll transitions */

.glass-card[data-aos] {
    transition:
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease !important;
}


/* Custom scroll reveal delay utilities */

.delay-100 {
    transition-delay: 0.1s !important;
}

.delay-200 {
    transition-delay: 0.2s !important;
}

.delay-300 {
    transition-delay: 0.3s !important;
}

.delay-400 {
    transition-delay: 0.4s !important;
}


/* Micro-interaction zoom on hover */

.ambient-glow[data-aos]:hover {
    transform: translateY(-6px) scale(1.015) !important;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(183, 245, 104, 0.15) !important;
}