:root {
    --primary: #e11d48;
    --primary-dark: #be123c;
    --secondary: #1e3a8a;
    --dark: #0f172a;
    --dark-glass: rgba(15, 23, 42, 0.8);
    --light: #ffffff;
    --bg-body: #f8fafc;       
    --text-main: #334155;
    --text-muted: #64748b;
    --gradient: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
    --gradient-blue: linear-gradient(135deg, var(--secondary) 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(30, 58, 138, 0.08);
    --shadow-soft: 0 10px 30px -10px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px -10px rgba(30, 58, 138, 0.15);
    --font-head: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--dark); font-weight: 700; line-height: 1.1; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 100px 0; position: relative; }

.section-title { text-align: center; margin-bottom: 60px; }
.section-title span {
    display: inline-block; padding: 6px 16px; background: rgba(225, 29, 72, 0.1);
    color: var(--primary); border-radius: 8px; font-size: 0.9rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px;
}
.section-title h2 { font-size: 3rem; margin-bottom: 20px; letter-spacing: -1px; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; max-width: 700px; margin: 0 auto; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 32px; border-radius: 12px; font-family: var(--font-head);
    font-weight: 700; font-size: 1.1rem; cursor: pointer;
    transition: all 0.4s var(--ease-out-expo); border: none; z-index: 1;
}
.btn-gradient { background: var(--primary); color: var(--light); box-shadow: 0 10px 20px -5px rgba(225, 29, 72, 0.4); }
.btn-gradient:hover { background: var(--primary-dark); transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 25px -5px rgba(225, 29, 72, 0.6); }
.btn-light { background: var(--light); color: var(--secondary); box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.05); }
.btn-light:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); color: var(--primary); }

.gs-reveal { opacity: 0; transform: translateY(50px); transition: all 1s var(--ease-out-expo); }
.gs-reveal.active { opacity: 1; transform: translateY(0); }
.gs-reveal-left { transform: translateX(-50px); }
.gs-reveal-right { transform: translateX(50px); }
.gs-reveal-scale { transform: scale(0.9) translateY(30px); }

/* Header */
header {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 95%; max-width: 1200px; z-index: 1000; border-radius: 16px;
    background: var(--glass-bg); backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); padding: 10px 30px;
    box-shadow: var(--glass-shadow); transition: all 0.5s ease;
}
header.scrolled { top: 0; width: 100%; max-width: 100%; border-radius: 0; background: rgba(255,255,255,0.95); padding: 15px 30px; }
.navbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; }

/* MODIFICADO: Estilos actualizados para integrar la imagen del logo */
.logo { 
    font-family: var(--font-head); 
    font-weight: 900; 
    font-size: 2.2rem; 
    color: var(--secondary); 
    letter-spacing: -1px; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    text-decoration: none;
}
.logo img { 
    height: 50px; /* Aumentado para que se vea más grande y con más presencia */
    width: auto; 
    object-fit: contain;   
}   
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 35px; }
.nav-links a { font-weight: 600; color: var(--text-main); position: relative; padding: 5px 0; transition: color 0.3s ease; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 3px;
    background: var(--primary); border-radius: 2px; transition: all 0.3s var(--ease-out-expo);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.navbar-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
    width: 44px; height: 44px; border-radius: 12px; background: rgba(30, 58, 138, 0.05);
    border: 1px solid rgba(30, 58, 138, 0.1); cursor: pointer; display: flex;
    align-items: center; justify-content: center; position: relative; transition: 0.4s;
}
.theme-toggle:hover { transform: translateY(-2px); background: rgba(30, 58, 138, 0.1); }
.theme-toggle i { position: absolute; font-size: 1.1rem; transition: 0.4s; }
.theme-toggle .fa-sun { color: #d97706; opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .fa-moon { color: var(--secondary); opacity: 0; transform: rotate(90deg) scale(0.4); }
body.dark-mode .theme-toggle .fa-sun { opacity: 0; transform: rotate(-90deg) scale(0.4); }
body.dark-mode .theme-toggle .fa-moon { opacity: 1; transform: rotate(0deg) scale(1); }

.hamburger { display: none; background: transparent; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 25px; height: 3px; background: var(--dark); border-radius: 3px; transition: 0.3s; }

/* NUEVOS ESTILOS PARA PAGINAS INTERNAS */
.page-header {
    padding: 180px 0 80px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.78)),
                url('https://images.unsplash.com/photo-1517430816045-df4b7de11d1d?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
    color: white;
    text-align: center;
    transition: background-color 0.5s ease;
}
.page-header h1 { color: white; font-size: 3.5rem; margin-bottom: 20px; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.page-header p { color: #e2e8f0; font-size: 1.2rem; max-width: 700px; margin: 0 auto; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.mision-vision { background: var(--bg-body); padding: 80px 0; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.mv-card { background: white; padding: 50px 40px; border-radius: 16px; box-shadow: var(--shadow-soft); transition: 0.4s; }
.mv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.mv-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.mv-card h3 { color: var(--secondary); margin-bottom: 20px; font-size: 1.8rem;}
.mv-card p { color: var(--text-muted); font-size: 1.05rem; }

/* Hero Orgánico */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(30, 58, 138, 0.8)), 
                url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
    padding-top: 100px;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 60px; }
.hero-text h1 { font-size: 4.5rem; font-weight: 900; line-height: 1.05; margin-bottom: 25px; letter-spacing: -2px; color: var(--light); }
.hero-text h1 span { color: var(--primary); }
.hero-text p { font-size: 1.25rem; color: #cbd5e1; margin-bottom: 40px; max-width: 500px; }
.hero-buttons { display: flex; gap: 20px; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-main-img {
    width: 100%; max-width: 450px; border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: floatImage 6s ease-in-out infinite alternate;
    object-fit: cover; aspect-ratio: 4/5;
}
@keyframes floatImage { 0% { transform: translateY(0); } 100% { transform: translateY(-20px); } }

/* Nosotros */
.about { background: white; transition: background-color 0.5s ease; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { position: relative; padding-right: 30px; }
.about-img { width: 100%; border-radius: 20px; box-shadow: var(--shadow-soft); object-fit: cover; aspect-ratio: 1/1; }
.glass-card-floating {
    position: absolute; bottom: -20px; right: 0; background: var(--glass-bg); backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); border-radius: 16px; padding: 25px; display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow-hover);
}
.glass-card-floating i { font-size: 2.5rem; color: var(--primary); }
.glass-card-floating h4 { font-size: 1.5rem; margin-bottom: 0; color: var(--secondary); }
.glass-card-floating p { margin: 0; color: var(--text-muted); font-size: 0.9rem; font-weight: 500;}
.about-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 15px; }

/* Servicios */
.services { background: var(--bg-body); }
.service-category { margin-bottom: 80px; }
.service-category h3 { font-size: 2rem; margin-bottom: 30px; display: flex; align-items: center; gap: 15px; color: var(--secondary); }
.service-category h3 i { color: var(--primary); background: rgba(225, 29, 72, 0.1); padding: 12px; border-radius: 12px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-item {
    background: white; border-radius: 12px; box-shadow: var(--shadow-soft);
    transition: all 0.4s var(--ease-out-expo); border: 1px solid rgba(0,0,0,0.05);
    padding: 0; overflow: hidden; display: flex; flex-direction: column;
}
.service-item:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.service-img { width: 100%; height: 220px; object-fit: cover; border-bottom: 3px solid var(--primary); }
.service-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.service-content h4 { font-size: 1.3rem; margin-bottom: 10px; color: var(--secondary); }
.service-content p { color: var(--text-muted); font-size: 1rem; margin-bottom: 20px; flex-grow: 1; }

/* Seguridad */
.security { background: var(--bg-body); position: relative; overflow: hidden; padding-bottom: 120px; transition: background-color 0.5s ease; }
.security::before { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(225, 29, 72, 0.12) 0%, transparent 70%); border-radius: 50%; }
.security::after { content: ''; position: absolute; bottom: -200px; left: -200px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(30, 58, 138, 0.12) 0%, transparent 70%); border-radius: 50%; }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; position: relative; z-index: 2; }
.sec-card {
    background: white; border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--shadow-soft);
    border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: 0.4s;
}
.sec-card:hover { border-color: rgba(225, 29, 72, 0.4); transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.sec-card-img { width: 100%; height: 220px; object-fit: cover; border-bottom: 3px solid var(--primary); }
.sec-card-content { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.sec-card-content h4 { color: var(--secondary); margin-bottom: 15px; font-size: 1.4rem; display: flex; align-items: center; gap: 12px; }
.sec-card-content h4 i { color: var(--primary); font-size: 1.6rem; }
.sec-card-content p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }

/* Por qué Elegirnos */
.why-us { background: var(--bg-body); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.why-card { text-align: center; padding: 40px 20px; background: white; border-radius: 16px; box-shadow: var(--shadow-soft); transition: 0.4s; }
.why-card:nth-child(even) { transform: translateY(30px); }
.why-card:hover { transform: translateY(-5px) !important; box-shadow: var(--shadow-hover); }
.icon-bubble {
    width: 80px; height: 80px; margin: 0 auto 25px; background: rgba(30, 58, 138, 0.1); border-radius: 16px;
    display: flex; justify-content: center; align-items: center; font-size: 2rem; color: var(--secondary); transition: 0.4s; transform: rotate(10deg);
}
.why-card:hover .icon-bubble { background: var(--primary); color: white; transform: rotate(0deg); }

/* Proceso */
.process { background: white; transition: background-color 0.5s ease; padding-bottom: 120px;}
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.process-steps::before {
    content: ''; position: absolute; top: 40px; left: 10%; right: 10%; height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%); z-index: 0; opacity: 0.3;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-number {
    width: 80px; height: 80px; background: white; border: 2px solid var(--bg-body); border-radius: 16px;
    margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head);
    font-size: 1.8rem; font-weight: 900; color: var(--secondary); box-shadow: var(--shadow-soft); transition: 0.4s;
}
.step:hover .step-number { background: var(--primary); color: white; border: none; transform: scale(1.1) rotate(5deg); }
.step h4 { margin-bottom: 10px; color: var(--secondary); font-size: 1.2rem;}
.step p { color: var(--text-muted); font-size: 1rem; }

/* Contacto */
.contact { background: var(--bg-body); padding-bottom: 150px; }
.contact-box { background: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-soft); display: grid; grid-template-columns: 1fr 1fr; transition: 0.5s; }
.contact-bg { background: var(--gradient-dark); padding: 80px 60px; color: white; position: relative; }
.contact-bg h3 { color: white; font-size: 2.5rem; margin-bottom: 20px; }
.contact-bg p { color: rgba(255,255,255,0.7); margin-bottom: 40px; font-size: 1.1rem;}
.c-info-list { display: flex; flex-direction: column; gap: 30px; }
.c-item { display: flex; align-items: center; gap: 20px; }
.c-icon { width: 50px; height: 50px; background: rgba(255,255,255,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--primary); }
.c-text h5 { color: white; margin-bottom: 5px; font-size: 1.1rem;}
.c-text a, .c-text span { color: rgba(255,255,255,0.8); font-size: 1rem; }
.c-text a:hover { color: var(--primary); }
.contact-cta { padding: 80px 60px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.contact-cta i { font-size: 4.5rem; color: var(--primary); margin-bottom: 30px; }
.faq-section { margin-top: 60px; }
.faq-item { background: white; padding: 25px; border-radius: 12px; margin-bottom: 15px; box-shadow: var(--shadow-soft); }
.faq-item h4 { color: var(--secondary); margin-bottom: 10px; }

/* Footer */
footer { background: var(--dark); color: white; padding: 80px 0 30px; border-top: 1px solid rgba(255,255,255,0.05); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.foot-brand h3 { color: white; font-size: 2.2rem; margin-bottom: 20px; }
.foot-brand h3 span { color: var(--primary); }
.foot-brand p { color: #94a3b8; max-width: 320px; margin-bottom: 30px; font-size: 0.95rem;}
.social { display: flex; gap: 15px; }
.social a { width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; transition: 0.4s; color: white;}
.social a:hover { background: var(--primary); transform: translateY(-3px); }
.foot-links h4 { color: white; margin-bottom: 25px; font-size: 1.2rem; font-weight: 700;}
.foot-links li { margin-bottom: 15px; }
.foot-links a, .foot-links span { color: #94a3b8; transition: 0.3s; font-size: 0.95rem;}
.foot-links a:hover { color: var(--primary); padding-left: 5px; }
.foot-bottom { text-align: center; color: #64748b; font-size: 0.9rem; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); }

/* Floating WhatsApp */
.wp-float {
    position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px; background: #25d366; color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px;
    z-index: 100; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); animation: pulse 2s infinite; transition: 0.3s;
}
.wp-float:hover { transform: scale(1.1); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* MODO OSCURO */
body.dark-mode {
    --primary-dark: #fb7185; --light: #0b1120; --bg-body: #020617;
    --text-main: #e2e8f0; --text-muted: #94a3b8; --secondary: #60a5fa;
    --glass-bg: rgba(15, 23, 42, 0.85); --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 10px 30px -10px rgba(0,0,0,0.5); --shadow-hover: 0 20px 40px -10px rgba(225, 29, 72, 0.2);
}
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 { color: #f1f5f9; }
body.dark-mode .logo { color: #f8fafc; }
body.dark-mode .hamburger span { background: #f8fafc; }
body.dark-mode header.scrolled { background: rgba(15, 23, 42, 0.95); }
body.dark-mode .btn-light { background: #0f172a; color: #f8fafc; border-color: rgba(255,255,255,0.08); }
body.dark-mode .about, body.dark-mode .process, body.dark-mode .faq-item { background: #0f172a; }
body.dark-mode .service-item, body.dark-mode .why-card, body.dark-mode .contact-box, body.dark-mode .step-number, body.dark-mode .sec-card { background: #0b1120; border-color: rgba(255,255,255,0.06); }
body.dark-mode .step-number { border: 2px solid var(--bg-body); }
body.dark-mode .section-title span { background: rgba(225, 29, 72, 0.15); color: #fb7185; }
body.dark-mode .icon-bubble { background: rgba(225, 29, 72, 0.15); color: #fb7185; }
body.dark-mode .theme-toggle { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
body.dark-mode .glass-card-floating { background: rgba(15, 23, 42, 0.9); }
body.dark-mode .page-header {
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.65), rgba(2, 6, 23, 0.85)),
                url('https://images.unsplash.com/photo-1517430816045-df4b7de11d1d?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
}
body.dark-mode .mv-card { background: #0b1120; border: 1px solid rgba(255,255,255,0.06); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 3.5rem; }
    .hero-grid, .about-layout { grid-template-columns: 1fr; text-align: center; }
    .about-image { padding: 0; order: -1; margin-bottom: 40px; }
    .why-grid, .process-steps, .mv-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps::before { display: none; }
    .why-card:nth-child(even) { transform: translateY(0); }
    .contact-box { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    header { padding: 15px 20px; top: 10px; width: 90%; }
    
    .nav-links {
        position: fixed; top: 80px; left: 5%; width: 90%; 
        background: rgba(255, 255, 255, 0.98); 
        backdrop-filter: blur(20px);
        flex-direction: column; text-align: center; padding: 30px; border-radius: 16px; border: 1px solid var(--glass-border);
        transform: translateY(-20px); opacity: 0; pointer-events: none; transition: 0.4s;
        box-shadow: var(--shadow-hover);
    }
    
    body.dark-mode .nav-links {
        background: rgba(15, 23, 42, 0.98); 
    }

    .nav-links.active { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav-links a::after { display: none; }
    .hamburger { display: flex; }
    .hero { padding-top: 130px; text-align: center; }
    .hero-buttons { justify-content: center; flex-direction: column; }
    .hero-main-img { max-width: 350px; }
    .foot-grid { grid-template-columns: 1fr; text-align: center; }
    .social { justify-content: center; }
    .c-item { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 2.8rem; }
    .why-grid, .process-steps, .mv-grid, .sec-grid { grid-template-columns: 1fr; }
    .contact-bg, .contact-cta { padding: 40px 20px; }
    .page-header { padding: 140px 0 50px; }
}

/* Dropdown Menu */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none; position: absolute; background-color: var(--glass-bg);
    min-width: 260px; box-shadow: var(--shadow-hover); border-radius: 12px;
    z-index: 1000; top: 100%; left: 0; backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); padding: 10px 0;
}
.dropdown:hover .dropdown-content { display: block; animation: fadeIn 0.3s ease; }
.dropdown-content a {
    color: var(--text-main); padding: 10px 20px; text-decoration: none;
    display: block; font-weight: 500; font-size: 0.95rem; transition: 0.3s;
}
.dropdown-content a::after { display: none; }
.dropdown-content a:hover { background-color: rgba(225, 29, 72, 0.05); color: var(--primary); padding-left: 25px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .dropdown-content { position: static; box-shadow: none; border: none; background: transparent; display: none; padding-left: 15px; }
    .dropdown:hover .dropdown-content { display: block; }
} 