/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    background: linear-gradient(180deg, #000000 0%, #000244 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: white;
}

/* Reset global de links — sin margen automático */
a {
    color: white;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

hr {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.25);
}

h2, h3, p { color: white; }

/* ============================================================
   NAVBAR
   ============================================================ */
nav {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#paginas {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    width: 100%;
}

/* --- Iconos perfil + carrito (izquierda) --- */
.nav-iconos {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-iconos a {
    display: flex;
    align-items: center;
    line-height: 0;
}

.nav-iconos a img {
    filter: brightness(0) invert(1);
    width: 26px;
    height: 26px;
    display: block;
    transition: opacity 0.2s;
}

.nav-iconos a:hover img { opacity: 0.65; }

/* --- Hamburger (solo mobile) --- */
.hamburger {
    display: none;           /* oculto en desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    line-height: 0;
}

.hamburger img {
    filter: brightness(0) invert(1);
    width: 26px;
    height: 26px;
    display: block;
}

/* --- Links de navegación (desktop, izquierda después de iconos) --- */
.paginas-botones {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 6px;
}

.paginas-botones a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.87rem;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
    margin: 0;
}

.paginas-botones a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

/* --- Logo: siempre a la derecha con margin-left: auto --- */
#Tjust {
    margin-left: auto;
    color: white;
    font-size: clamp(1.1rem, 2.5vw, 1.55rem);
    white-space: nowrap;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

/* --- Menú desplegable mobile --- */
/* Por defecto: completamente oculto */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(0, 2, 30, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Solo se muestra cuando JS añade la clase .open */
.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0;
    transition: background 0.2s, color 0.2s;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

/* ============================================================
   HERO
   ============================================================ */

.Sobre-nosotros{
    text-align: center;
    margin-top: 50px;
    margin-bottom: 70px;
    font-size: 140%;
}

.history-section {
    width: 100%;
    padding: 100px 8%;
}

.history-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.history-text {
    flex: 1;
    max-width: 550px;
}

.history-text h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
}

.history-text p {
    max-width: 450px;
    font-size: 1.0rem;
    line-height: 1.7;
}

.history-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.history-image img {
    width: 500px;
    max-width: 100%;
    object-fit: cover;
}
.carisma{
    margin-top: 10px;
    margin-bottom: 10px;
}

/* seccion de mision*/

.mision-section {
    width: 100%;
    padding: 100px 8%;
}

.mision-content {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.mision-text {
    flex: 1;
    max-width: 550px;
}

.mision-text h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
}

.mision-text p {
    max-width: 450px;
    font-size: 1.0rem;
    line-height: 1.7;
}

.mision-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mision-image img {
    width: 500px;
    max-width: 100%;
    object-fit: cover;
}
/* ============================================================
   MIEMBROS
   ============================================================ */
.Miembros {
    text-align: center;
    padding: 80px 8%;
}

.Miembros h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.Miembros > p {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 48px;
}

.Cartas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.Cartas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 32px 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s, transform 0.25s;
}

.Cartas:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-4px);
}

.Cartas img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.Cartas p:first-of-type {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.Cartas p:last-of-type {
    font-size: 0.85rem;
    opacity: 0.6;
    margin: 0;
}

.Cartas a {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 22px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.Cartas a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}



/* ============================================================
   FOOTER
   ============================================================ */
.creditos {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: clamp(28px, 5vw, 80px);
    padding: clamp(32px, 5vw, 52px) clamp(20px, 5vw, 60px);
}

.creditos > div { display: flex; flex-direction: column; gap: 10px; }

.creditos-brand h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: white;
}

.creditos-brand p {
    font-size: 0.88rem;
    opacity: 0.6;
    color: white;
}

.creditos-redes h3,
.creditos-contacto h3 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    color: white;
    margin: 0 0 8px 0;
}

.social-links {
    display: flex;
    gap: 14px;
    align-items: center;
}

.social-links a img {
    filter: brightness(0) invert(1);
    width: 28px;
    height: 28px;
    display: block;
    transition: opacity 0.2s, transform 0.2s;
}

.social-links a:hover img {
    opacity: 0.7;
    transform: scale(1.1);
}

.mail-link {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    word-break: break-all;
    margin: 0;
    transition: color 0.2s;
}

.mail-link:hover { color: white; }

/* ============================================================
   RESPONSIVE — TABLET  ≤ 900px
   ============================================================ */
@media (max-width: 900px) {

    /* Ocultar links de desktop, mostrar hamburger */
    .paginas-botones { display: none; }
    .hamburger { display: block; }

    /* History section apilada */
    .history-section {
        padding: 60px 6%;
    }

    .history-content {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }

    .history-text {
        max-width: 100%;
    }

    .history-text h2 {
        font-size: 2.2rem;
    }

    .history-text p {
        max-width: 100%;
    }

    .history-image {
        width: 100%;
        justify-content: flex-start;
    }

    .history-image img {
        width: 100%;
        max-width: 380px;
    }

    /* Misión section apilada */
    .mision-section {
        padding: 60px 6%;
    }

    .mision-content {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }

    .mision-text {
        max-width: 100%;
    }

    .mision-text h2 {
        font-size: 2.2rem;
    }

    .mision-text p {
        max-width: 100%;
    }

    .mision-image {
        width: 100%;
        justify-content: flex-start;
    }

    .mision-image img {
        width: 100%;
        max-width: 380px;
    }

    /* Miembros — sigue en 2 columnas en tablet */
    .Cartas-grid {
        gap: 20px;
    }

    /* Sobre nosotros */
    .Sobre-nosotros {
        margin-top: 36px;
        margin-bottom: 48px;
        font-size: 120%;
        padding: 0 6%;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE  ≤ 600px
   ============================================================ */
@media (max-width: 600px) {

    #paginas { padding: 10px 14px; gap: 8px; }

    .nav-iconos a img,
    .hamburger img { width: 22px; height: 22px; }

    #Tjust { font-size: 1rem; }

    /* Hero texto */
    .Sobre-nosotros {
        margin-top: 28px;
        margin-bottom: 36px;
        font-size: 100%;
        padding: 0 5%;
    }

    .Sobre-nosotros h1 {
        font-size: 1.9rem;
    }

    /* History & Mision */
    .history-section,
    .mision-section {
        padding: 44px 5%;
    }

    .history-text h2,
    .mision-text h2 {
        font-size: 1.8rem;
        margin-bottom: 18px;
    }

    .history-text p,
    .mision-text p {
        font-size: 0.95rem;
    }

    /* Miembros — 1 columna en móvil */
    .Miembros {
        padding: 56px 5%;
    }

    .Miembros h2 {
        font-size: 1.9rem;
    }

    .Cartas-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
    }

    /* Footer columna única */
    .creditos {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 24px 16px;
    }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE  ≤ 380px
   ============================================================ */
@media (max-width: 380px) {

    .Sobre-nosotros h1 {
        font-size: 1.6rem;
    }

    .history-text h2,
    .mision-text h2 {
        font-size: 1.5rem;
    }

    .Cartas-grid {
        max-width: 100%;
    }
}

/* ============================================================
   ACCESIBILIDAD
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .slide, #central button, .social-links a img { transition: none; }
}