:root {
    --primary: #0a0f1f;
    --secondary: #1f2a44;
    --accent: #00d4ff;
    --text-light: #ffffff;
    --text-dark: #222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--primary);
    color: var(--text-light);
    line-height: 1.6;
}

/* HEADER */
.header {
    background: rgba(10, 15, 31, 0.9);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    margin: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 40px;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 31, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-overlay h2 {
    font-size: 3rem;
}

.hero-overlay p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    background: var(--accent);
    color: var(--text-dark);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #00b4d8;
}

.section {
    padding: 80px 0;
}

.container {
    width: 90%;
    margin: auto;
}

/* TARJETAS REUTILIZABLES */
.card-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: var(--secondary);
    border-radius: 12px;
    padding: 25px 20px;
    flex: 1 1 280px;
    max-width: 320px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--accent);
    font-size: 1.6rem;
}

.card p {
    font-size: 1rem;
}

/* QUIENES SOMOS */
.quienes-somos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    min-height: 100vh;
}


/* SERVICIOS */
.services .card-grid {
    margin-top: 40px;
}

.services {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    min-height: 100vh;
}

.services h2 {
    margin-bottom: 40px;
}


/* CONTACTO */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: none;
    border-radius: 5px;
}

.contact-form button {
    background: var(--accent);
    color: var(--text-dark);
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.contact-form button:hover {
    background: #00b4d8;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 15px;
    background: var(--secondary);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        background: var(--primary);
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        margin: 10px 0;
        display: block;
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block;
    }
}
