/* ============================================
   VARIABLES
   ============================================ */
   :root {
    --fondo: #0a1330;
    --fondo-2: #0e1a3e;
    --fondo-3: #142352;
    --morado: #a020f0;
    --morado-suave: #c266ff;
    --verde: #3cb371;
    --amarillo: #ffc107;
    --rojo: #e53935;
    --azul: #2196f3;
    --texto: #ffffff;
    --texto-suave: #a7b3cc;
    --borde: rgba(255,255,255,0.08);
    --fuente-titulos: 'Space Grotesk', system-ui, sans-serif;
    --fuente-textos: 'Inter', system-ui, sans-serif;
    --fuente-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--fuente-textos);
    background-color: var(--fondo);
    color: var(--texto);
    line-height: 1.65;
    overflow-x: hidden;
}

/* Fondo decorativo global */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(160,32,240,0.15) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(33,150,243,0.12) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4 { font-family: var(--fuente-titulos); line-height: 1.15; letter-spacing: -0.02em; }

a { color: inherit; }

/* ============================================
   CABECERA
   ============================================ */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    background: rgba(10, 19, 48, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--borde);
}

.logo { height: 90px; width: auto; }

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--texto-suave);
    transition: color 0.25s;
}

nav a:hover { color: var(--texto); }

/* ============================================
   ETIQUETAS Y TÍTULOS DE SECCIÓN
   ============================================ */
.etiqueta {
    font-family: var(--fuente-mono);
    font-size: 0.85rem;
    color: var(--morado-suave);
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.encabezado-seccion {
    max-width: 1100px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.encabezado-seccion h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 1rem;
}

.subtitulo {
    color: var(--texto-suave);
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2.5rem 7rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.degradado {
    background: linear-gradient(90deg, var(--morado-suave), var(--azul), var(--verde));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-texto {
    color: var(--texto-suave);
    font-size: 1.1rem;
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-botones { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.3s, background 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primario {
    background: linear-gradient(135deg, var(--morado), var(--azul));
    color: var(--texto);
    box-shadow: 0 10px 30px rgba(160,32,240,0.35);
}

.btn-primario:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(160,32,240,0.5);
}

.btn-secundario {
    background: transparent;
    color: var(--texto);
    border: 1px solid var(--borde);
}

.btn-secundario:hover {
    border-color: var(--morado-suave);
    color: var(--morado-suave);
}

/* ============================================
   TERMINAL
   ============================================ */
.terminal {
    background: #060c22;
    border: 1px solid var(--borde);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(160,32,240,0.15);
    font-family: var(--fuente-mono);
    font-size: 0.9rem;
}

.terminal-barra {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #0b1330;
    border-bottom: 1px solid var(--borde);
}

.punto { width: 12px; height: 12px; border-radius: 50%; }
.punto-rojo { background: #ff5f57; }
.punto-amarillo { background: #ffbd2e; }
.punto-verde { background: #28c840; }

.terminal-titulo {
    margin-left: 0.75rem;
    color: var(--texto-suave);
    font-size: 0.8rem;
}

.terminal-cuerpo { padding: 1.25rem 1.5rem; }

.terminal-cuerpo p { line-height: 1.9; color: var(--texto); }
.prompt { color: var(--verde); margin-right: 0.5rem; }
.salida { color: var(--texto-suave); }

.cursor {
    color: var(--morado-suave);
    animation: parpadeo 1s steps(2, start) infinite;
}

@keyframes parpadeo {
    to { visibility: hidden; }
}

/* ============================================
   SERVICIOS
   ============================================ */
#servicios {
    padding: 6rem 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    .grid-servicios { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .grid-servicios { grid-template-columns: 1fr; }
}

.tarjeta-servicio {
    background: linear-gradient(180deg, var(--fondo-2), var(--fondo-3));
    padding: 2rem 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--borde);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-servicio:hover {
    transform: translateY(-6px);
    border-color: rgba(160,32,240,0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 40px rgba(160,32,240,0.15);
}

.icono {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.icono svg { width: 26px; height: 26px; }

.icono-verde { background: rgba(60,179,113,0.15); color: var(--verde); }
.icono-morado { background: rgba(160,32,240,0.15); color: var(--morado-suave); }
.icono-amarillo { background: rgba(255,193,7,0.15); color: var(--amarillo); }
.icono-rojo { background: rgba(229,57,53,0.15); color: var(--rojo); }
.icono-azul { background: rgba(33,150,243,0.15); color: var(--azul); }

.tarjeta-servicio h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.tarjeta-servicio p {
    color: var(--texto-suave);
    font-size: 0.95rem;
}

/* ============================================
   PROCESO
   ============================================ */
#proceso {
    padding: 6rem 2.5rem;
    background: rgba(14, 26, 62, 0.4);
    border-top: 1px solid var(--borde);
    border-bottom: 1px solid var(--borde);
}

.grid-pasos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.paso { position: relative; }

.paso-numero {
    font-family: var(--fuente-mono);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--morado-suave);
    opacity: 0.7;
    display: block;
    margin-bottom: 1rem;
}

.paso h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.paso p { color: var(--texto-suave); font-size: 0.95rem; }

/* ============================================
   SOBRE NOSOTROS
   ============================================ */
   #sobre-nosotros {
    padding: 6rem 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-quien-soy {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3.5rem;
    align-items: start;
}

.foto-placeholder {
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--borde);
    background: var(--fondo-2);
    padding: 0;
    display: block;
    align-self: start;
}

.foto-placeholder svg {
    display: block;
    width: 100%;
    height: 100%;
}

.texto-quien-soy p {
    color: var(--texto-suave);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

.texto-quien-soy strong {
    color: var(--texto);
}

.firma {
    font-family: var(--fuente-mono);
    color: var(--morado-suave) !important;
    font-size: 0.95rem !important;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--borde);
}

/* ============================================
   CONTACTO
   ============================================ */
#contacto {
    padding: 6rem 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-contacto {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: start;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--texto-suave);
}

input, textarea {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--borde);
    background: var(--fondo-2);
    color: var(--texto);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--morado);
    box-shadow: 0 0 0 3px rgba(160,32,240,0.2);
}

form .btn { align-self: flex-start; }

.info-contacto {
    background: var(--fondo-2);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--borde);
}

.info-contacto h3 {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.info-contacto ul { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }

.info-contacto li { display: flex; gap: 1rem; align-items: center; }

.info-icono { font-size: 1.4rem; }

.info-label {
    display: block;
    font-size: 0.8rem;
    color: var(--texto-suave);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-contacto a {
    text-decoration: none;
    color: var(--morado-suave);
    font-weight: 500;
}

.info-contacto a:hover { color: var(--texto); }

/* ============================================
   PIE
   ============================================ */
footer {
    background: #060c22;
    border-top: 1px solid var(--borde);
    padding: 4rem 2.5rem 2rem;
    margin-top: 4rem;
}

.footer-contenido {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--morado-suave);
    font-family: var(--fuente-mono);
    font-weight: 500;
}

.footer-col p { color: var(--texto-suave); font-size: 0.95rem; }

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col a {
    text-decoration: none;
    color: var(--texto-suave);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--morado-suave); }

.footer-copy {
    text-align: center;
    color: var(--texto-suave);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid var(--borde);
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding: 4rem 1.5rem; }
    .grid-contacto { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-contenido { grid-template-columns: 1fr; gap: 2rem; }
    .grid-quien-soy { grid-template-columns: 1fr; gap: 2rem; }
}


@media (max-width: 768px) {
    header { padding: 1rem 1.25rem; flex-direction: column; gap: 1rem; }
    nav ul { gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
    nav a { font-size: 0.9rem; }
    section { padding: 4rem 1.5rem !important; }
    .encabezado-seccion { margin-bottom: 2.5rem; }
}
/* ============================================
   ANIMACIÓN DEL MENÚ
   ============================================ */
   nav a {
    position: relative;
    padding-bottom: 4px;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--morado-suave), var(--azul));
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

nav a:hover::after,
nav a.activo::after {
    transform: scaleX(1);
    transform-origin: left;
    filter: brightness(1.4); 
}

nav a.activo {
    color: var(--texto);
}
/* ============================================
   BOTÓN VOLVER ARRIBA
   ============================================ */
   .btn-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--morado), var(--azul));
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, box-shadow 0.3s;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(160,32,240,0.4);
}

.btn-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-top:hover {
    box-shadow: 0 15px 40px rgba(160,32,240,0.6);
    transform: translateY(-3px);
}
/* ============================================
   SCROLL REVEAL
   ============================================ */
   .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Retardo escalonado para que no aparezcan todos a la vez */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* Cursor de la terminal: parpadeo más suave */
.cursor {
    color: var(--morado-suave);
    animation: parpadeo 0.9s steps(2, start) infinite;
}
nav li:nth-child(1) a::before { background: var(--verde); }
nav li:nth-child(2) a::before { background: var(--amarillo); }
nav li:nth-child(3) a::before { background: var(--rojo); }
nav li:nth-child(4) a::before { background: var(--azul); }
nav li:nth-child(5) a::before { background: var(--morado-suave); }
nav a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background: var(--morado-suave);
    border-radius: 3px;
}

/* ============================================
   FAQ
   ============================================ */
   #faq {
    padding: 6rem 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.grid-faq {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--fondo-2);
    border: 1px solid var(--borde);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(160,32,240,0.4);
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-family: var(--fuente-titulos);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--texto);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.25s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-family: var(--fuente-mono);
    font-size: 1.4rem;
    color: var(--morado-suave);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary:hover {
    color: var(--morado-suave);
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    color: var(--texto-suave);
    font-size: 1rem;
    line-height: 1.7;
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--borde);
    margin-bottom: 1rem;
}
