/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: #0d0d0d;
    color: #ffffff;
}


/* ===== 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 {
    width: 100%;
    height: 45vh;
    background: url("../img/hero2.png") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 20px;
    position: relative;
}

/* Capa oscura sin afectar texto */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.55);
}

.hero h1,
.hero p {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== INTRO ===== */
.intro {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    text-align: center;
    line-height: 1.7;
    font-size: 1.1rem;
}

.intro strong {
    color: #00aaff;
}

/* ===== GRID DE SERVICIOS ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #00aaff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    background: #111;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #222;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.25);
    border-color: #00aaff;
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h3 {
    color: #00aaff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.5;
}

/* ===== CTA ===== */
.cta {
    margin: 50px auto;
    text-align: center;
}

.cta a {
    background: #00aaff;
    color: #000;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
}

.cta a:hover {
    background: #0085cc;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 30px;
    background: #0b0b0b;
    color: #777;
    margin-top: 40px;
    border-top: 1px solid #1d1d1d;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .navbar a {
        margin-left: 15px;
    }
}


/* ===== 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;
    }
}
