:root {
    --azul: #0070bb;
    --dorado: #c5a059;
    --oscuro: #0f172a;
    --blanco: #f8fafc;
    --glass: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--oscuro);
    color: var(--blanco);
    overflow-x: hidden;
}

/* ============================================================
   FONDO ANIMADO
   ============================================================ */
.bg-gradient {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(0, 112, 187, 0.15) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* ============================================================
   NAVEGACIÓN
   ============================================================ */
.glass-nav {
    display: flex;
    justify-content: center;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo span { color: var(--azul); }

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hamburger — oculto en desktop */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--blanco);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image:
        linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 1)),
        url('hero-hogar-bg.png');
    background-size: cover;
    background-position: center;
    padding: 120px 20px 80px;
}

.hero-container {
    max-width: 800px;
    width: 100%;
}

.text-gradient {
    background: linear-gradient(90deg, var(--azul), var(--dorado));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.badge {
    color: var(--dorado);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: block;
}

/* Hero CTAs */
.hero-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 35px;
}

.btn-action {
    padding: 15px 28px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
    font-size: 0.95rem;
}

.btn-action:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.wsp-color {
    background: #25d366;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.email-color {
    background: var(--azul);
    box-shadow: 0 10px 30px rgba(0, 112, 187, 0.3);
}

/* ============================================================
   SECCIÓN TRAYECTORIA
   ============================================================ */
.trayectoria-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 80px 10%;
    align-content: center;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)),
        url('services-fusion.png');
    background-size: cover;
    background-attachment: fixed;
}

/* ============================================================
   SECCIÓN SERVICIOS
   ============================================================ */
.servicios-section {
    min-height: 100vh;
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: center;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
    background: var(--glass);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.stat-card:hover {
    border-color: rgba(197, 160, 89, 0.3);
    transform: translateY(-4px);
}

.stat-card .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dorado);
    margin-bottom: 8px;
}

.stat-card .label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* CTA card en servicios */
.cta-card {
    background: var(--glass);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--dorado);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-card .number {
    display: block;
    font-size: 2.5rem;
}

.cta-card .label {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--blanco);
}

.cta-btn {
    margin-top: 4px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background-color: #0c1120;
    padding: 80px 10% 40px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 30px;
    font-size: 1.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s, transform 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--azul);
    transform: scale(1.15);
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   BOTONES FLOTANTES
   ============================================================ */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
}

.float-btn {
    width: 60px;
    height: 60px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.float-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

.wsp-float { background: #25d366; }

.ig-float {
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
    h1 { font-size: 3rem; }

    /* Desactivar parallax en tablet/móvil — iOS no lo soporta bien */
    .trayectoria-section {
        background-attachment: scroll;
    }
}

/* ============================================================
   RESPONSIVE — MÓVIL (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
    h1 { font-size: 2.2rem; }

    .hero { padding: 100px 20px 60px; }

    /* Mostrar hamburger */
    .hamburger { display: flex; }

    /* Menú colapsado por defecto en móvil */
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.97);
        padding: 10px 0 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        padding: 14px 5%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
    }

    .nav-container { position: relative; }

    /* Botones hero en columna */
    .hero-btns { flex-direction: column; align-items: center; }
    .btn-action { width: 100%; max-width: 340px; justify-content: center; }

    /* Padding secciones */
    .trayectoria-section,
    .servicios-section { padding: 60px 5%; }

    /* Stat cards más compactos */
    .stat-card { padding: 28px 20px; }

    /* Floating buttons más pequeños */
    .floating-container { bottom: 20px; right: 16px; }
    .float-btn { width: 50px; height: 50px; font-size: 22px; }
}
