/* ================================
   PALETA ETHOS
================================ */
:root {
    --azul-profundo: #062B58;  /* ✔ Azul Ethos exacto */
    --celeste: #2E8BC0;
    --blanco: #FFFFFF;
    --gris: #F4F6F7;
    --negro: #111111;
}


/* ================================
   RESET
================================ */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--gris);
    color: var(--negro);
}

/* ================================
   HERO
================================ */
.hero {
    height: 100vh;
    background: linear-gradient(to bottom right, var(--azul-profundo), var(--celeste));
    color: var(--blanco);
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    padding: 0 20px; 

}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 500px;
}

/* CTA principal */
.cta {
    background: var(--blanco);
    color: var(--azul-profundo);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.15s ease;
    margin-top: 60px;
    margin-bottom: 35px;
}

.cta:hover {
    transform: scale(1.05);
}


#mensaje-dinamico {
    margin-top: 35px;
    font-size: 1.2rem;
    color: white;
    font-weight: 500;
    text-align: center;
    max-width: 85%;
    margin-inline: auto;
}


/* ================================
   BOTÓN MERCADO PAGO (estático o corner)
================================ */
.mp-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: #E63946;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: transform 0.15s ease;
}

.mp-button img {
    height: 50px;
    background: #E63946;
    padding: 6px;
    border-radius: 4px;
}

.mp-button:hover {
    transform: scale(1.05);
}

/* ================================
   CORNER BUTTON (AYUDAR)
================================ */
.corner-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
}

/* ================================
   DROPDOWN
================================ */
.dropdown {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
}

.dropdown-btn {
    background: #E63946;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    margin-top: 10px;
    background: white;
    min-width: 220px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
}

.dropdown.show .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--azul-profundo);
    font-weight: 600;
    font-size: 1rem;
}

.dropdown-content a:hover {
    background: var(--gris);
}

/* Normalización REAL de logos del dropdown */
.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}

.dropdown-icon {
    width: 32px;   /* antes 48px */
    height: 32px;  /* antes 48px */
}

.dropdown-icon img {
    max-width: 80%;   /* escala inteligente */
    max-height: 80%;
    object-fit: contain;
}



/* ================================
   BACK BUTTON
================================ */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--azul-profundo);
    background: white;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #cccccc;
    font-weight: bold;
    transition: 0.15s ease;
}

.back-button:hover {
    background: #f0f0f0;
    transform: scale(1.03);
}

/* ================================
   PÁGINA DONAR
================================ */
.donate-container {
    padding: 90px 20px 60px; /* compensación por el botón fijo */
    text-align: center;
}

.donate-title {
    font-size: 2.2rem;
    color: var(--azul-profundo);
    margin-bottom: 40px;
}

.donate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 800px;
    margin: auto;
}

.donate-card {
    background: var(--gris);
    padding: 30px 20px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--azul-profundo);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: transform .15s ease, box-shadow .15s ease;
}

.donate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}


/* ================================
   RESPONSIVE (MÓVIL)
================================ */
@media (max-width: 480px) {

    /* BOTÓN */
    .dropdown {
        top: 10px;
        right: 10px;
    }

    .dropdown-btn {
        transform: scale(0.9);
    }

    .ethos-header {
    transform: scale(0.53);
    margin: 0 auto;
    transform-origin: left center;
    display: block;              /* ⭐ hace que margin auto funcione */
    width: fit-content;          /* ⭐ evita que ocupe todo el ancho */

    gap: 22px;
    align-items: flex-start;
}


    .ethos-icon {
        width: 105px;
        height: 95px;
        border-width: 5px;
    }

    .ethos-icon .bars span {
        height: 60px;
        width: 5px;
    }

    .ethos-text {
        font-size: 88px;
        line-height: 0.82;
    }

    .ethos-slogan {
        font-size: 10px;
        letter-spacing: 2.2px;
        margin-top: 8px;
    }
}


/* ================================
   LOGO ETHOS (barras + texto)
================================ */
.ethos-header {
    display: flex;
    align-items: center;      /* Icono y texto alineados verticalmente */
    gap: 40px;                /* Distancia entre icono y bloque de texto */
}

/* Icono */
.ethos-icon {
    width: 175px;
    height: 155px;
    border: 8px solid #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ethos-icon .bars {
    display: flex;
    gap: 32px;
}

.ethos-icon .bars span {
    width: 8px;
    height: 100px;
    background: white;
}

/* COLUMNA DE TEXTO (ETHOS + SLOGAN) */
.ethos-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;     /* ESTA ES LA CLAVE: alinea a la IZQUIERDA */
   /*gap: 8px;*/
}

/* Bloque Ethos + Slogan */
.ethos-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1; /* Mantiene texto y slogan juntos visualmente */
}

/* ETHOS */
.ethos-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 900;
    font-size: 190px;
    color: white;
    line-height: 0.8;     /* más seguro */
    transform: none !important;
}


/* Slogan */
.ethos-slogan {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 4px;
    margin-top: 12px; /* distancia exacta Ethos → slogan */
    color: rgba(255,255,255,0.9);
}


/* Limitar tamaño de logos dentro del dropdown */
.dropdown-content img {
    width: 120px;       /* tamaño ideal */
    height: auto;
    display: block;
    margin: 10px auto;
}


/* Sección de instituciones */
.instituciones-section {
    padding: 80px 20px;
    text-align: center;
}

.titulo-area {
    font-size: 2.4rem;
    color: var(--azul-profundo);
    margin-bottom: 10px;
}

.subtitulo-area {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
}

.instituciones-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* SIEMPRE 2 COLUMNAS */
    gap: 25px;
    max-width: 800px;
    margin: auto;
}

.institucion-card {
    background: var(--gris);
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    transition: transform 0.2s ease;
}

.institucion-card:hover {
    transform: translateY(-4px);
}

.institucion-logo {
    width: 75px;   /* antes 60px */
    height: 75px;  /* antes 60px */
    margin-bottom: 18px;
}

.institucion-card {
    text-decoration: none !important;
    color: inherit;
}

.institucion-card h3,
.institucion-card p {
    text-decoration: none !important;
}


/* -----------------------------------------
   BOTONES DENTRO DE CADA PROYECTO
----------------------------------------- */

/* Contenedor horizontal de AYUDAR + INFORMACIÓN */
.botones-proyecto {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 22px;
    gap: 10px; /* separación entre botones */
}

/* Normalización general */
.botones-proyecto button,
.botones-proyecto .dropdown-btn {
    padding: 12px 22px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: 0.15s ease;
}

/* -----------------------------------------
   BOTÓN AYUDAR (ROJO ORIGINAL QUE TE GUSTABA)
----------------------------------------- */

.donar-btn-box .dropdown {
    position: relative;
}

.donar-btn-box .dropdown-btn {
    background: #E63946;   /* 🔥 rojo vibrante anterior */
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.25);
    letter-spacing: 0.3px;
}

.donar-btn-box .dropdown-btn:hover {
    background: #c72d39;   /* rojo ligeramente más oscuro */
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(230, 57, 70, 0.40);
}

/* Dropdown del AYUDAR */
.dropdown-content {
    display: none;
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    min-width: 220px;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
}

.dropdown-content.show {
    display: block !important;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: var(--azul-profundo);
    text-decoration: none;
}

.dropdown-content img {
    width: 120px;
    margin: 10px auto;
    display: block;
}

/* -----------------------------------------
   BOTÓN INFORMACIÓN (box original: celeste, simple)
----------------------------------------- */

.info-btn {
    background: var(--celeste);
    color: white;
    padding: 10px 18px;     /* más simple */
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;       /* menos cargado */
    border: none;
    box-shadow: 0 2px 6px rgba(46,139,192,0.25);  /* más suave */
}

.info-btn:hover {
    background: #1F6F9D;
    transform: translateY(-2px);
}

/* Para permitir que el dropdown salga fuera del card */
.institucion-card {
    overflow: visible !important;
}




/* ----------------------------------------
   NAV SUPERIOR ESTILO APPLE (RESPONSIVE)
---------------------------------------- */

.ethos-nav {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;

    display: flex;
    justify-content: center;

    /* gap flexible → adapta a todas las pantallas */
    gap: clamp(20px, 6vw, 80px);

    padding: 0 20px;  /* evita que toque bordes en móvil */
    z-index: 2000;
}

.ethos-nav a {
    color: white;
    text-decoration: none;

    /* tamaño de fuente responsive */
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);

    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.ethos-nav a:hover {
    opacity: 1;
}

/* Móvil: si no entra, se acomoda en varias líneas */
@media (max-width: 480px) {
    .ethos-nav {
        flex-wrap: wrap;
        gap: 20px;
        top: 10px;
    }
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Sección About Us */
.about-section {
    padding: 120px 20px;
    text-align: center;
    background: var(--gris);
}

.about-section h2 {
    font-size: 2.4rem;
    color: var(--azul-profundo);
    margin-bottom: 40px;
}

/* Contenedor horizontal de los nombres */
.about-names {
    display: flex;
    justify-content: center;
    gap: 100px;              /* 🟦 espacio horizontal entre los nombres */
    margin-top: 20px;
}

/* Estilo de cada nombre */
.about-names .persona {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--azul-profundo);
}



.mini-box {
    margin-top: 20px;
    padding: 12px 18px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 6px;

    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.4px;

    color: white;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(4px); /* efecto sutil */
    width: fit-content;

    text-decoration: none !important;
}



/* =====================================
   BOTÓN DE IDIOMA (arriba derecha)
====================================== */
/* ===== Selector de idioma (arriba a la derecha) ===== */

.lang-switch {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 6px;
    z-index: 3000;
}

.lang-btn {
    background: none !important;
    border: none !important;
    padding: 0;
    margin: 0;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.15s ease;
}

/* Hover suave */
.lang-btn:hover {
    transform: scale(1.12);
}

/* Activa: SIN OPACIDAD */
.lang-btn.active {
    opacity: 1 !important;      /* siempre igual */
}

/* Evitar recuadros azules en iPhone */
.lang-btn:focus,
.lang-btn:active {
    outline: none !important;
    background: none !important;
    box-shadow: none !important;
}



/* FOOTER EN UNA SOLA LÍNEA (3 columnas) */
.footer-bar {
    width: 100%;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;   /* izquierda - centro - derecha */
    align-items: center;
    font-size: 0.9rem;
    background: var(--gris);
    flex-wrap: wrap;                  /* por si el móvil no entra */
}

/* Izquierda */
.footer-left {
    flex: 1;
    text-align: left;
}

/* Centro: mails */
.footer-center {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 18px;                        /* espacio entre mails */
}

/* Derecha */
.footer-right {
    flex: 1;
    text-align: right;
    padding-right: 35px;   /* ⭐ mueve FAQ hacia la izquierda */
}


/* Estilo de links */
.footer-bar a {
    color: var(--azul-profundo);
    text-decoration: none;
}

.footer-bar a:hover {
    text-decoration: underline;
}

/* MÓVIL – se mantiene en una sola línea mientras entre */
@media (max-width: 480px) {
    .footer-bar {
        font-size: 0.78rem;
        gap: 6px;
    }
}

/* Ajustes SOLO para pantallas chicas */
@media (max-width: 480px) {

    .lang-switch {
        top: 10px;         /* baja un poquito */
        right: 10px;       /* más cerca del borde */
        gap: 4px;          /* menos separación */
    }

    .lang-btn {
        font-size: 20px !important;  /* más chicas en móvil */
        line-height: 1;
    }
}


