/* Valencia Esquivel — estilos personalizados
   (Tailwind CSS se sigue cargando vía CDN en el <head> del HTML;
   este archivo solo contiene las reglas escritas a mano.) */

body {
    background-color: #0b0f17;
    color: #f1f5f9;
    font-family: 'Inter', sans-serif;
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.gold-border {
    border-color: rgba(212, 175, 55, 0.25);
}

.gold-glow {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

/* ===== Menú móvil ===== */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
}
.mobile-menu.open {
    max-height: 480px;
}

/* ===== Aparición suave al hacer scroll ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Sección OSINT: terminal + acentos verdes ===== */
.grid-bg {
    background-image:
        linear-gradient(rgba(74, 222, 128, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 222, 128, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.terminal-window {
    position: relative;
    background: linear-gradient(180deg, #0d1420 0%, #0b0f17 100%);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow:
        0 0 40px rgba(74, 222, 128, 0.06),
        inset 0 1px 0 rgba(74, 222, 128, 0.08);
}

.terminal-header {
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.06) 0%, transparent 100%);
    border-bottom: 1px solid rgba(74, 222, 128, 0.15);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-line {
    opacity: 0;
    animation: typeLine 0.5s ease forwards;
}
.terminal-line:nth-child(1) { animation-delay: 0.2s; }
.terminal-line:nth-child(2) { animation-delay: 0.5s; }
.terminal-line:nth-child(3) { animation-delay: 0.8s; }
.terminal-line:nth-child(4) { animation-delay: 1.1s; }
.terminal-line:nth-child(5) { animation-delay: 1.4s; }
.terminal-line:nth-child(6) { animation-delay: 1.7s; }
.terminal-line:nth-child(7) { animation-delay: 2.0s; }
.terminal-line:nth-child(8) { animation-delay: 2.3s; }
.terminal-line:nth-child(9) { animation-delay: 2.6s; }

@keyframes typeLine {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.cursor-blink {
    display: inline-block;
    width: 7px;
    height: 14px;
    background: #4ade80;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 4px;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.scan-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.6), transparent);
    animation: scan 4s linear infinite;
    pointer-events: none;
}
@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.tool-chip {
    background: rgba(74, 222, 128, 0.05);
    border: 1px solid rgba(74, 222, 128, 0.2);
    transition: all 0.3s ease;
}
.tool-chip:hover {
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.5);
    transform: translateY(-2px);
}
