/* Variables corporativas - Consulting Core Tech */
:root {
    --bg-dark: #0b0f19;
    --bg-card: #111827;
    --text-light: #f9fafb;
    --text-gray: #9ca3af;
    --accent-blue: #2563eb;
    --accent-hover: #1d4ed8;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

/* ── Contenedor principal ── */
.contenedor-principal {
    text-align: center;
    max-width: 950px;
    padding: 3rem 2rem;
}

.subtitulo-superior {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--accent-blue);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.2rem;
}

h1 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    background: linear-gradient(to right, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.descripcion {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Botón principal ── */
.boton-accion {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.boton-accion:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}
 /* ── Botón secundario ── */
.boton-secundario {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--accent-blue);
    margin-left: 1rem;
    transition: all 0.2s ease;
}

.boton-secundario:hover {
    background-color: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.boton-accion:active,
.boton-secundario:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
}
.boton-accion:active {
    transform: translateY(0);
}

/* ── Pie de la página── */
.pie-de-pagina {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0d1117;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 2rem;
    font-size: 0.88rem;
    color: var(--text-gray);
    text-align: center;
    max-width: none;
    border-radius: 0;
}

.pie-de-pagina strong {
    color: var(--text-light);
}

.pie-de-pagina strong {
    color: var(--text-light);
}

/* ── Modal overlay ── */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #1e293b;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 16px;
    position: relative;
    text-align: left;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.modal-content h2 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--text-light);
    /* Resetear gradiente del h1 global */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.modal-sub {
    font-size: 0.88rem;
    color: var(--text-gray);
    margin-bottom: 1.2rem;
}

.cerrar-modal {
    position: absolute;
    top: 15px; right: 15px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.cerrar-modal:hover {
    color: white;
}

/* ── Formulario ── */
.form-fila-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-grupo {
    margin-bottom: 14px;
}

.form-grupo label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.88rem;
    color: var(--text-light);
}

.opcional {
    color: var(--text-gray);
    font-size: 0.8rem;
}

.form-grupo input,
.form-grupo textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    background: #0f172a;
    border: 1px solid #334155;
    color: white;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-grupo input:focus,
.form-grupo textarea:focus {
    border-color: var(--accent-blue);
}

.form-grupo textarea {
    resize: vertical;
    min-height: 90px;
}

/* ── Botón enviar modal ── */
.boton-enviar-modal {
    width: 100%;
    padding: 12px;
    border: none;
    background: var(--accent-blue);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
    margin-top: 4px;
}

.boton-enviar-modal:hover {
    background-color: var(--accent-hover);
}

/* ── Responsive ── */
@media (max-width: 540px) {
    h1 {
        font-size: 1.8rem;
    }

    .form-fila-2 {
        grid-template-columns: 1fr;
    }
}
/* ── Dropdown ── */
.dropdown {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 220px;
    overflow: hidden;
    z-index: 1000;
    margin-top: -4px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.15s;
}

.dropdown-menu a:hover {
    background: #f0f4ff;
    color: var(--accent-blue);
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}