/* --- VARIABLES Y ESTILOS GENERALES --- */
:root {
    --color-primario: #005c99; 
    --color-secundario: #004a7c;
    --color-fondo: #f8f9fa;
    --color-texto: #343a40;
    --color-blanco: #ffffff;
    --sombra-suave: 0 4px 15px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BARRA DE NAVEGACIÓN --- */
.navbar {
    background-color: var(--color-blanco);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--sombra-suave);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primario);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-texto);
    font-weight: 600;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-primario);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primario);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- BANNER DE IMAGEN --- */
.image-banner {
    /* ----- INSTRUCCIÓN: Cambia la URL por la ruta de tu imagen ----- */
    background-image: url(./imagenes/Gemini_Generated_Image_ixu5gcixu5gcixu5.png);
    background-size: cover;
    background-position: center;
    height: 300px; /* Altura del banner, ajústala a tu gusto */
    width: 100%;
}


/* --- SECCIONES DE SERVICIOS --- */
.service {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 80px 0; /* Aumentado el padding superior para dar espacio tras el banner */
    border-bottom: 1px solid #e0e0e0;
}

.service:first-of-type {
    padding-top: 80px; /* Asegura un buen espacio después del banner */
}

.service.reverse {
    flex-direction: row-reverse;
}

.service:last-child {
    border-bottom: none;
}

.service-text {
    flex: 1;
}

.service-text h2 {
    font-size: 2rem;
    font-weight: 600;
    color:black
}

.service-image {
    flex: 1;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e9ecef;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    box-shadow: var(--sombra-suave);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* --- FOOTER --- */
.footer-tempforgeia {
    text-align: center;
    padding: 2rem 0;
    background: #222;
    color: #fff;
    margin-top: 40px;
}

h1, h2 {
    color: #000;
}

/* --- DISEÑO RESPONSIVE PARA MÓVILES --- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .image-banner {
        height: 250px; /* Altura del banner reducida en móviles */
    }
    
    .service {
        padding: 60px 0;
    }

    .service, .service.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}