body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background: #f2f2f2;
}
header {
    background-color: #2c3242; 
    color: white;
    padding: 0 30px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; 
    box-sizing: border-box;
}

header h1 {
    font-size: 1.5rem; 
    margin: 0;
}
nav {
    display: flex;
    gap: 20px; 
}

nav a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
    font-weight: bold;
}

nav a:hover {
    color: orange;
}
.hero {
    /* no tocar porfavor */
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/fondo.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white; 
    text-align: center;
}
.hero a {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: orange; 
    color: #2c3242; 
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.hero a:hover {
    background-color: #e69500; 
}
section {
    padding: 20px;
}
.galeria {
    display: grid;
    
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    padding: 40px 20px; /* Aumenté un poco el padding superior */
}
.galeria img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 5px solid rgb(255, 255, 255);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.galeria img:hover {
    transform: scale(1.05);
}
/* FONDO DIFUMINADO */
.popup {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);

    justify-content: center;
    align-items: center;

    z-index: 999;
}

/* CAJA CENTRADA */
.popup-box {
    position: relative;
    background: white;
    width: 70%;
    max-width: 800px;
    border-radius: 15px;
    padding: 20px;

    animation: aparecer 0.3s ease;
}

/* CONTENIDO */
.popup-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* IMAGEN MÁS PEQUEÑA */
.popup img {
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

/* TEXTO */
.popup-texto {
    flex: 1;
}

.popup-texto h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

.popup-texto p {
    font-size: 15px;
}

/* BOTÓN CERRAR */
.cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    cursor: pointer;
}

/* ANIMACIÓN */
@keyframes aparecer {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.servicios-container {
    padding: 80px 20px;
    
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/fondo-servicios.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.galeria-container {
    padding: 80px 20px;
    
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/fondo-servicios.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
}
.contacto-container {
    padding: 80px 20px;
    
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/fondo-servicios.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
}
.titulo-seccion {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #ffffff;
}

.servicio-card {
    display: flex;
    background: rgb(255, 255, 255);
    margin: 0 auto 30px auto; 
    max-width: 900px;
    border-radius: 12px;
    overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease; 
    border-left: 0px solid rgb(124, 122, 162); 
}

/* --- ESTO PASA CUANDO PONES EL MOUSE ENCIMA --- */
.servicio-card:hover {
    transform: translateX(15px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-left: 10px solid rgb(83, 83, 145); 
    cursor: pointer;
}

.servicio-card img {
    width: 300px; 
    height: 200px;
    object-fit: cover; 
}

.info-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card h3 {
    margin: 0 0 10px 0;
    color: #2c3242;
}
/* ------------------- ESTILOS PARA MÓVILES ---------------------- */
@media (max-width: 768px) {
    
    /* 1. Header vertical en móviles */
    header {
        flex-direction: column; /* Apila el título sobre el menú */
        height: auto; /* Que crezca según el contenido en móvil */
        padding: 20px;
        text-align: center;
    }

    header h1 {
        margin-bottom: 15px;
        font-size: 1.2rem;
    }

    nav {
        display: flex;
        flex-wrap: wrap; /* Si no caben, que bajen a la siguiente línea */
        justify-content: center;
        gap: 10px; /* Espacio entre links */
    }

    nav a {
        margin: 5px 10px; 
        font-size: 0.9rem;
    }

    
    .hero {
        height: 50vh; 
    }

    .hero h1 {
        font-size: 1.8rem;
    }

   
    .servicio-card {
        flex-direction: column; 
        height: auto;
        max-width: 95%;
    }

    .servicio-card img {
        width: 100%; 
        height: 200px;
    }

    .info-card {
        width: 100%; 
        padding: 20px;
    }

    .galeria {
        grid-template-columns: repeat(1, 1fr); 
    }
}
.sobre-nosotros {
    padding: 80px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.contenedor-texto {
    max-width: 800px;
    margin: 0 auto;
}

.sobre-nosotros h2 {
    font-size: 2.5rem;
    color: #2c3242;
    margin-bottom: 25px;
}

.sobre-nosotros p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}
footer {
    background-color: #2c3242; 
    color: white;
    padding: 50px 20px 20px 20px;
    margin-top: 50px;
}

.footer-contenido {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    gap: 30px;
}

.footer-info, .footer-contacto {
    flex: 1;
    min-width: 250px;
}

.footer-contacto a {
    color: orange; 
    text-decoration: none;
    font-weight: bold;
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #bbb;
}
/* --- ESTILO FLOTANTE --- */
.tarjeta-flotante {
    display: block !important; 
    background: rgba(255, 255, 255, 0.15) !important; 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important; 
    border-radius: 20px !important;
    text-align: center;
    padding: 60px 40px;
    max-width: 800px !important;
    margin: 50px auto !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important; 
}


.tarjeta-flotante h3 {
    color: white !important;
    font-size: 2.5rem !important;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5); 
}

.tarjeta-flotante p {
    color: #f0f0f0 !important;
    font-size: 1.2rem !important;
    margin-bottom: 30px;
}


.boton-consulta {
    display: inline-block;
    background-color: orange !important;
    color: #2c3242 !important;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.boton-consulta:hover {
    transform: scale(1.1); 
}
