:root {
    --bg: #111316;
    --surface-low: #1a1c1f;
    --surface-high: #282a2d;
    --surface-highest: #333538;

    --primary: #d946ef;
    /* Morado Neon Vibrante / Purple Neon */
    --primary-hover: #e879f9;
    --primary-dim: rgba(217, 70, 239, 0.2);

    --text-main: #e2e2e6;
    --text-muted: #9ca3af;

    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.accent {
    color: var(--primary);
}

/* --- Navbar Glassmorphism --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(17, 19, 22, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.2;
}

.logo i {
    font-size: 2rem;
    color: var(--primary);
}

.brand-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.footer-brand-img {
    height: auto;
    max-width: 150px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-dim);
}

.btn-primary,
.btn-primary-outline {
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: #111;
    box-shadow: 0 0 20px var(--primary-dim);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 30px rgba(217, 70, 239, 0.5);
    transform: translateY(-2px);
}

.btn-primary-outline {
    background: transparent;
    border: 1px solid rgba(217, 70, 239, 0.4);
    color: var(--primary);
}

.btn-primary-outline:hover {
    border-color: var(--primary);
    box-shadow: inset 0 0 15px var(--primary-dim);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 12rem 5% 6rem;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

/* Gradient Overlay for legibility */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 19, 22, 0.98) 0%, rgba(17, 19, 22, 0.6) 100%);
    z-index: -1;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(26, 28, 31, 0.8);
    border: 1px solid var(--primary-dim);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* --- Services & Glassmorphism Cards --- */
.services {
    padding: 6rem 5%;
}

.section-title {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.15rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.glass-card {
    background: rgba(26, 28, 31, 0.5);
    /* Semi-transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(217, 70, 239, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(217, 70, 239, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.card-content {
    padding: 2.5rem;
    position: relative;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--surface-highest);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-top: -55px;
    /* Pull up to overlap image */
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* --- Features Section --- */
.features {
    padding: 6rem 5%;
    background: linear-gradient(to bottom, var(--bg), var(--surface-low));
}

.features-split {
    display: flex;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.features-text h2 {
    font-size: 2.8rem;
    margin-bottom: 4rem;
    text-align: center;
}

.feature-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    background: var(--surface-high);
    padding: 2rem;
    border-radius: 16px;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.feature-item i {
    font-size: 3rem;
    text-shadow: 0 0 20px var(--primary-dim);
}

.feature-item h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- Contact Section --- */
.contact-section {
    padding: 6rem 5%;
    display: flex;
    justify-content: center;
    background: var(--surface-low);
}

.contact-box {
    width: 100%;
    max-width: 650px;
    padding: 4rem;
}

.contact-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-form {
    margin-top: 2.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.1rem;
    padding: 0.5rem 0;
    outline: none;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group input:focus~.input-line,
.input-group textarea:focus~.input-line {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-dim);
    height: 2px;
}

/* --- Footer --- */
footer {
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo span {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.8rem;
    display: block;
    margin-top: 0.8rem;
}

.footer-logo i {
    font-size: 2.5rem;
    color: var(--primary);
}

.footer-slogan {
    color: var(--text-muted);
    margin-top: 1.2rem;
    max-width: 350px;
    font-size: 1.05rem;
}

.footer-contact h4 {
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1.2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.contact-link i {
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-link:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- WhatsApp Sticky Button --- */
.whatsapp-sticky {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 70px;
    height: 70px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-sticky:hover {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* Responsividad */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero {
        padding-top: 8rem;
        min-height: 80vh;
    }

    .contact-box {
        padding: 2.5rem;
    }

    .whatsapp-sticky {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}