/* 
    MARKETING AI - Design System 
    Author: Antigravity
*/

:root {
    /* Primary Colors */
    --accent: #ff9800;
    --accent-dark: #ec8800;
    --accent-light: #ffa424;
    
    /* Neutrals */
    --bg-dark: #121212;
    --bg-surface: #1e1e1e;
    --bg-light: #f8f9fa;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-dark: #2c2c2c;
    --text-dark-muted: rgba(44, 44, 44, 0.6);
    
    /* Effects */
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .display-font {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
}

/* --- Layout Utils --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.logo-box {
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border-radius: 8px;
    font-size: 1.2rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.nav-cta {
    background: var(--accent);
    color: var(--text-dark) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600 !important;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5rem;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.2);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero h1 span {
    background: linear-gradient(to right, var(--accent), #ffca28);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 152, 0, 0.3);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: white;
}

.btn-outline:hover {
    background: var(--glass);
    transform: translateY(-2px);
}

/* --- Section Background Utils --- */
.section-with-bg {
    position: relative;
    overflow: hidden;
    color: white;
}

.section-bg-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.section-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.section-with-bg .container {
    position: relative;
    z-index: 3;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* --- Form Styles --- */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 152, 0, 0.05);
}

/* --- Image Placeholders --- */
.image-placeholder {
    background: #252525;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03));
}

/* --- Footer --- */
footer {
    background: #0a0a0a;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

.copyright {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Navigation Visibility --- */
.mobile-menu-toggle {
    display: none;
}

/* === MOBILE NAV — Premium Redesign === */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: #080808;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s 0.55s;
    overflow: hidden;
}

.mobile-nav.active {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s 0s;
}

/* Decorative orange glow in bottom-right */
.mobile-nav-glow {
    position: absolute;
    bottom: -160px;
    right: -160px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(255,152,0,0.14) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Top bar */
.mobile-nav-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

/* Close button */
.mobile-close {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-close:hover {
    background: rgba(255,152,0,0.12);
    border-color: var(--accent);
    color: var(--accent);
}

/* Nav body — fills remaining space */
.mobile-nav-body {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.mobile-links {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-links li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    opacity: 0;
    transform: translateX(24px);
}

/* Staggered entrance animation */
.mobile-nav.active .mobile-links li:nth-child(1) { animation: mobileItemIn 0.4s 0.18s ease forwards; }
.mobile-nav.active .mobile-links li:nth-child(2) { animation: mobileItemIn 0.4s 0.25s ease forwards; }
.mobile-nav.active .mobile-links li:nth-child(3) { animation: mobileItemIn 0.4s 0.32s ease forwards; }
.mobile-nav.active .mobile-links li:nth-child(4) { animation: mobileItemIn 0.4s 0.39s ease forwards; }
.mobile-nav.active .mobile-links li:nth-child(5) { animation: mobileItemIn 0.4s 0.46s ease forwards; }

@keyframes mobileItemIn {
    to { opacity: 1; transform: translateX(0); }
}

.mobile-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: rgba(255,255,255,0.65);
    font-size: 1.75rem;
    font-family: var(--font-display);
    font-weight: 800;
    padding: 1.4rem 0;
    letter-spacing: -0.5px;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-links a svg {
    opacity: 0;
    color: var(--accent);
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.mobile-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.mobile-links a:hover svg {
    opacity: 1;
    transform: translateX(4px);
}

/* Bottom footer */
.mobile-nav-footer {
    position: relative;
    z-index: 2;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s 0.52s ease, transform 0.4s 0.52s ease;
}

.mobile-nav.active .mobile-nav-footer {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-email {
    display: block;
    text-align: center;
    color: rgba(255,255,255,0.28);
    font-size: 0.8rem;
    margin-top: 1.25rem;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.mobile-nav-email:hover {
    color: rgba(255,255,255,0.55);
}

@media (max-width: 1100px) {
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: 1px solid var(--glass-border);
        color: white;
        padding: 0.5rem;
        border-radius: 8px;
        cursor: pointer;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
}

/* --- Responsive Overhaul --- */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
    
    .hero {
        padding-top: 8rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    /* Force single column for all structural grids */
    .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr !important;
    }
}/* --- WhatsApp Floating Button --- */
.whatsapp-float-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.whatsapp-options {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-premium);
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 320px;
    backdrop-filter: blur(20px);
    animation: slideUp 0.3s ease forwards;
}

.whatsapp-options.active {
    display: flex;
}

.whatsapp-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
    padding: 1rem;
    background: var(--glass);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.whatsapp-option:hover {
    background: rgba(255, 152, 0, 0.1);
    border-color: var(--accent);
    transform: translateX(-5px);
}

.whatsapp-option-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.whatsapp-option-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.whatsapp-main-btn {
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.whatsapp-main-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   SERVICE CATALOG — servicios.php + home overview
   ============================================================ */

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }

/* Quick-nav pills */
.service-pill {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s ease;
}
.service-pill:hover {
    background: rgba(255,152,0,0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* Category section header */
.cat-header {
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
    margin-bottom: 0.5rem;
}
.cat-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.35rem;
}

/* Service item card grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}
.service-item-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.25s ease;
}
.service-item-card:hover {
    border-color: var(--accent);
    background: rgba(255,152,0,0.03);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.sic-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,152,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1.25rem;
}
.service-item-card h4 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    color: white;
    line-height: 1.3;
}
.service-item-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Home — services overview grid */
.svc-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 4rem;
}
.svc-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.svc-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}
.svc-num {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}
.svc-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.svc-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: white;
}
.svc-card > p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.75rem;
}
.svc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
}
.svc-link svg { transition: transform 0.2s ease; }
.svc-card:hover .svc-link svg { transform: translateX(3px); }

/* Wide (full-row) card — 7th service on home */
.svc-card-wide {
    display: flex !important;
    align-items: center;
    gap: 3rem;
    grid-column: 1 / -1;
}
.svc-wide-extras {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
    text-align: right;
}
.svc-wide-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    justify-content: flex-end;
}

/* Stats strip */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    padding: 6rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}
.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .svc-overview-grid { grid-template-columns: repeat(2, 1fr); }
    .svc-card-wide { flex-direction: column; align-items: flex-start; }
    .svc-wide-extras { text-align: left; }
    .svc-wide-check { justify-content: flex-start; }
}
@media (max-width: 768px) {
    .svc-overview-grid { grid-template-columns: 1fr; }
    .cat-header { flex-direction: column; gap: 1rem; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); padding: 4rem 0; }
    .stat-number { font-size: 2.5rem; }
    .svc-wide-extras { display: none; }
    .svc-card-wide { flex-direction: column; }
}
