/* --- VARIABLES Y TEMA MANTENCIÓN --- */
:root {
    --primary: #0b1329;
    --primary-light: #16203d;
    --accent: #0284c7;
    --accent-light: #38bdf8;
    --accent-hover: #0369a1;
    --accent-glow: rgba(2, 132, 199, 0.35);
    --warning: #f59e0b;
    --danger: #ef4444;
    --success: #10b981;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- HEADER --- */
header {
    background-color: rgba(11, 19, 41, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    color: var(--warning);
}

.badge-sub {
    font-size: 0.75rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-light);
}

.back-link {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.16);
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO --- */
.hero {
    position: relative;
    background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0b1329 100%);
    color: white;
    padding: 6rem 1.5rem 5rem;
    text-align: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(2, 132, 199, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent-light);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

.btn-full {
    width: 100%;
}

/* --- METRICS BAR --- */
.metrics-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.metric-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-heading);
}

.metric-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- SECTIONS --- */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.section-title {
    font-size: 2.2rem;
    margin: 0.5rem 0 1rem;
    color: var(--primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2.2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-light);
}

.service-icon {
    width: 55px;
    height: 55px;
    background: rgba(2, 132, 199, 0.1);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-features {
    list-style: none;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.card-features li {
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-features li i {
    color: var(--success);
    font-size: 0.75rem;
}

/* --- SPLIT BOX --- */
.section-dark {
    background: var(--primary);
    color: white;
}

.split-box {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
}

.split-text h2 {
    font-size: 2.2rem;
    margin: 0.5rem 0 1.2rem;
}

.split-text p {
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.protocol-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.protocol-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.protocol-item i {
    font-size: 1.8rem;
    color: var(--accent-light);
    margin-top: 0.2rem;
}

.protocol-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.protocol-item p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0;
}

.split-card {
    background: var(--primary-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
}

.split-card h3 {
    margin-bottom: 0.8rem;
}

.split-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.emergency-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.2rem;
}

.emergency-call i {
    font-size: 1.8rem;
    color: var(--danger);
}

.emergency-call strong {
    display: block;
    font-size: 1.2rem;
    color: white;
}

/* --- TICKET FORM --- */
.ticket-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* --- FOOTER --- */
footer {
    background: #060b17;
    color: #94a3b8;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a:hover {
    color: white;
}

/* --- TOAST --- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0f172a;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
}

.toast.show {
    transform: translateY(0);
}

.toast-icon {
    font-size: 1.5rem;
    color: #10b981;
}

.toast-title {
    font-weight: 700;
    display: block;
}

.toast-message {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* --- RESPONSIVE --- */
@media (max-width: 868px) {
    .hero h1 { font-size: 2.1rem; }
    .split-box { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 2rem 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
}
