:root {
    --primary: #0066ff;
    --secondary: #003d99;
    --accent: #1a7cc1;
    --light: #f0f4ff;
    --dark: #0f1a2e;
    --gray: #64748b;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.1);
    --font: "Inter", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    color: var(--dark);
    background: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* HEADER */
.header {
    background: var(--dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.container-wide {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.logo {
    height: 45px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 10px;
    background: var(--dark);
    padding: 0 20px;
}

.nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

/* HAMBURGER */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* HERO */
.hero {
    background: url("assets/hero.jpg") center/cover no-repeat;
    background-attachment: fixed;
    padding: 120px 20px;
    color: white;
    text-align: center;
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 26, 46, 0.6) 0%, rgba(13, 59, 102, 0.6) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 80px;
}

.hero h1 {
    font-size: 2.8rem;
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin: 0;
    line-height: 1.6;
}

.btn {
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

/* SERVICIOS */
.servicios {
    padding: 100px 20px;
    background: var(--dark);
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.servicios h2 {
    text-align: center;
    margin: 0 0 50px 0;
    font-size: 2.2rem;
    color: white;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1200px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
    text-align: center;
}

.card h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin: 15px 0 10px 0;
}

.card p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-icon {
    width: 50px;
    height: 50px;
    color: var(--primary);
    margin: 0 auto 15px;
    stroke-width: 1.5;
}

/* Services Image */
.services-image {
    background: var(--dark);
    padding: 0 20px 80px 20px;
    margin: 0;
    display: flex;
    justify-content: center;
}

.section-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    max-height: 500px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
    margin: 0 auto;
}

/* EMPRESA */
.empresa {
    background: var(--dark);
    padding: 100px 20px;
    color: white;
    margin: 0;
}

.empresa-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.empresa-text h2 {
    font-size: 2.2rem;
    color: white;
    margin: 0 0 20px 0;
}

.empresa-text p {
    color: #d1d5db;
    font-size: 1.1rem;
    line-height: 1.8;
}

.empresa-image {
    max-width: 100%;
    overflow: hidden;
}

.empresa-image .section-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    border-radius: var(--radius);
}

/* CONTACTO */
.contacto {
    background: var(--dark);
    padding: 100px 20px;
    color: white;
    margin: 0;
}

.contacto-content {
    max-width: 100%;
}

.contacto-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contacto-text h2 {
    font-size: 2.2rem;
    color: white;
    margin: 0 0 20px 0;
}

.contacto-text p {
    color: #d1d5db;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 0 30px 0;
}

.contacto-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contacto-text li {
    padding: 12px 0;
    color: #d1d5db;
    font-size: 1rem;
}

/* SCROLL TO TOP */
.scroll-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.show {
    display: flex;
}

.scroll-to-top:hover {
    background: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    font-size: 0.9rem;
}

/* RESPONSIVE - TABLET */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #1a2a40;
        border-top: 2px solid var(--primary);
        padding: 15px 0;
        z-index: 999;
    }

    .nav.active {
        display: flex !important;
    }

    .nav a {
        padding: 12px 20px;
        margin: 0;
        display: block;
        border-bottom: 1px solid #2a3a50;
    }

    .hero {
        padding: 80px 20px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .servicios {
        padding: 60px 20px;
    }

    .servicios h2 {
        font-size: 1.8rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 20px;
    }

    .services-image {
        padding: 40px 20px;
    }

    .section-image {
        max-height: 350px;
    }

    .empresa {
        padding: 60px 20px;
    }

    .empresa-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .empresa-text h2 {
        font-size: 1.8rem;
    }

    .contacto {
        padding: 60px 20px;
    }

    .contacto-text h2 {
        font-size: 1.8rem;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }

    .container {
        width: 95%;
    }
}

/* RESPONSIVE - MOBILE */
@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
        min-height: 300px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .servicios {
        padding: 40px 20px;
    }

    .servicios h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .card {
        padding: 15px;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .card p {
        font-size: 0.95rem;
    }

    .services-image {
        padding: 30px 15px;
    }

    .section-image {
        max-height: 250px;
    }

    .empresa {
        padding: 40px 20px;
    }

    .empresa-text h2 {
        font-size: 1.5rem;
    }

    .contacto {
        padding: 40px 20px;
    }

    .contacto-text h2 {
        font-size: 1.5rem;
    }

    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 18px;
    }
}


