/* =========================
   BASE
========================= */

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: black;
    color: white;
}

/* =========================
   CABECERA (FIEL PDF)
========================= */

.header {
	z-index: 3;
    position: fixed;
    top: 0;
    width: 95%;

    padding: 25px 60px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    z-index: 10;

    /* degradado superior como el PDF */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0)
    );
}

.logo {
    font-size: 13px;
    letter-spacing: 8px;
    font-weight: 300;
}


.logo img {
    height: 200px;   /* ajusta según veas */
    object-fit: contain;
}

.logo_peque img {
    height: 100px;   /* ajusta según veas */
    object-fit: contain;
}

.logo_peque p {
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 300;
    margin: 0;
    padding: 0;
}


.top-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;

    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0)
    );

    z-index: 1;
	pointer-events: none;
}

/* menú alineado y espaciado tipo ingeniería */
.menu {
    display: flex;
    gap: 25px;
    align-items: center;

    flex-wrap: wrap;          /* evita desbordes */
    max-width: 100%;

}

.menu a {
    font-size: 11px;
    text-decoration: none;
    color: white;

    letter-spacing: 3px;
    font-weight: 300;

    opacity: 0.75;
    transition: 0.3s;
}

/* efecto muy sutil como web corporativa */
.menu a:hover {
    opacity: 1;
}

/* =========================
   HERO
========================= */

.hero {
    height: 100vh;
    background: url("fondo.jpg") center/cover no-repeat;
    position: relative;
}

/* oscurecer como el PDF */
.overlay {
	z-index: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
}

/* texto centrado */
.hero-content {
    position: relative;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    text-align: center;
}

.hero-content p {
    font-size: 36px;
    margin: 5px 0;
    font-weight: 500;
}

/* =========================
   TARJETAS
========================= */

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;

    margin-top: -80px;
    padding: 40px;

    flex-wrap: wrap;
}

/* efecto cristal suave */
.card {
    width: 260px;

    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);

    border-radius: 12px;

    padding: 20px;

    text-decoration: none;
    color: white;

    transition: 0.3s;

    border: 1px solid rgba(255,255,255,0.1);
}

/* hover discreto (no exagerado) */
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.25);
}

.card h3 {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.card p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

/* =========================
   FOOTER (FIEL PDF)
========================= */

.footer {
    background: rgba(0,0,0,0.9);

    padding: 30px 60px;

    font-size: 11px;
    color: rgba(255,255,255,0.75);

    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* línea superior */
.footer-top {
    font-size: 11px;
}

/* enlaces legales */
.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: white;
}

/* subvención */
.footer-subvencion {
    font-size: 10px;
    opacity: 0.6;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    /* CABECERA */
    .header {
        padding: 20px;
        flex-direction: column;
        gap: 10px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .menu a {
       font-size: 10px; 


    }

    /* HERO */
    .hero-content p {
        font-size: 24px;
    }

    /* TARJETAS */
    .cards {
        flex-direction: column;
        align-items: center;
        margin-top: -50px;
    }

    .card {
        width: 90%;
    }

    /* FOOTER */
    .footer {
        padding: 20px;
        text-align: center;
        align-items: center;
    }

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

/* =========================
   PÁGINAS LEGALES
========================= */

.legal-content {
    max-width: 900px;
/*    margin: 120px auto 60px auto; */ /* espacio por header */
	margin: 40px auto 60px auto;
    padding: 0 20px;

    color: #111;          /* texto oscuro */
}

/* fondo blanco SOLO en el contenido */
.legal-content {
    background: white;
    padding: 40px;
    border-radius: 6px;
}

/* tipografía */
.legal-content h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.legal-content h2 {
    margin-top: 30px;
    font-size: 18px;
}

.legal-content p {
    line-height: 1.6;
    font-size: 14px;
}

/* enlaces */
.legal-content a {
    color: #0070c0;
    text-decoration: none;
}


/* =========================
   HEADER NO FIJO EN LEGALES
========================= */

.legal-page .header {
    position: relative;  /* 🔥 deja de ser fixed */
}

/* =========================
   FORMATO DE TABLA
========================= */
.legal-content table {
    border-collapse: collapse;
    width: 100%;
}

.legal-content table td,
.legal-content table th {
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: top;
    background: transparent;
}

.legal-content table tr:nth-child(odd) {
    background-color: #ffffff;
}

.legal-content table tr:nth-child(even) {
    background-color: #f5f5f5;
}
/* =========================
   TAMAÑO DE LOS SUPERINDICES
========================= */
.legal-content sup {
    font-size: 8px;
    vertical-align: super;
    line-height: 0;
}

/* =========================
   NOTAS LEGALES
========================= */

.legal-notes {
    font-size: 11px;
    color: #666;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}
