.hero-contact-line:nth-child(1) { animation-delay: 0.2s; }
.hero-contact-line:nth-child(2) { animation-delay: 0.3s; }
.hero-contact-line:nth-child(3) { animation-delay: 0.4s; }
.hero-contact-line:nth-child(4) { animation-delay: 0.5s; }
.hero-contact-line:nth-child(5) { animation-delay: 0.6s; }
.hero-contact-line:nth-child(6) { animation-delay: 0.7s; }
.hero-contact-line:nth-child(7) { animation-delay: 0.8s; }
.hero-contact-line:nth-child(8) { animation-delay: 0.9s; }
.hero-contact-line:nth-child(9) { animation-delay: 1s; }
.hero-contact-line:nth-child(10) { animation-delay: 1.1s; }

@keyframes heroCodeFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
:root {
    --blink-blue: #3587be;
    --blink-purple: #2d6fa0;
    --surface-dark: rgba(15, 23, 42, 0.65);
    --text-soft: #cbd5f5;
    --text-muted: #94a3b8;
    --danger: #f87171;
    --success: #34d399;
}

body {
    font-family: "TT Commons Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at 30% 20%, #1d2b44 0%, rgba(13, 22, 43, 0.95) 45%, rgba(6, 10, 24, 0.92) 80%), linear-gradient(135deg, #0f172a 0%, #050c1d 60%);
    color: #e2e8f0;
}

.contact-section {
    isolation: isolate;
}

.hero-contact {
    position: relative;
    padding: clamp(6rem, 12vw, 8.5rem) 0 5rem;
    background: radial-gradient(circle at 10% 20%, rgba(53, 135, 190, 0.25), transparent 50%),
        radial-gradient(circle at 80% 0%, rgba(45, 111, 160, 0.25), transparent 52%),
        linear-gradient(135deg, rgba(5, 10, 24, 0.95), rgba(9, 15, 32, 0.92));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.hero-contact::before,
.hero-contact::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-contact::before {
    background: linear-gradient(90deg, rgba(53, 135, 190, 0.12), rgba(45, 111, 160, 0.12));
    opacity: 0.5;
}

.hero-contact::after {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transform: skewY(-4deg);
    opacity: 0.4;
}

.hero-contact-grid {
    position: relative;
    display: grid;
    gap: clamp(2.5rem, 6vw, 4rem);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    z-index: 1;
}

.hero-contact-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.6);
    color: rgba(226, 232, 240, 0.95);
    font-weight: 500;
    font-size: 0.95rem;
}

.hero-contact-title {
    font-size: clamp(2.7rem, 5vw, 3.9rem);
    line-height: 1.1;
    font-weight: 700;
    color: #f8fafc;
}

.hero-contact-description {
    font-size: 1.1rem;
    color: rgba(226, 232, 240, 0.9);
}

.hero-contact-list {
    display: grid;
    gap: 0.85rem;
}

.hero-contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(226, 232, 240, 0.92);
    font-size: 0.98rem;
}

.hero-contact-list li svg {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--blink-blue);
    flex-shrink: 0;
}

.hero-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-contact-buttons .btn {
    min-width: 180px;
}

.hero-contact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.hero-contact-stat {
    padding: 1.2rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.55);
    box-shadow: 0 20px 40px rgba(6, 11, 25, 0.45);
    transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
    position: relative;
    overflow: hidden;
}

.hero-contact-stat strong {
    display: block;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.hero-contact-stat span {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.75);
}

.hero-contact-stat::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    transition: border-color 250ms ease;
}

.hero-contact-stat:hover {
    transform: translateY(-8px);
    border-color: rgba(53, 135, 190, 0.35);
    box-shadow: 0 30px 60px rgba(8, 14, 35, 0.55);
}

.hero-contact-stat:hover::after {
    border-color: rgba(255, 255, 255, 0.08);
}

.hero-contact-visual {
    position: relative;
}

.hero-contact-screen {
    position: relative;
    border-radius: 2rem;
    padding: 2.5rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(8, 13, 31, 0.85);
    box-shadow: 0 35px 80px rgba(3, 7, 18, 0.6);
    overflow: hidden;
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.hero-contact-screen::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.hero-contact-screen:hover {
    transform: translateY(-8px);
    border-color: rgba(53, 135, 190, 0.35);
    box-shadow: 0 45px 90px rgba(5, 10, 25, 0.65);
}

.hero-contact-screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(226, 232, 240, 0.8);
    font-size: 0.9rem;
}

.screen-dots {
    display: inline-flex;
    gap: 0.4rem;
}

.screen-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.screen-dot.red { background: #ef4444; }
.screen-dot.yellow { background: #f59e0b; }
.screen-dot.green { background: #10b981; }

.screen-title {
    font-weight: 600;
    color: rgba(226, 232, 240, 0.9);
}

.hero-contact-code {
    font-family: 'JetBrains Mono', 'Space Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #e2e8f0;
    position: relative;
}

.hero-contact-line {
    display: flex;
    gap: 0.5rem;
    color: rgba(226, 232, 240, 0.9);
    transition: color 200ms ease, transform 200ms ease;
    opacity: 0;
    transform: translateY(10px);
    animation: heroCodeFade 0.6s ease forwards;
}

.hero-contact-line + .hero-contact-line {
    margin-top: 0.25rem;
}

.hero-contact-line.line-number {
    position: absolute;
    left: -2rem;
    color: rgba(148, 163, 184, 0.5);
}

.token.keyword { color: #c084fc; }
.token.function { color: #60a5fa; }
.token.string { color: #86efac; }
.token.comment { color: #94a3b8; font-style: italic; }

.hero-contact-screen:hover .hero-contact-line {
    color: rgba(255, 255, 255, 0.95);
    transform: translateX(2px);
}

.hero-contact-screen:hover .token.keyword {
    color: #d8b4fe;
}

.hero-contact-screen:hover .token.function {
    color: #93c5fd;
}

.hero-contact-screen:hover .token.string {
    color: #bbf7d0;
}

.hero-contact-screen:hover .token.comment {
    color: rgba(148, 163, 184, 0.9);
}

.hero-contact-meta {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-contact-pill {
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.85);
}

@media (max-width: 768px) {
    .hero-contact {
        padding-top: 5rem;
    }

    .hero-contact-card {
        padding: 2rem;
    }
}

.contact-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(53, 135, 190, 0.25), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(45, 111, 160, 0.2), transparent 45%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(9, 15, 32, 0.9));
    opacity: 0.75;
    z-index: -1;
}

.glass-panel,
.contact-form-card {
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.5);
    transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.glass-panel:hover,
.contact-form-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 50px 140px rgba(4, 9, 25, 0.75);
}

.info-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 1.5rem;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(53, 135, 190, 0.12));
    border: 1px solid rgba(148, 163, 184, 0.25);
    transition: border-color 220ms ease, transform 220ms ease;
}

.info-pill:hover {
    transform: translateX(4px);
    border-color: rgba(248, 250, 252, 0.35);
}

.form-input {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(248, 250, 252, 0.08);
    padding: 0.95rem 1.1rem;
    color: #f8fafc;
    font-size: 1rem;
    transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.form-input::placeholder {
    color: rgba(148, 163, 184, 0.8);
}

.form-input:focus {
    border-color: rgba(53, 135, 190, 0.7);
    box-shadow: 0 0 0 3px rgba(53, 135, 190, 0.25);
    background: rgba(248, 250, 252, 0.15);
    outline: none;
}

.form-input.error {
    border-color: rgba(248, 113, 113, 0.9);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.form-error {
    font-size: 0.85rem;
    color: var(--danger);
    min-height: 1rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.form-error.show {
    opacity: 1;
    transform: translateY(0);
}

.form-status {
    border-radius: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.form-status.hidden {
    display: none;
}

.form-status.success {
    border-color: rgba(52, 211, 153, 0.4);
    color: var(--success);
    background: rgba(52, 211, 153, 0.08);
}

.form-status.error {
    border-color: rgba(248, 113, 113, 0.4);
    color: var(--danger);
    background: rgba(248, 113, 113, 0.08);
}

.form-status.info {
    border-color: rgba(125, 211, 252, 0.35);
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.08);
}

.glass-panel {
    background: rgba(248, 250, 252, 0.08);
}

.contact-form-card {
    background: rgba(15, 23, 42, 0.65);
}

.reveal {
    animation: fadeInUp 0.9s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .glass-panel,
    .contact-form-card {
        padding: 2rem;
    }

    .info-pill {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* Ajustes del header dentro de esta página oscura */
.header-premium {
    color: #0f172a;
}

.header-premium .nav-link-premium {
    color: #0f172a;
}
