/* =========================
   RESET + BASE
========================= */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0f0f0f;
    color: #fff;
    line-height: 1.6;

    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* =========================
   HEADER
========================= */
header {
    background: #000;
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #222;
    position: relative;
}

/* LOGO */
.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.logo img {
    height: 120px;
}

/* LANG */
.lang {
    position: absolute;
    top: 15px;
    right: 20px;
}

.lang a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
}

.lang a:hover {
    color: #f7931e;
}

/* =========================
   NAV
========================= */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    color: #ddd;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

/* hover underline */
nav a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f7931e;
    transition: 0.3s;
}

nav a:hover {
    color: #f7931e;
}

nav a:hover::after {
    width: 100%;
}

/* =========================
   HERO
========================= */
.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    padding: 50px 20px;
    background: linear-gradient(180deg, #111, #0a0a0a);
}

.hero h1 {
    font-size: 44px;
    margin-bottom: 10px;
    color: #f7931e;
}

.hero p {
    max-width: 700px;
    font-size: 18px;
    color: #ccc;
    margin: 8px 0;
}

/* =========================
   CONTENIDO
========================= */
.container {
    max-width: 900px;
    margin: auto;
    padding: 50px 20px;
}

.card {
    background: #181818;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #222;
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    border-color: #333;
}

.card h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.card p {
    font-size: 18px;
    line-height: 1.7;
}

/* =========================
   FORM
========================= */
.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row .form-group {
    flex: 1;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}

.alert.success {
    background: #e6f7ec;
    color: #1e7e34;
}

label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #ccc;
}

/* BASE IGUAL PARA TODOS */
input,
select,
textarea {
    width: 100%;
    height: 44px;
    /* CLAVE */
    padding: 0 12px;
    /* horizontal solo */
    border-radius: 6px;
    border: 1px solid #333;
    background: #fff;
    color: #111;
    font-size: 16px;
    font-family: inherit;
}

input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    color: #111;
}

input:focus {
    outline: none;
    border-color: #f7931e;
}

.check {
    display: block;
    margin-top: 10px;
    font-size: 14px;
}

.check input {
    width: auto;
    margin-right: 8px;
}

/* =========================
   BUTTON
========================= */
button {
    width: 100%;
    background: #f7931e;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.2s;
}

button:hover {
    background: #ffa733;
}

/* =========================
   COOKIES
========================= */
.cookie {
    position: fixed;
    bottom: 20px;              /* separación del borde */
    left: 50%;
    transform: translateX(-50%); /* centrado horizontal */

    max-width: 600px;         /* ancho máximo */
    width: calc(100% - 40px); /* margen lateral en móvil */

    background: #111;
    color: #fff;
    padding: 15px 20px;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;

    border-radius: 10px;      /* opcional, estilo moderno */
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); /* elevación */

    z-index: 9999;
}.cookie {
    position: fixed;
    bottom: 20px;              /* separación del borde */
    left: 50%;
    transform: translateX(-50%); /* centrado horizontal */

    max-width: 600px;         /* ancho máximo */
    width: calc(100% - 40px); /* margen lateral en móvil */

    background: #6b6b6b;
    color: #fff;
    padding: 15px 20px;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;

    border-radius: 10px;      /* opcional, estilo moderno */
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); /* elevación */

    z-index: 9999;
}

.cookie-text {
    font-size: 14px;
}

.cookie-text a {
    color: #f7931e;
    margin-left: 5px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie .btn {
    border: 0;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.cookie .accept {
    background: #f7931e;
    color: #000;
}

.cookie .reject {
    background: #444;
    color: #fff;
}

.check {
    display: flex;
    align-items: flex-start;
    /* mejor para textos largos */
    gap: 10px;
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
}

.check input[type="checkbox"] {
    margin-top: 3px;
    /* ajuste fino vertical */
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #000;
    border-top: 1px solid #222;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1000px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* BRAND */
.footer-brand strong {
    color: #f7931e;
    font-size: 18px;
}

.footer-brand p {
    font-size: 13px;
    color: #777;
    margin: 5px 0 0;
}

/* SOCIAL */
.footer-social a {
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
}

.footer-social a:hover {
    color: #f7931e;
}

/* LINKS */
.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #f7931e;
}

/* BOTTOM */
.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #777;
    margin-top: 20px;
}

.legal-menu {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.legal-menu a {
    color: #f7931e;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #333;
    padding: 6px 10px;
    border-radius: 6px;
}

.legal-menu a:hover {
    background: #f7931e;
    color: #000;
}

.legal-content h2 {
    margin-top: 30px;
    font-size: 22px;
    color: #f7931e;
}

.legal-content p,
.legal-content li {
    font-size: 15px;
    line-height: 1.7;
    color: #ccc;
}

.legal-content ul {
    padding-left: 20px;
}

/* =========================
   DOCUMENTOS
========================= */

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.doc-card {
    background: #181818;
    border: 1px solid #222;
    padding: 20px;
    border-radius: 10px;
    transition: 0.2s;
}

.doc-card:hover {
    transform: translateY(-3px);
    border-color: #333;
}

/* tipo */
.doc-type {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 5px;
}

/* colores por tipo */
.doc-type.estatutos {
    background: #2c7;
    color: #000;
}

.doc-type.acta {
    background: #f7931e;
    color: #000;
}

.doc-type.otros {
    background: #555;
}

/* titulo */
.doc-card h3 {
    margin: 5px 0 10px;
}

/* fecha */
.doc-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

/* texto */
.doc-card p {
    font-size: 14px;
    color: #ccc;
}

/* botón */
.doc-btn {
    display: inline-block;
    margin-top: 15px;
    background: #f7931e;
    color: #000;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.doc-btn:hover {
    background: #ffa733;
}

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

    body {
        font-size: 16px;
    }

    /* LOGO */
    .logo img {
        height: 120px;
    }

    /* NAV */
    nav {
        gap: 12px;
        font-size: 22px;
    }

    nav a {
        font-size: 14px;
    }

    /* HERO */
    .hero {
        min-height: 55vh;
        padding: 30px 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    /* CONTENIDO */
    .container {
        padding: 25px 15px;
    }

    .card {
        padding: 20px;
    }

    .card h1 {
        font-size: 24px;
    }

    .card p {
        font-size: 16px;
        line-height: 1.6;
    }

    label {
        font-size: 13px;
    }

    .check {
        font-size: 13px;
    }

    button {
        font-size: 15px;
        padding: 12px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }



}