/* =======================================================
   ATISF Data Space – Estilos globales
   Versión: 1.0
   Autor: Findirect / ATISF
   ======================================================= */

/* ----------------------------
   Tipografía base
----------------------------- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600;700&family=Inter:wght@400;700;800&display=swap');
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: .55; }
    50%      { transform: scale(1.08); opacity: .9;  }
}
:root {
    /* Paleta corporativa */
    --color-bg: #0f172a;
    --color-text: gray;
    --color-muted: #94a3b8;
    --color-accent: #23A6D6;
    --color-accent-strong: #1994c2;
    --color-card: #1e293b;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-ring: rgba(35, 166, 214, 0.4);

    /* Tipografía */
    --font-primary: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;

    /* Radios y sombras */
    --radius: 1rem;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* ----------------------------
   Reset y base
----------------------------- */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: 0.2s;
}
a:hover {
    color: var(--color-accent-strong);
}

/* ----------------------------
   Encabezados
----------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-top: 0;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Variante tecnológica */
.space-title {
    font-family: "Mattone 150",sans-serif; !important;
    font-weight: 800;
    font-size: 2.3rem;   /* ≈ 37 px ≈ 28 pt */
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.space-accent {
    color: var(--color-accent);
}

/* Ejemplo:
<h1 class="space-title">
  Bienvenido al <span class="space-accent">ATISF Data Space</span>
</h1>
*/

/* ----------------------------
   Botones
----------------------------- */
.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-strong));
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}
.btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Variante secundaria */
.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    box-shadow: none;
}
.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ----------------------------
   Tarjetas y contenedores
----------------------------- */
.card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.card h3 {
    margin-top: 0;
}

/* ----------------------------
   Formularios
----------------------------- */
input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    font-family: var(--font-primary);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-ring);
    border-color: var(--color-accent);
}

/* ----------------------------
   Utilidades
----------------------------- */
.text-muted {
    color: var(--color-muted);
}
.text-center {
    text-align: center;
}
.rounded {
    border-radius: var(--radius);
}
.shadow {
    box-shadow: var(--shadow);
}
.container {
    width: min(1120px, 90%);
    margin: 0 auto;
}
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }

/* ----------------------------
   Footer y enlaces legales
----------------------------- */
footer {
    background: #0b1220;
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-muted);
}



/* ----------------------------
   MEDIA QUERIES RESPONSIVE
----------------------------- */

@media (max-width: 400px) {
    #innerParticipa {
        padding-bottom: 12rem !important;
    }
}

@media (max-width: 640px) {
    #card {
        min-height: auto;
        height: auto;
    }

    #card-front, #card-back {
        position: absolute;
        padding: 1.5rem;
        border-radius: 1.25rem;
    }

    #card-front h2 {
        font-size: 1.4rem;
        line-height: 1.4;
    }

    #card-front p,
    #card-front ul li,
    #card-back p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    #card .max-w-3xl,
    #card .max-w-4xl {
        max-width: 100%;
    }

    #card-back form {
        max-width: 100%;
    }
}

