:root {
    --primary-black: #0f0f0f;
    --secondary-black: #1c1c1c;
    --medium-gray: #2b2b2b;
    --light-gray: #9c9c9c;
    --primary-white: #ffffff;
    --primary-red: #e30613;
    --hover-red: #b8050f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

html, body {
    background-color: var(--primary-black);
    color: var(--primary-white);
    overflow-x: hidden;
}

section {
    scroll-margin-top: 80px;
    padding: 80px 10%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header y Navegación */
header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 15px 10%;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(15, 15, 15, 0.98);
    padding: 10px 10%;
}

.logo img {
    width: 120px;
    filter: drop-shadow(0 0 5px rgba(227, 6, 19, 0.5));
}

.navbar {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    flex-grow: 1;
    justify-content: center;
}

.navbar a {
    font-size: 0.95rem;
    padding: 8px 15px;
    color: var(--primary-white);
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar a:hover {
    color: var(--primary-red);
}

.navbar a:hover::after {
    width: 70%;
}

/* Botón de Login */
.btn-login {
    background-color: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-white);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-red);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-login:hover {
    color: var(--primary-white);
}

.btn-login:hover::before {
    width: 100%;
}

#menu-icon {
    font-size: 24px;
    color: var(--primary-white);
    cursor: pointer;
    z-index: 1001;
    display: none;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.9) 40%, rgba(227, 6, 19, 0.8));
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/api/placeholder/1200/800');
    background-size: cover;
    background-position: center;
    filter: grayscale(80%) brightness(40%);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content h1 span {
    color: var(--primary-red);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #e0e0e0;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.3);
}

.btn-primary:hover {
    background-color: var(--hover-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(227, 6, 19, 0.4);
}

/* Servicios Section */
#services {
    background-color: var(--secondary-black);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-white);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--light-gray);
    max-width: 700px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary-red);
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--medium-gray);
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-red);
    transition: all 0.3s ease;
    z-index: -1;
}

.service-card:hover::before {
    width: 100%;
    background-color: rgba(227, 6, 19, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    margin-bottom: 20px;
    font-size: 3rem;
    color: var(--primary-red);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-white);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--light-gray);
    line-height: 1.7;
}

/* Sección de Login */
#login {
    background-color: var(--primary-black);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    background-color: var(--secondary-black);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(227, 6, 19, 0.2);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-red), var(--hover-red));
}

.login-box h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-white);
    position: relative;
    display: inline-block;
}

.login-box h2::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--primary-red);
    bottom: -10px;
    left: 0;
}

.login-box p {
    font-size: 1rem;
    color: var(--light-gray);
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-white);
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    background-color: var(--medium-gray);
    color: var(--primary-white);
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 2px rgba(227, 6, 19, 0.2);
}

.input-group input::placeholder {
    color: #777;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--light-gray);
}

.remember-me input {
    margin-right: 10px;
    accent-color: var(--primary-red);
}

.login-button {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-white);
    background-color: var(--primary-red);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.login-button:hover {
    background-color: var(--hover-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.3);
}

.links {
    margin-top: 25px;
}

.links a {
    display: block;
    color: var(--light-gray);
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.links a:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

/* Footer */
footer {
    background-color: var(--secondary-black);
    padding-top: 70px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
    padding: 0 10%;
}

.footer-about {
    flex: 1 1 300px;
}

.footer-about img {
    max-width: 160px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(227, 6, 19, 0.6));
}

.footer-about p {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links, .footer-contact, .footer-social {
    flex: 1 1 200px;
}

.footer-top h3 {
    color: var(--primary-white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.footer-top h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--light-gray);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.footer-links ul li a:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

.footer-contact p {
    color: var(--light-gray);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    color: var(--primary-red);
    margin-right: 10px;
    min-width: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--medium-gray);
    color: var(--primary-white);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(156, 156, 156, 0.2);
    padding: 25px 10%;
    text-align: center;
}

.footer-legal {
    margin-bottom: 15px;
}

.footer-legal a {
    color: var(--light-gray);
    margin: 0 15px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-red);
}

.footer-bottom p {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 5%;
    }

    header {
        padding: 15px 5%;
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        background-color: rgba(15, 15, 15, 0.98);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 999;
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        font-size: 1.2rem;
        padding: 15px 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
    }

    .btn-primary {
        text-align: center;
        width: 100%;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 20px;
    }

    .login-container {
        padding: 30px 20px;
    }

    .footer-top {
        padding: 0 5%;
    }

    .footer-bottom {
        padding: 20px 5%;
    }
}