/* ================== FUENTES ================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;700;800&family=Cormorant+Garamond:ital,wght@1,600&display=swap');

/* ================== VARIABLES ================== */
:root {
    --bg: #F8F3E8;
    --green: #6F7F6A;
    --border: #1a1a1a;
    --primary: #1a1a1a;
}

/* ================== BASE ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--primary);
    padding-top: 65px; /* espacio para el header fijo */
}

img, video {
    max-width: 100%;
    height: auto;
}

/* ================== HEADER ================== */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 65px;
    background: var(--green);
    display: flex;
    align-items: center;
    z-index: 2000;
    border-bottom: 1px solid var(--border);
    padding: 0 5%;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    position: relative;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.logo img {
    height: 40px;
    border-radius: 50%;
}

.logo h1 {
    font-size: 1.1rem;
    font-weight: 800;
    color: black;
}

.logo span {
    color: var(--bg);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-list a:hover {
    opacity: 0.8;
}

.nav-list a.active {
    border-bottom: 2px solid white;
}

/* ================================================= */
/* ============ ESTILOS HAMBURGUESA ================ */
/* ================================================= */

.menu-toggle {
    display: none;
    font-size: 1.6rem;
    color: white;
    cursor: pointer;
    z-index: 2100;
}

.menu-toggle.active i::before {
    content: "\f00d"; /* Icono de X */
}

/* OVERLAY */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 1990;
}

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


/* ================== NAV ================== */
.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-list a {
    text-decoration: none;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-list a.active {
    border-bottom: 2px solid white;
}

/* ================== LOGIN ================== */
.login-container {
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 5%;
}

.login-card {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 50px 40px;
    border-radius: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    animation: modalAppear 0.5s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--green);
}

.login-header h2 i {
    font-style: italic;
}

.login-header p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 10px;
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
    transition: 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(111,127,106,0.1);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 25px;
}

.login-options a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

.w-100 {
    width: 100%;
    padding: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 12px;
    border: none;
    background: var(--green);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.w-100:hover {
    background: #4a5447;
}

/* Separador "o" */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #888;
    font-size: 0.8rem;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.separator span {
    padding: 0 10px;
}

/* Botón Google */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: white;
    color: #3c4043;
    border: 1px solid #dadce0;
    padding: 12px;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color .2s, box-shadow .2s;
}

.btn-google img {
    width: 18px;
    height: 18px;
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #d2e3fc;
    box-shadow: 0 1px 3px rgba(60,64,67,0.1);
}

.btn-google:active {
    background-color: #eeeeee;
}

.login-footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 0.85rem;
}

.login-footer-text a {
    color: var(--green);
    font-weight: 700;
    text-decoration: none;
}

/* ================== FOOTER ================== */

.main-footer {
    background: #6F7F6A;
    color: white;
    padding: 60px 5% 30px;
    margin-top: 0px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand h2 {
    font-size: 1.3rem;
    font-weight: 800;
}

.footer-brand span {
    color: var(--bg);
}

.footer-brand p {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-social a {
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: 0.3s;
}

.footer-social a:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.footer-bottom {
    margin-top: 40px;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ================================================= */
/* ================= REGISTRO PAGE ================= */
/* ================================================= */

/* Reducimos el padding del contenedor principal en el registro */
#pagina-registro-container {
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 5%; /* Padding reducido */
}

/* Hacemos la tarjeta de registro más compacta */
#pagina-registro-container .login-card {
    padding: 25px 35px; /* Menos espacio interno */
    max-width: 400px;    /* Un poco más estrecha */
}

#pagina-registro-container .login-header {
    margin-bottom: 20px; /* Menos margen bajo el título */
}

#pagina-registro-container .login-header h2 {
    font-size: 2.1rem;   /* Título un poco más pequeño */
}

#pagina-registro-container .input-group {
    margin-bottom: 12px; /* Espacio entre inputs muy reducido */
    gap: 5px;            /* Menos espacio entre label e input */
}

#pagina-registro-container .input-group input {
    padding: 10px 12px;  /* Inputs más finos */
}

#pagina-registro-container .separator {
    margin: 12px 0;      /* Separador "o" más compacto */
}

#pagina-registro-container .login-footer-text {
    margin-top: 15px;    /* Texto de "Loguéate" más cerca */
}

#pagina-registro-container .login-options {
    margin-bottom: 15px; /* Menos espacio antes del botón */
}


/* ================== ANIMACIONES ================== */
@keyframes modalAppear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================= */
/* ================= MOBILE MENU =================== */
/* ================================================= */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 320px;

        background: rgba(111,127,106,0.98);
        backdrop-filter: blur(10px);

        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        padding: 40px;
        gap: 25px;

        transform: translateX(100%);
        transition: transform 0.35s ease;

        z-index: 2000;
    }

    .nav-list.active {
        transform: translateX(0);
    }

    .header-container {
        gap: 10px;
    }
}

/* ================================================= */
/* ============== SMALL MOBILE ===================== */
/* ================================================= */
@media (max-width: 480px) {

    .logo h1 {
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .btn-main {
        font-size: 0.65rem;
        padding: 10px 18px;
    }
}
