/* =====================================================
   🌞 TEMA CLARO (DEFAULT)
===================================================== */
:root {
    --color-bg: #F5F7FA;                /* Fondo claro suave */
    --color-surface: #FFFFFF;           /* Tarjetas / formularios */
    --color-text: #1A1A1A;              /* Texto principal */
    --color-text-secondary: #4D4D4D;    /* Subtítulos */

    --color-primary: #0D47A1;           /* Azul confianza */
    --color-primary-dark: #062E6F;
    --color-accent: #FFB300;            /* Amarillo energía */
    --color-success: #2E7D32;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.14);
    --shadow-lg: 0 10px 28px rgba(0,0,0,0.16);

    --radius: 0.6rem;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* =====================================================
   🌙 TEMA OSCURO (TOGGLE)
===================================================== */
.dark-mode {
    --color-bg: #0E1117;
    --color-surface: #1A1F25;
    --color-text: #E6E6E6;
    --color-text-secondary: #9EA5AD;

    --color-primary: #84C4FF;
    --color-primary-dark: #4A8CCF;
    --color-accent: #FFCA5C;
    --color-success: #6ED67D;

    --shadow-sm: 0 1px 2px rgba(255,255,255,0.05);
    --shadow-md: 0 4px 12px rgba(255,255,255,0.10);
    --shadow-lg: 0 10px 28px rgba(255,255,255,0.15);
}

/* =====================================================
   🎨 BASE
===================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-top: 0;
}

/* =====================================================
   🧭 HEADER
===================================================== */
header {
    background: var(--color-primary-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 2rem;
    height: 80px;
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.logo {
    height: 140px;
}

/* =====================================================
   🧭 MENÚ
===================================================== */
nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    position: relative;
    transition: .3s;
}

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

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

nav a:hover::after {
    width: 100%;
}

/* Toggle dentro del menú */
.menu-theme-toggle {
    margin-left: auto;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.menu-theme-toggle svg {
    width: 28px;
    height: 28px;
    fill: var(--color-accent);
    transition: 0.3s ease;
}

/* Glow animado en modo oscuro */
.dark-mode .menu-theme-toggle svg {
    filter: drop-shadow(0 0 6px rgba(255, 204, 80, 0.6));
    animation: glowPulse 2.5s infinite ease-in-out;
}

@keyframes glowPulse {
    0% { transform: scale(0.95); opacity: .7; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: .7; }
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    width: 32px;
    height: 22px;
    cursor: pointer;
}

.menu-toggle div {
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: .3s;
}

/* =====================================================
   📱 MENÚ RESPONSIVE
===================================================== */
@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        background: var(--color-primary-dark);
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        padding: 2rem;
        text-align: center;
        gap: 1.8rem;
        animation: slideDown .3s ease-out;
    }

    nav.show {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-theme-toggle {
        margin: 0;
        justified-content: center;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px);}
    to   { opacity: 1; transform: translateY(0);}
}

/* =====================================================
   🏞 HERO
===================================================== */
.hero {
    height: 500px;
    margin-top: 80px;
    background: linear-gradient(rgba(13, 71, 161, 0.7), rgba(13, 71, 161, 0.7)),
                url('https://images.unsplash.com/photo-1593941707874-ef25b8b4d0df?auto=format&fit=crop&w=1400&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

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

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.btn {
    background: var(--color-accent);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    color: black;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
}

.btn:hover {
    background: #ffcc33;
    transform: translateY(-2px);
}

/* =====================================================
   💼 SERVICIOS
===================================================== */
#servicios {
    padding: 5rem 2rem;
    background: var(--color-surface);
    text-align: center;
}

#servicios h2 {
    color: var(--color-primary-dark);
    font-size: 2.5rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

.card {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: .3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card i {
    font-size: 3rem;
    color: var(--color-primary);
}

/* =====================================================
   📩 FORMULARIO
===================================================== */
#contacto {
    padding: 5rem 2rem;
    background: var(--color-bg);
    text-align: center;
}

.formulario {
    background: var(--color-surface);
    padding: 3rem;
    max-width: 650px;
    margin: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.formulario input,
.formulario textarea,
select {
    width: 100%;
    padding: .85rem 1rem;
    border-radius: var(--radius);
    border: 1px solid #d0d0d0;
    background: #f8f9fb;
    margin-bottom: 1.3rem;
    transition: border .2s, box-shadow .2s;
}

.formulario input:focus,
.formulario textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.14);
}

/* =====================================================
   📤 MODAL
===================================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: 1rem;
    max-width: 450px;
    text-align: center;
    animation: scaleIn .3s ease;
}

@keyframes scaleIn {
    from { transform: scale(.92); opacity: 0;}
    to   { transform: scale(1); opacity: 1;}
}

/* =====================================================
   🦶 FOOTER
===================================================== */
footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* =====================================================
   🟩 BOTÓN WHATSAPP (con neon)
===================================================== */

#wp-fixed-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(37,211,102,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: entrySlide .8s ease-out;
}

#wp-fixed-button a:hover {
    transform: scale(1.08);
}

/* =====================================================
   FIN
===================================================== */
