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

:root {
    --primary-red: #dc2626;
    --dark-red: #991b1b;
    --light-red: #ef4444;
    --accent-red: #f87171;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: rgba(220, 38, 38, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(153, 27, 27, 0.06) 0%, transparent 50%);
    z-index: 0;
}

/* Navigation */
/* --- Navegación Principal --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    /* Fondo negro profundo con desenfoque */
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    /* Borde inferior sutil en rojo oscuro */
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff; /* Blanco puro para resaltar */
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

/* --- Menú de Navegación --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none; /* Quita subrayado */
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

/* --- Menú de Navegación --- */
.nav-menu {
    display: flex;
    gap: 1rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none; /* Quita subrayado */
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
}

.nav-menu a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* --- Dropdowns Generales --- */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    padding: 0.6rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    list-style: none;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none; /* Quita subrayado */
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #ffffff;
}

/* --- Botón Client Area y su Dropdown --- */
.nav-cta {
    display: flex;
    align-items: center;
}

.btn-client-area {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none; /* Quita subrayado */
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.btn-client-area:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

/* Alineación específica para el dropdown de la derecha */
.dropdown-menu-right {
    left: auto !important;
    right: 0 !important;
    transform: translateY(-10px) !important;
    min-width: 240px;
}

.dropdown:hover .dropdown-menu-right {
    transform: translateY(0) !important;
}

/* Estilos de Título y Subtítulo dentro del menú */
.dropdown-menu a div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.dropdown-menu a strong {
    font-size: 0.95rem;
    color: #ffffff;
    text-decoration: none; /* Asegura que no haya subrayado en el texto negrita */
}

.dropdown-menu a small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.dropdown-menu i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

.dropdown-menu a:hover i {
    color: #ff4d4d;
}

/* --- Client Area Button (Rojo Helxy) --- */
.nav-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-client-area {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    /* Gradiente de Rojo a Rojo Obscuro */
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-client-area:hover {
    transform: translateY(-2px);
    /* Brillo rojo intenso al hover */
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-client-area i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.btn-client-area:hover i {
    transform: rotate(180deg);
}

/* Hero Section con imagen de fondo */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8rem 2rem 4rem;
    text-align: left;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.85) 40%,
        rgba(10, 10, 10, 0.6) 70%,
        rgba(10, 10, 10, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin-left: 4rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 50px;
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary-red), var(--light-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.6);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--primary-red);
    background: rgba(220, 38, 38, 0.1);
    transform: translateY(-3px);
}

/* Services Section */
.services {
    position: relative;
    padding: 6rem 2rem;
    z-index: 10;
    background: var(--dark-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--primary-red);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(153, 27, 27, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

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

.service-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-features i {
    color: var(--primary-red);
    font-size: 0.8rem;
}

.price-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

.price-button i {
    color: #ffffff;
}

/* Features Section */
.features {
    position: relative;
    padding: 6rem 2rem;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-item:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.2);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(153, 27, 27, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2.2rem;
    color: var(--primary-red);
}

.feature-item h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Footer */
footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 10;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-brand .logo-img {
    height: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

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

.footer-column ul li {
    margin-bottom: 0.7rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

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

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        margin-left: 2rem;
    }

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

@media (max-width: 768px) {
    .nav-menu,
    .nav-cta {
        display: none;
    }

    .hero {
        min-height: 80vh;
        padding: 6rem 1.5rem 3rem;
    }

    .hero-content {
        margin-left: 0;
        max-width: 100%;
    }

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

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-overlay {
        background: linear-gradient(
            to right,
            rgba(10, 10, 10, 0.95) 0%,
            rgba(10, 10, 10, 0.9) 100%
        );
    }

    .section-title {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}