/* --- Estilos Generales --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 80px; /* Para compensar navbar fijo */
    background-color: #1A252F; /* azul oscuro grisáceo */
    color: #F5F5F5; /* texto claro suave */
}

h1, h2, h3 {
    color: #E0E0E0; /* gris perla claro */
}

a {
    text-decoration: none;
    color: #A8D0DB; /* azul hielo */
    transition: color 0.3s;
}

a:hover {
    color: #1DBF73; /* verde brillante */
}

/* --- Barra de Navegación Fija y Transparente --- */
header {
    background-color: rgba(30, 40, 50, 0.85);
    backdrop-filter: blur(8px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
}

.logo {
    font-weight: bold;
    font-size: 1.8rem;
    color: #F5F5F5;
}

/* Oculta menú en móviles inicialmente */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

/* Links estilo */
.nav-links li a {
    color: #F5F5F5;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #1DBF73;
    border-bottom: 2px solid #1DBF73;
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #F5F5F5;
    border-radius: 2px;
}

/* --- Sección Principal (Hero) --- */
.hero {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 70vh;
    color: #fff;
    position: relative;
    overflow: hidden;
    background-color: transparent;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('img/oficina.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 20px;
    text-align: center;
    transform: TranslateY(-100px);
    animation: fadeUP 1s ease-out forwards;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #F5F5F5;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #D1D5DB;
}

.cta-button {
    background-color: #1DBF73;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    display: inline-block;
}

.cta-button:hover {
    background-color: #17a55a;
}

/* --- Secciones --- */
section {
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #E0E0E0;
}

.service-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service {
    background-color: #2E3B47; /* gris azulado oscuro */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: #D1D5DB;
}

.service h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #F5F5F5;
}

.service p {
    font-size: 1.2rem;
    color: #B0B8C1;
}

/* --- Formulario de Contacto --- */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

form label {
    font-size: 1.2rem;
    margin-bottom: 5px;
    align-self: flex-start;
    color: #F5F5F5;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #1A252F;
    color: #F5F5F5;
}

form input::placeholder,
form textarea::placeholder {
    color: #888;
}

form button {
    background-color: #1DBF73;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #17a55a;
}

/* --- Pie de Página --- */
footer {
    background-color: #202B38;
    color: #A8D0DB;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
}

html {
    scroll-behavior: smooth;
}

/* --- Media Queries para Responsividad --- */

@media (max-width: 768px) {
    nav.menu-open .logo{
        display: none;
    }
    .hero-content{
        transform: TranslateY(-90px);
    }
    .navbar {
        flex-direction: row; /* Logo y hamburguesa en fila */
        padding: 10px 20px;
        gap: 0;
        justify-content: space-between; /* Logo izquierda, hamburguesa derecha */
        align-items: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
        display: none;
        margin-top: 10px; /* debajo del navbar */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: flex;
        order: 2; /* Para que quede a la derecha */
        cursor: pointer;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
    }

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background-color: #F5F5F5;
        border-radius: 2px;
    }

    .logo {
        order: 1; /* Para que quede a la izquierda */
    }

    /* Ajuste del padding-top para evitar que el contenido quede oculto */
    body {
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .nav-links li a {
        font-size: 1rem;
    }
    
    .hero-content{
        transform: TranslateY(-100px);
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    form input,
    form textarea {
        font-size: 0.9rem;
        padding: 8px;
    }
}

.imagen-prueba {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none; /* para que no interfiera con clicks */
}

@keyframes fadeUP {
    0%{
        opacity: 0;
        transform: translateY(50px);
    }
    100%{
        opacity: 1;
        transform: translateY(0);
    }

}
