/* Variables globales */
:root {
    --bg-main: #080a0f;
    --bg-card: #12151f;
    --bg-card-hover: #181c29;
    --cyan: #00e5ff;
    --cyan-glow: rgba(0, 229, 255, 0.4);
    --text-primary: #ffffff;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.05);
    
    font-family: 'Outfit', sans-serif;
}

/* Reset y configuraciones base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Navegación */
.navbar {
    padding: 2rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(8, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    width: 220px; /* Ancho para que el texto encaje bien */
    height: 50px; /* Alto de la barra */
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta perfectamente los bordes negros de arriba y abajo de la imagen cuadrada */
    object-position: center; /* Mantiene el logo en el centro exacto */
    mix-blend-mode: screen; /* Magia: Hace que el fondo negro puro desaparezca y se integre a la web */
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.3)) contrast(1.1);
}

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

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--cyan);
}

.btn-outline {
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan) !important;
    box-shadow: 0 0 15px var(--cyan-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    text-align: left;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--cyan);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyan);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--cyan);
    text-shadow: 0 0 30px var(--cyan-glow);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-primary {
    background-color: var(--cyan);
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px var(--cyan-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50px;
    border: 2px solid var(--cyan);
    z-index: -1;
    animation: radarPulse 2s infinite;
}

@keyframes radarPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

.btn-secondary {
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary i {
    transition: transform 0.3s;
}

.btn-secondary:hover i {
    transform: translateY(3px);
    color: var(--cyan);
}

.hero-bg-glow {
    position: absolute;
    top: 30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
}

/* Services */
.services {
    padding: 8rem 0;
    background-color: #050609;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: var(--bg-card-hover);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 2rem;
    color: var(--cyan);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.service-subtitle {
    display: block;
    color: var(--cyan);
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-card p:not(.service-subtitle):not(.small-text):not(.service-footer p) {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.price-tag {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.price-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.price-desde {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.service-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.service-footer p {
    color: var(--text-primary);
}

.service-footer p strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 1rem;
}

.small-text {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    line-height: 1.5;
    margin-bottom: 0 !important;
}

.features {
    list-style: none;
}

.features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #e2e8f0;
}

.features li i {
    color: var(--cyan);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-main);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    font-size: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--cyan);
    color: #000;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    width: 90%;
    margin: 0 auto;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: transform 0.3s;
    text-decoration: none;
}

.fab:hover {
    transform: scale(1.1);
}

.fab-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: fabPulse 2s infinite;
}

@keyframes fabPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { width: 90%; }
    
    /* Hero Adjustments */
    .hero { padding-top: 100px; text-align: center; min-height: auto; padding-bottom: 4rem; }
    .hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
    .hero h1 { font-size: 2.2rem; margin-bottom: 1rem; line-height: 1.2; }
    .hero p { font-size: 1rem; margin-bottom: 2.5rem; padding: 0 5px; }
    .badge { font-size: 0.8rem; padding: 0.4rem 0.8rem; margin-bottom: 1.5rem; }
    
    /* Buttons */
    .hero-actions { flex-direction: column; width: 100%; gap: 1.2rem; align-items: center; }
    .btn-primary { width: 100%; justify-content: center; padding: 1.2rem; font-size: 1.1rem; }
    .btn-secondary { padding: 0.5rem; }
    
    /* Services Section */
    .section-header { margin-bottom: 3rem; }
    .section-header h2 { font-size: 2rem; }
    .section-header p { font-size: 1rem; padding: 0 10px; }
    .services { padding: 4rem 0; }
    .service-card { padding: 2rem 1.2rem; border-radius: 20px; }
    .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .price-tag { font-size: 2.5rem; }
    
    /* Navbar & Footer */
    .nav-content { justify-content: center; } /* Centramos el logo en mobile */
    .nav-links { display: none; }
    .logo { width: 180px; height: 40px; margin: 0 auto; } /* Logo un poco más compacto */
    .footer-content { flex-direction: column; text-align: center; gap: 1.5rem; }
    .footer-brand p { font-size: 0.9rem; margin-top: 1rem; }
    
    /* Floating button */
    .fab { bottom: 20px; right: 20px; width: 55px; height: 55px; font-size: 2rem; }
    
    /* Hiding glow on mobile to 100% guarantee no horizontal overflow bugs on older devices */
    .hero-bg-glow { display: none; }
}
