/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #0d0f14;
    color: #fff;
    overflow-x: hidden;
}

/* ===== HEADER NUEVO ===== */

.header {
    width: 100%;
    padding: 18px 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 28px;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: #4cc9f0;
}

.phone {
    color: #ffffff;
    font-size: 14px;
}

.phone strong {
    color: #4cc9f0;
}


/* HERO */
.hero {
    position: relative;
    height: 85vh;
    background: url('../img/hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(0,0,0,0.75), rgba(0,0,0,0.4));
    backdrop-filter: blur(4px);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    color: #d4d4d4;
    margin-bottom: 25px;
}

.btn {
    padding: 12px 28px;
    background: #4cc9f0;
    color: #0d0f14;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    background: #38a9cf;
}

/* SECCIONES */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 80px auto;
}

/* SERVICIOS */
.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: rgba(30, 33, 42, 0.45);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.07);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #4cc9f0;
}

.card img {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
}

.card h3 {
    margin-top: 20px;
    font-size: 20px;
}

.card p {
    margin: 10px 0 20px;
    color: #ccc;
}

.btn-card {
    display: inline-block;
    padding: 10px 20px;
    background: #4cc9f0;
    color: #0d0f14;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-card:hover {
    background: #38a9cf;
}

/* FEATURES */
.features h2 {
    text-align: center;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    padding: 25px;
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    transition: 0.3s;
}

.feature-item:hover {
    background: rgba(255,255,255,0.1);
}

.feature-item i {
    font-size: 35px;
    margin-bottom: 12px;
    color: #4cc9f0;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 25px;
    background: rgba(255,255,255,0.03);
    margin-top: 80px;
    color: #aaa;
}

/* ===== MENÚ RESPONSIVE ===== */

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

/* Para móviles */
@media (max-width: 900px) {

    /* Ocultar teléfono */
    .phone {
        display: none;
    }

    /* Botón hamburguesa visible */
    .menu-toggle {
        display: block;
    }

    /* Navbar pasa a menú vertical */
    .navbar {
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background: rgba(10,10,10,0.95);
        padding: 25px 0;
        display: none;
        text-align: center;
        backdrop-filter: blur(10px);
    }

    .navbar ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .navbar a {
        font-size: 18px;
    }

    /* Cuando esté activo */
    .navbar.active {
        display: block;
        animation: fadeMenu 0.3s ease;
    }

    @keyframes fadeMenu {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Logo más pequeño */
    .logo img {
        height: 42px;
    }
}
