/* ============================================================
   COMPONENTES - Cabecera, pie, botones, tarjetas, formulario
   ============================================================ */

/* ---------- CABECERA / NAVBAR ---------- */
.cabecera {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tono-borde);
    box-shadow: var(--sombra-suave);
}

.cabecera__interior {
    max-width: var(--ancho-contenedor);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.cabecera__marca {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cabecera__icono {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--acento-fuerte), var(--acento));
    border-radius: var(--radio-pequeno);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sombra-suave);
    color: var(--texto-principal);
    font-weight: 700;
    font-size: 1.125rem;
}

.cabecera__nombre {
    color: var(--texto-principal);
    font-weight: 700;
    font-size: 1.125rem;
}

.cabecera__menu {
    display: flex;
    gap: 0.25rem;
}

.cabecera__enlace {
    padding: 0.5rem 1rem;
    border-radius: var(--radio-pequeno);
    color: var(--texto-secundario);
    transition: all var(--transicion-base);
}

.cabecera__enlace:hover {
    background: var(--tono-superficie-solido);
    color: var(--texto-principal);
}

.cabecera__enlace--activo {
    background: var(--acento-fuerte);
    color: var(--texto-principal);
}

.cabecera__hamburguesa {
    display: none;
    padding: 0.5rem;
    border-radius: var(--radio-pequeno);
    color: var(--texto-principal);
    transition: background var(--transicion-base);
}

.cabecera__hamburguesa:hover {
    background: var(--tono-superficie-solido);
}

.cabecera__hamburguesa svg {
    width: 24px;
    height: 24px;
}

.cabecera__menu-movil {
    display: none;
    background: var(--tono-fondo-1);
    border-top: 1px solid var(--tono-borde);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.cabecera__menu-movil.abierto {
    display: block;
    max-height: 400px;
    opacity: 1;
}

.cabecera__menu-movil-lista {
    padding: 0.5rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cabecera__enlace-movil {
    padding: 0.75rem 1rem;
    border-radius: var(--radio-pequeno);
    color: var(--texto-secundario);
    transition: all var(--transicion-base);
}

.cabecera__enlace-movil:hover {
    background: var(--tono-superficie-solido);
    color: var(--texto-principal);
}

.cabecera__enlace-movil--activo {
    background: var(--acento-fuerte);
    color: var(--texto-principal);
}

/* ---------- BOTONES ---------- */
.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radio-pequeno);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transicion-base);
    text-decoration: none;
    white-space: nowrap;
}

.boton--principal {
    background: linear-gradient(90deg, var(--acento-fuerte), #047857);
    color: var(--texto-principal);
    box-shadow: var(--sombra-acento);
}

.boton--principal:hover {
    background: linear-gradient(90deg, var(--acento), var(--acento-fuerte));
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

.boton--secundario {
    background: var(--tono-superficie-solido);
    color: var(--texto-principal);
    border: 1px solid var(--tono-borde-claro);
    box-shadow: var(--sombra-suave);
}

.boton--secundario:hover {
    background: #334155;
    transform: translateY(-2px);
    box-shadow: var(--sombra-media);
}

.boton--ancho-completo {
    width: 100%;
}

.boton__icono {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---------- TARJETAS ---------- */
.tarjeta {
    background: var(--tono-superficie);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radio-grande);
    padding: 1.5rem;
    border: 1px solid var(--tono-borde);
    box-shadow: var(--sombra-suave);
    transition: all var(--transicion-base);
}

.tarjeta:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: var(--sombra-media);
    transform: translateY(-4px);
}

.tarjeta__icono-marco {
    width: 48px;
    height: 48px;
    background: var(--acento-fuerte);
    border-radius: var(--radio-pequeno);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--texto-principal);
    box-shadow: var(--sombra-suave);
}

.tarjeta__titulo {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--texto-principal);
}

.tarjeta__numero {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--texto-principal);
    margin-bottom: 0.5rem;
}

.tarjeta__etiqueta {
    color: var(--texto-terciario);
    font-size: 0.9375rem;
}

/* ---------- ETIQUETAS / BADGES ---------- */
.etiqueta {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radio-circular);
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    width: fit-content;
}

.etiqueta--acento {
    background: var(--acento-tenue);
    color: var(--acento-suave);
    border: 1px solid rgba(16, 185, 129, 0.5);

}

.etiqueta--neutra {
    background: rgba(30, 41, 59, 0.8);
    color: var(--texto-secundario);
    border: 1px solid var(--tono-borde);
}

/* ---------- FORMULARIO ---------- */
.formulario {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.campo__etiqueta {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--texto-secundario);
}

.campo__entrada,
.campo__area {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radio-pequeno);
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--tono-borde-claro);
    color: var(--texto-principal);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transicion-base);
}

.campo__entrada::placeholder,
.campo__area::placeholder {
    color: var(--texto-suave);
}

.campo__entrada:focus,
.campo__area:focus {
    outline: none;
    border-color: var(--acento);
    box-shadow: 0 0 0 3px var(--acento-tenue);
}

.campo__area {
    resize: vertical;
    min-height: 140px;
}

/* ---------- PIE DE PÁGINA ---------- */
.pie {
    background: linear-gradient(135deg, var(--tono-fondo-1), var(--tono-fondo-2), var(--tono-fondo-3));
    color: var(--texto-principal);
    padding: 3rem 0;
    border-top: 1px solid var(--tono-borde);
}

.pie__rejilla {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pie__seccion-titulo {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--texto-principal);
}

.pie__marca {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pie__texto {
    color: var(--texto-terciario);
    line-height: 1.6;
}

.pie__lista {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pie__enlace {
    color: var(--texto-terciario);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transicion-base);
}

.pie__enlace:hover {
    color: var(--texto-principal);
}

.pie__copy {
    border-top: 1px solid var(--tono-borde-claro);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--texto-terciario);
}

/* ---------- HERO ---------- */
.hero {
    padding-top: 4rem;
    background: linear-gradient(135deg, var(--tono-fondo-1) 0%, var(--tono-fondo-2) 50%, #000 100%);
}

.hero__contenedor {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.hero__rejilla {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    max-width: var(--ancho-contenedor);
    width: 100%;
}

.hero__foto-marco {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero__halo {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--acento-fuerte), var(--acento), var(--acento-suave));
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.3;
}

.hero__foto {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(5, 150, 105, 0.5);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.2);
    background: linear-gradient(135deg, #334155, #475569, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__foto-emoji {
    font-size: 7rem;
}

.hero__decoracion {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sombra-media);
    font-size: 1.5rem;
}

.hero__decoracion--arriba {
    top: -16px;
    right: -16px;
    width: 80px;
    height: 80px;
    background: var(--acento-fuerte);
    font-size: 1.875rem;
}

.hero__decoracion--abajo {
    bottom: -16px;
    left: -16px;
    background: var(--violeta);
}

.hero__contenido {
    display: flex;
    flex-direction: column;
}

.hero__titulo {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--texto-principal);
    margin: 1rem 0;
    line-height: 1.1;
}

.hero__descripcion {
    font-size: 1.125rem;
    color: var(--texto-secundario);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 720px;
}

.hero__descripcion strong {
    color: var(--texto-principal);
}

.hero__acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero__estadisticas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* ---------- SECCIÓN GENÉRICA ---------- */
.seccion {
    padding: 6rem 0 5rem;
}

.seccion__cabecera {
    text-align: center;
    margin-bottom: 4rem;
}

.seccion__titulo {
    color: var(--texto-principal);
    margin-bottom: 1rem;
}

.seccion__subtitulo {
    font-size: 1.125rem;
    color: var(--texto-secundario);
    max-width: 720px;
    margin: 0 auto;
}

/* ---------- MODAL ---------- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.abierto {
    display: flex;
    animation: aparecerModal 0.3s ease;
}

.modal__caja {
    background: linear-gradient(135deg, var(--tono-fondo-1), var(--tono-fondo-2));
    border: 1px solid var(--tono-borde);
    border-radius: var(--radio-extra);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--sombra-fuerte);
}

.modal__cerrar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tono-superficie-solido);
    color: var(--texto-principal);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transicion-base);
}

.modal__cerrar:hover {
    background: var(--acento-fuerte);
    transform: rotate(90deg);
}

.modal__seccion {
    margin-bottom: 1.5rem;
}

.modal__etiqueta {
    color: var(--acento-suave);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal__texto {
    color: var(--texto-secundario);
    line-height: 1.7;
}
