﻿/* =========================================
   SEESIME - STYLESHEET OPTIMIZADO
   Versión: 2.1 | Fecha: 2026
   ========================================= */

/* ========== 1. RESET Y BASE ========== */
section {
    margin-top: 0;
    margin-bottom: 0;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.5;
    color: #333;
}

/* Focus accesible */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ========== 2. NAVBAR - SEESIME ========== */
header {
    margin: 0;
    padding: 0;
}

.navbar-seesime {
    font-family: 'Montserrat', sans-serif !important;
    background-color: #1b4d3e !important;
    border-bottom: 0px solid #0f2d24;
    padding: 0.8rem 1rem;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.navbar-brand-seesime {
    font-weight: 700;
    font-size: 2rem !important;
    letter-spacing: 2.5px !important;
    color: #fff !important;
    text-transform: uppercase;
    line-height: 1.1;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.nav-link {
    transition: opacity 0.2s ease;
}

    .nav-link:hover {
        opacity: 0.85;
    }

.nav-link-seesime {
    font-weight: 500;
    font-size: 0.9rem !important;
    color: #fff !important;
    letter-spacing: 0.3px;
    padding: 0.5rem 0.8rem !important;
    transition: color 0.2s ease, background-color 0.2s ease;
}

    .nav-link-seesime:hover,
    .nav-link-seesime:focus,
    .nav-link-seesime.active {
        color: #2ecc71 !important;
    }

/* Dropdowns */
.dropdown-menu-seesime {
    background-color: #1b4d3e;
    border: 1px solid #0f2d24;
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 200px;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
}

.dropdown-item-seesime {
    color: #fff !important;
    padding: 0.55rem 1.2rem;
    line-height: 1.6 !important;
    transition: all 0.2s ease;
    word-spacing: 0.5px;
}

    .dropdown-item-seesime:hover,
    .dropdown-item-seesime:focus {
        color: #2ecc71 !important;
        background-color: #153d31 !important;
        padding-left: 1.4rem;
    }

.dropdown-divider {
    border-top: 1px solid #444;
    margin: 0.3rem 0;
}

/* Flecha del dropdown */
.navbar-dark .navbar-nav .dropdown-toggle::after {
    border-top-color: #fff !important;
    border-right-color: transparent !important;
    border-left-color: transparent !important;
    border-bottom: 0 !important;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.nav-item.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

.nav-item.dropdown:hover .dropdown-toggle::after {
    transform: scaleY(1.1);
}

/* Espaciado de items */
.navbar-nav.ms-auto {
    margin-left: auto !important;
}

.nav-item + .nav-item {
    margin-left: 3px;
}

/* Accesibilidad navbar */
.nav-link-seesime:focus-visible,
.dropdown-item-seesime:focus-visible {
    outline: 2px solid #2ecc71;
    outline-offset: 2px;
}

/* ========== 3. CAROUSEL - FULL SCREEN ========== */
main {
    padding: 0 !important;
    margin: 0 !important;
    display: block;
}

.carousel-seesime-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    height: calc(100dvh - 76px);
    min-height: 400px;
    max-height: 800px;
    overflow: hidden;
    line-height: 0;
    display: block;
}

    /* FIX: picture es inline por defecto — genera gap de baseline */
    .carousel-seesime-container picture {
        display: block;
        line-height: 0;
        font-size: 0;
        height: 100%;
    }

    /* FIX: Bootstrap .carousel y .carousel-inner deben heredar altura */
    .carousel-seesime-container > .carousel,
    .carousel-seesime-container .carousel-inner {
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

.carousel-img-seesime {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    line-height: 0;
    vertical-align: top;
    transition: transform 0.5s ease;
}

.carousel-item {
    position: relative;
    height: 100%;
}

    .carousel-item.active .carousel-img-seesime {
        transform: scale(1.02);
    }

    /* Overlay con gradiente */
    .carousel-item::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient( to bottom, rgba(27, 77, 62, 0.3) 0%, rgba(15, 45, 36, 0.6) 50%, rgba(10, 30, 25, 0.8) 100% );
        z-index: 1;
        pointer-events: none;
    }

/* Sin overlay en slide 1 */
.slide-no-overlay::before {
    display: none !important;
}

/* Caption y texto */
.carousel-caption-seesime {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    z-index: 2;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.carousel-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-highlight {
    color: #2ecc71 !important;
}

.carousel-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    max-width: 700px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
}

.carousel-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Botones */
.btn-seesime-primary {
    background-color: #2ecc71;
    color: #0a1e19;
    border: 2px solid #2ecc71;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
}

    .btn-seesime-primary:hover,
    .btn-seesime-primary:focus {
        background-color: #27ae60;
        border-color: #27ae60;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
    }

.btn-seesime-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
}

    .btn-seesime-outline:hover,
    .btn-seesime-outline:focus {
        background-color: #fff;
        color: #1b4d3e;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    }

/* Controles del carousel */
.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-seesime-container:hover .carousel-control-prev,
.carousel-seesime-container:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-icon {
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(27, 77, 62, 0.6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

    .carousel-control-icon:hover {
        background: rgba(46, 204, 113, 0.8);
    }

/* Indicadores */
.carousel-indicators {
    bottom: 20px;
    z-index: 3;
}

    .carousel-indicators [data-bs-target] {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 2px solid #fff;
        background-color: transparent;
        opacity: 0.7;
        transition: all 0.3s ease;
    }

    .carousel-indicators .active {
        background-color: #2ecc71;
        opacity: 1;
        transform: scale(1.2);
    }

/* ========== 4. TARJETAS DE CONTENIDO ========== */
.content-section-seesime {
    margin-top: 0 !important;
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
}

.card-seesime {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    height: 100%;
}

    .card-seesime:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(27, 77, 62, 0.15);
    }

.card-title-seesime {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1b4d3e;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card-text-seesime {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer */
footer {
    margin: 0;
    padding: 0;
}

.footer-seesime {
    border-top: none !important;
    margin-top: 0;
}

/* ========== 5. RESPONSIVE - TABLET (< 991px) ========== */
@media (max-width: 991px) {
    .navbar-nav.ms-auto {
        text-align: left;
        margin-top: 1rem;
    }

    .nav-item + .nav-item {
        margin-left: 0;
        margin-top: 3px;
    }

    .dropdown-menu-seesime {
        background-color: #111;
        text-align: center;
    }

    .dropdown-item-seesime:hover {
        padding-left: 1.2rem;
    }
}

/* ========== 6. RESPONSIVE - MÓVIL (< 768px) ========== */
@media (max-width: 767px) {

    /* -- Navbar -- */
    .navbar-brand-seesime {
        font-size: 1.6rem !important;
        letter-spacing: 1.8px !important;
    }

    /* -- Carousel: FIX gap entre carousel y cards -- */
    .carousel-seesime-container {
        height: 60vh; /* vh en lugar de dvh: dvh es inestable en móvil */
        min-height: 300px;
        max-height: 500px;
        margin: 0 !important;
        padding: 0 !important;
        display: block;
        line-height: 0;
        font-size: 0;
    }

        .carousel-seesime-container > .carousel,
        .carousel-seesime-container .carousel-inner {
            height: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .carousel-seesime-container picture {
            display: block;
            line-height: 0;
            font-size: 0;
            height: 100%;
        }

    .carousel-img-seesime {
        height: 100%;
        object-position: center top;
        display: block;
        vertical-align: top;
    }

    .slide-no-overlay .carousel-img-seesime {
        object-position: center center;
    }

    /* -- Cards: sin margen superior -- */
    .content-section-seesime {
        padding-top: 0 !important;
        margin-top: 0 !important;
        display: block;
    }

    /* -- Carousel inner elements -- */
    .carousel-inner,
    .carousel-item {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* -- Caption -- */
    .carousel-caption-seesime {
        padding: 1.5rem;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .carousel-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        margin-bottom: 0.75rem;
    }

    .carousel-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 1.5rem;
    }

    .carousel-cta {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .btn-seesime-primary,
    .btn-seesime-outline {
        width: 100%;
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }

    .carousel-control-icon {
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 15%;
    }
}

/* ========== 7. ACCESIBILIDAD ========== */
@media (prefers-reduced-motion: reduce) {
    .carousel-fade,
    .carousel-img-seesime,
    .btn-seesime-primary,
    .btn-seesime-outline,
    .card-seesime {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

.btn-seesime-primary:focus-visible,
.btn-seesime-outline:focus-visible,
.carousel-indicators [data-bs-target]:focus-visible {
    outline: 3px solid #2ecc71;
    outline-offset: 3px;
}


/* =========================================
   VISIÓN Y MISIÓN - ESTILOS ELEGANTES
   ========================================= */
/* =========================================
   MISIÓN Y VISIÓN - CONSOLIDADO (2 CARDS)
   ========================================= */
.vm-consolidated-section {
    position: relative;
}

.vm-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(27, 77, 62, 0.1);
    display: flex;
    flex-direction: column;
}

    .vm-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

    .vm-card.vision-card {
        background: linear-gradient(135deg, rgba(27, 77, 62, 0.02), rgba(46, 204, 113, 0.02));
        border-left: 4px solid #2ecc71;
    }

.vm-card-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.vm-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1b4d3e;
    margin: 0;
}

.vm-card-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

.vm-card-list {
    margin-top: auto;
}

.vm-card-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

    .vm-card-item:hover {
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }

.vm-card-item-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.vm-card-item-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(46, 204, 113, 0.4);
    flex-shrink: 0;
    margin-top: 2px;
}

.vm-card-item div {
    line-height: 1.4;
}

    .vm-card-item div strong {
        color: #1b4d3e;
        font-weight: 600;
    }

    .vm-card-item div small {
        color: #666;
        font-size: 0.85rem;
    }

/* Responsive específico para cards consolidadas */
@media (max-width: 767px) {
    .vm-card {
        padding: 2rem 1.5rem !important;
    }

    .vm-card-title {
        font-size: 1.5rem;
    }

    .vm-card-item {
        padding: 0.6rem;
    }
}

/* ========================================
   BADGE CONVOCATORIA CLICKABLE - SLIDE 1
   ======================================== */

/* Contenedor del badge overlay */
.carousel-badge-overlay {
    position: absolute;
    top: 50%;
    right: 15%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
}

/* Enlace del badge clickable */
.badge-convocatoria-clickable {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #b91c1c;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    animation: badgePulse 2s ease-in-out infinite;
    line-height: 1.4;
}

    .badge-convocatoria-clickable:hover {
        transform: scale(1.1) translateY(-50%);
        box-shadow: 0 8px 25px rgba(255, 165, 0, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.5);
        color: #991b1b;
        text-decoration: none;
        animation: none;
    }

    .badge-convocatoria-clickable:active {
        transform: scale(1.05) translateY(-50%);
    }

/* Texto del badge */
.badge-text {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Efecto de pulso */
.badge-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: rgba(255, 215, 0, 0.4);
    animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    z-index: -1;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes pulseRing {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }

    100% {
        width: 140%;
        height: 140%;
        opacity: 0;
    }
}

/* Responsive - Tablet */
@media (max-width: 991px) {
    .carousel-badge-overlay {
        right: 10%;
        top: 45%;
    }

    .badge-convocatoria-clickable {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Responsive - Móvil */
@media (max-width: 767px) {
    .carousel-badge-overlay {
        right: 5%;
        top: 40%;
    }

    .badge-convocatoria-clickable {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
        border-radius: 8px;
    }

    .badge-text {
        font-size: 0.7rem;
    }
}

/* Responsive - Pantallas muy pequeñas */
@media (max-width: 480px) {
    .carousel-badge-overlay {
        right: 2%;
        top: 35%;
    }

    .badge-convocatoria-clickable {
        padding: 0.5rem 0.8rem;
        font-size: 0.65rem;
    }
}

/* Cursor pointer para indicar que es clickable */
.carousel-item {
    position: relative;
}

/* Tooltip personalizado opcional */
.badge-convocatoria-clickable::after {
    content: '→ Click aquí';
    display: block;
    font-size: 0.7rem;
    margin-top: 0.3rem;
    opacity: 0.8;
    font-weight: 600;
}



/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.05), rgba(46, 204, 113, 0.05));
}

.cta-card {
    background: linear-gradient(135deg, #1b4d3e 0%, #2d6a4f 100%);
    position: relative;
    overflow: hidden;
}

    .cta-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(46, 204, 113, 0.2), transparent);
        border-radius: 50%;
    }

/* Botón Outline Light */
.btn-seesime-outline-light {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

    .btn-seesime-outline-light:hover,
    .btn-seesime-outline-light:focus {
        background-color: #fff;
        color: #1b4d3e;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    }

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos="fade-up"],
[data-aos="fade-right"],
[data-aos="fade-left"],
[data-aos="zoom-in"] {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

[data-aos="fade-right"] {
    animation-name: fadeInRight;
}

[data-aos="fade-left"] {
    animation-name: fadeInLeft;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 767px) {
    .vision-mision-hero {
        padding: 3rem 0 2.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .goal-item,
    .pillar-card {
        padding: 1rem;
    }

    .value-card {
        padding: 2rem 1.5rem !important;
    }

    .cta-card {
        padding: 2.5rem 1.5rem !important;
    }
}

/* Dark mode support (opcional) */
@media (prefers-color-scheme: dark) {
    .lead-text {
        color: #aaa;
    }

    .goal-item,
    .pillar-card {
        background: rgba(255, 255, 255, 0.05);
    }

    .goal-text h5,
    .pillar-content h5,
    .value-title {
        color: #2ecc71;
    }
}

/* Footer - Hover effects */
.footer-seesime .hover-accent {
    transition: color 0.2s ease;
}

    .footer-seesime .hover-accent:hover {
        color: #2ecc71 !important; /* Verde institucional */
    }

/* Responsive: Ajustes para móvil */
@media (max-width: 767px) {
    .footer-seesime .row > div {
        margin-bottom: 0.25rem;
    }
}