:root {
    --blue-dark: #0a2f63;
    --blue: #1a5fb4;
    --blue-soft: #eaf3ff;
    --red: #d73333;
    --red-dark: #b32222;
    --white: #ffffff;
    --text: #1b2430;
    --muted: #5f6b7a;
    --border: rgba(10, 47, 99, 0.12);
    --shadow: 0 20px 50px rgba(7, 28, 66, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text);
    background: #f7faff;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.15;
    margin-top: 0;
}

p {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 1.06rem;
}

a {
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.section {
    padding: 96px 0;
}

.section-tag {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--blue);
}

.section-tag.light {
    color: #d9ecff;
}

.section-heading.center {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 42px;
}

.section h2,
.section-heading h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--blue-dark);
}

.nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 0.95rem;
}

.hero {
    position: relative;
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(4, 26, 61, 0.92), rgba(26, 95, 180, 0.76)),
        radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 28%),
        url('https://moguaex.org/imagenes/bg-hero-01.webp') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.25));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 88px);
    max-width: 1210px;
    padding: 40px 0 100px;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: #eff6ff;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.6rem, 6vw, 5rem);
    margin-bottom: 1rem;
}

.hero-slogan {
    font-size: clamp(1.3rem, 2.6vw, 2rem);
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-text {
    max-width: 680px;
    color: rgba(255,255,255,0.92);
    font-size: 1.18rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    border-radius: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    transition: 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
    box-shadow: 0 14px 34px rgba(215, 51, 51, 0.35);
}

.btn-secondary {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(6px);
}

.btn-light {
    background: var(--white);
    color: var(--blue-dark);
    box-shadow: var(--shadow);
}

.btn-full {
    width: 100%;
}

.grid-2,
.cards-2,
.cards-4,
.contact-layout,
.footer-content,
.cta-content {
    display: grid;
    gap: 26px;
}

.grid-2,
.cards-2,
.contact-layout,
.footer-content,
.cta-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.align-center {
    align-items: center;
}

.panel,
.card,
.form-panel,
.mini-card {
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.highlight-panel {
    padding: 34px;
    background: linear-gradient(180deg, #ffffff, #f1f7ff);
}

.highlight-panel h3,
.form-panel h3,
.card h3 {
    color: var(--blue-dark);
    margin-bottom: 1rem;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    color: var(--text);
    font-weight: 600;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--red);
    font-weight: 800;
}

.mission-vision {
    background: linear-gradient(180deg, #edf5ff, #ffffff);
}

.glass-card {
    padding: 34px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(10px);
}

.glass-card-video {
    padding: 34px;
    background: rgba(255,255,255);
    backdrop-filter: blur(10px);
}

.objective-card {
    padding: 28px;
    text-align: left;
}

.icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.image-placeholder {
    min-height: 460px;
    min-height: 600px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(10,47,99,0.15), rgba(10,47,99,0.55)),
        url('https://moguaex.org/imagenes/bg-movimiento-01.webp') center/cover no-repeat;
    box-shadow: var(--shadow);
    display: flex;
    align-items: end;
    padding: 28px;
}

.image-placeholder span {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.12);
    padding: 12px 16px;
    border-radius: 12px;
}

.cta-band {
    background: linear-gradient(135deg, var(--blue-dark), #174f9e);
    color: var(--white);
}

.cta-band h2,
.cta-band p {
    color: var(--white);
}

.cta-content {
    align-items: center;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 2rem;
}

.mini-card {
    padding: 20px;
    min-height: 120px;
}

.mini-card strong {
    display: block;
    color: var(--blue-dark);
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.mini-card span {
    color: var(--muted);
}

.form-panel {
    padding: 32px;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.video{
    background: linear-gradient(135deg, var(--blue-dark), #174f9e);
    color: var(--white);
}

.video h2,
.video p {
    color: var(--white);
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
}

label {
    font-weight: 700;
    color: var(--blue-dark);
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(10,47,99,0.16);
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
    background: #fff;
    color: var(--text);
}

input:focus,
textarea:focus {
    outline: 2px solid rgba(26,95,180,0.15);
    border-color: rgba(26,95,180,0.45);
}

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-weight: 600;
}

.alert.success {
    background: #e9f8ef;
    color: #18663a;
    border: 1px solid #b8e3c8;
}

.alert.error {
    background: #fff0f0;
    color: #8b1f1f;
    border: 1px solid #f0b9b9;
}

.footer {
    background: #071b42;
    color: rgba(255,255,255,0.88);
    padding: 28px 0;
}

.footer h3,
.footer p,
.footer a {
    color: rgba(255,255,255,0.9);
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: end;
}

@media (max-width: 1024px) {
    .cards-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .grid-2,
    .cards-2,
    .contact-layout,
    .footer-content,
    .cta-content,
    .field-row,
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .cards-4 {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        min-height: auto;
        padding: 48px 0 72px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .image-placeholder {
        min-height: 320px;
    }

    .footer-links {
        justify-content: start;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b859;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background-color: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Source Sans 3', sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* =======================================
   JUNTA DIRECTIVA
======================================= */

.herojd {
    position: relative;
    min-height: 55vh;
    background:
        linear-gradient(135deg, rgba(4, 26, 61, 0.92), rgba(26, 95, 180, 0.76)),
        radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 28%),
        url('https://moguaex.org/imagenes/bg-hero-01.webp') center/cover no-repeat;
    overflow: hidden;
}

.herojd-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.25));
}

.herojd-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(55vh - 88px);
    max-width: 1210px;
    padding: 40px 0 66px;
}

.herojd h1 {
    color: var(--white);
    font-size: clamp(2.6rem, 6vw, 5rem);
    margin-bottom: 1rem;
}

.jd-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:30px;
    margin-top:60px;
}

.jd-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:.3s ease;
}

.jd-card:hover{
    transform:translateY(-8px);
}

.jd-photo{
    height:240px;
    overflow:hidden;
}

.jd-photo img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:center top;
}

.jd-content{
    padding:24px;
    text-align:center;
}

.jd-content h3{
    color:var(--blue-dark);
    margin-bottom:12px;
}

.xxxjd-position{
    display:inline-block;
    padding:8px 18px;
    border-radius:999px;
    background:linear-gradient(
        135deg,
        var(--blue),
        var(--blue-dark)
    );
    color:#fff;
    font-size:.85rem;
    font-weight:700;
    margin-bottom:15px;
}

.jd-location{
    color:var(--muted);
    font-weight:600;
}

/* Tablet */

@media (max-width:991px){

    .jd-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

/* Móvil */

@media (max-width:768px){

    .jd-grid{
        grid-template-columns:1fr;
    }

    .jd-photo{
        height:320px;
    }

}



/* ===============================
    CONSULADOS
===================================*/

.intro .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.image-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.image-card:hover {
    transform: translateY(-5px);
}

.section-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: var(--white);
    padding: 10px 20px;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-download:hover {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(26, 95, 180, 0.3);
}

@media (max-width: 768px) {
    .intro .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .section-image {
        height: 250px;
    }
}