/* ============================================================
   CONFIGURACIÓN DE COLORES Y ESTILOS (Variables)
   Aquí se pueden cambiar los colores principales de la página.
   ============================================================ */
:root {
    --bg-color: #050505;        /* Color de fondo (negro) */
    --text-primary: #ffffff;    /* Color del texto principal (blanco) */
    --text-secondary: #999999;  /* Color del texto secundario (gris) */
    --accent: #ffffff;          /* Color de realce (botones y logo) */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Velocidad de animaciones */
}

/* Borra los márgenes por defecto del navegador */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    height: 100vh;
    width: 100%;
    overflow: hidden; /* Evita que aparezcan barras de desplazamiento */
    display: flex;
    flex-direction: column;
    position: relative;
}

/* El fondo animado (estilo plano arquitectónico) */
#blueprint-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
}

/* Contenedores de contenido (encima del fondo) */
nav,
main,
footer {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* BARRA DE NAVEGACIÓN (Logo) */
nav {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--text-primary);
    text-transform: uppercase;
}

.logo span {
    font-weight: 300;
    color: var(--text-secondary);
}

/* CONTENIDO PRINCIPAL */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 10%;
    text-align: center;
}

.content-wrap {
    max-width: 800px;
    animation: reveal 1.2s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animación de entrada de los textos */
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tagline {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

h1 span {
    color: var(--text-secondary);
    font-weight: 300;
}

/* BOTÓN DE CONTACTO */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--accent);
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
    border: 1px solid var(--accent);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.08);
}

/* VENTANA DE CONTACTO (Modal) */
.contact-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3.25rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(15px); /* Efecto de desenfoque detrás del modal */
    text-align: left;
    min-width: 390px;
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.contact-item {
    margin-bottom: 1.2rem;
}

.contact-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
}

/* Botón para cerrar el modal (X) */
.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-primary);
}

/* Fondo oscuro que aparece tras el modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(8px);
}

/* PIE DE PÁGINA */
footer {
    padding: 2rem 5%;
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
}

/* Fondo de reserva si la animación falla */
.fallback-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #111 0%, #050505 100%);
    z-index: 0;
}
.seo-text {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
