/* --- VARIABLES Y CONFIGURACIÓN --- */
:root {
    --bg-main: #05070b;
    --bg-dark: #0a192f;        /* Midnight Blue del logo */
    --bg-card: #111827;
    --bg-card-soft: #0f172a;
    --accent: #00e5ff;         /* Electric Cyan del logo */
    --accent-soft: #7ff4ff;    /* Versión clara para brillos */
    --accent-strong: #00b4cc;  /* Versión oscura para degradados */
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border-soft: rgba(0, 229, 255, 0.2); 
    --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.7);
    --radius-lg: 18px;
    --radius-pill: 999px;
}

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

body {
    font-family: "Montserrat", system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at top, #020617 0%, #020617 35%, #000000 100%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* --- NAVBAR --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.96), rgba(10, 25, 47, 0.75), transparent);
    border-bottom: 1px solid var(--border-soft);
}

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

/* nav-logo ahora es un <a>, se comporta como marca clickeable */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-logo:hover {
    color: var(--accent); /* también cambia el color del SVG por currentColor */
}

.logo-icon {
    height: 42px;
    width: 42px;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* --- HERO SECTION --- */
.hero {
    padding: 8rem 0 5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.3rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, var(--accent-soft));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* --- BOTONES --- */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #05070b;
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--accent-soft);
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.5);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 1);
    border-color: var(--accent);
}

/* --- LOGO CARD (ESTILO TARJETA PRESENTACIÓN) --- */
.hero-logo-card {
    background: radial-gradient(circle at top, rgba(0, 229, 255, 0.12), var(--bg-dark));
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

/* Contenedor circular del logo en la tarjeta */
.hero-logo-wrapper {
    background: #020617;
    border-radius: 50%;
    padding: 1.5rem;
    border: 1px solid var(--accent);
    box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.2);
    position: relative;
    overflow: hidden;
    width: 160px; 
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent); /* el SVG usa currentColor, así aquí se ve en cyan */
}

@keyframes scan {
    0% { top: -100%; }
    100% { top: 100%; }
}

.hero-logo-wrapper .logo-icon {
    height: 100px;
    width: 100px;
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.5));
}

.hero-card-text {
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-main);
}

/* --- CARDS SERVICIOS --- */
.section { padding: 2rem 0; }

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

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.8rem;
    border: 1px solid var(--border-soft);
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.card h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.card-list{
    padding-left: 40px;
}

/* --- CONTACTO --- */
.contact-form {
    background: var(--bg-card-soft);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border-soft);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.form-group input, .form-group textarea {
    width: 100%;
    background: #020617;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent);
}

/* --- WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    right: 2rem; bottom: 2rem;
    width: 60px; height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease;
    z-index: 100;
}

.whatsapp-float:hover { transform: scale(1.1); }

/* --- RESPONSIVE --- */
@media (max-width: 960px) {
    .hero-grid, .cards-grid { grid-template-columns: 1fr; }
    .hero-logo-card { max-width: 400px; margin: 0 auto; }
    .nav-links { display: none; }
}
