/* RESET BÁSICO: Para quitar márgenes molestos por defecto */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

.encabezado {
    background-color: #333;
    color: white;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Eliminamos cualquier instrucción que corte lo que sobresale */
    overflow: visible; 
}

.encabezado ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.encabezado a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.btn-contacto {
    background-color: #d35400; /* Naranja ladrillo */
    padding: 8px 15px;
    border-radius: 5px;
}

/* PORTADA (HERO) CON IMAGEN */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('fondo.jpg') no-repeat center center;
    background-size: cover;
    /* Quitamos el attachment fixed que da error en iPhone */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3rem; /* Letra más grande e impactante */
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); /* Sombra para que se lea bien sobre la foto */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.btn-principal {
    display: inline-block;
    margin-top: 20px;
    background-color: #2c3e50; /* Azul oscuro */
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
}

/* SERVICIOS */
.seccion {
    padding: 40px 20px;
    text-align: center;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Automático para móviles */
    gap: 20px;
    margin-top: 30px;
}

.tarjeta {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tarjeta h3 {
    color: #d35400;
    margin-bottom: 10px;
}

/* PIE DE PÁGINA */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
/* AJUSTES DEL LOGO CORPORATIVO */
.logo {
    display: flex;
    align-items: center;
}

.img-logo {
    height: 150px;         /* Lo subimos a 150px para que sea imponente */
    width: auto;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4); /* Sombra más fuerte para que "flote" */
    margin-top: 10px;      /* Lo bajamos un poco para que sobresalga por abajo */
    margin-bottom: -40px;  /* TRUCO PROFESIONAL: Hace que el logo sobresalga de la barra */
    transition: transform 0.3s;
}

.img-logo:hover {
    transform: scale(1.05); /* Se agranda un pelín al tocarlo con el ratón */
}
/* ESTILO PARA LAS LISTAS DE SERVICIOS */
.puntos-clave {
    list-style: none;
    margin-top: 15px;
    text-align: left; /* Alineamos a la izquierda para mejor lectura */
    padding-left: 10px;
}

.puntos-clave li {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.puntos-clave li::before {
    content: "→"; /* Una flecha elegante delante de cada servicio */
    position: absolute;
    left: 0;
    color: #d35400; /* Color naranja corporativo */
    font-weight: bold;
}
/* BOTÓN DE PEDIR PRESUPUESTO EN EL MENÚ */
.btn-contacto {
    background-color: #d35400; /* Naranja Obrantis */
    color: white !important;   /* Forzamos el color blanco del texto */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
}

.btn-contacto:hover {
    background-color: #a04000; /* Un naranja más oscuro al pasar el ratón */
    transform: translateY(-2px); /* Un pequeño salto hacia arriba muy elegante */
}
/* ESTILOS DE LA GALERÍA */
.seccion-galeria {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.contenedor-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.foto-obra {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.foto-obra img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto hace que la foto se ajuste sin deformarse */
    transition: transform 0.5s;
}

.foto-obra:hover img {
    transform: scale(1.1); /* Efecto zoom al pasar el ratón */
}

.info-obra {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(211, 84, 0, 0.8); /* Fondo naranja translúcido */
    color: white;
    padding: 10px;
}
/* ESTILOS DEL PIE DE PÁGINA */
.pie-pagina {
    background-color: #333;
    color: white;
    padding: 40px 20px 20px 20px;
    margin-top: 50px;
}

.contenedor-footer {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #555;
    padding-bottom: 20px;
}

.info-empresa h3 {
    color: #d35400; /* Naranja corporativo */
    margin-bottom: 10px;
}

.contacto-directo a {
    color: white;
    text-decoration: none;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #bbb;
}
/* ESTILO BOTÓN WHATSAPP */
.whatsapp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-flotante img {
    width: 35px;
    height: 35px;
}

.whatsapp-flotante:hover {
    transform: scale(1.1); /* Crece un poquito al pasar el ratón */
    background-color: #128c7e;
}
/* AJUSTES PARA MÓVIL (CONTROL DE CALIDAD) */
@media (max-width: 768px) {
    .encabezado {
        flex-direction: column; /* Logo arriba, menú abajo */
        padding: 10px;
    }

    .img-logo {
        height: 80px; /* Un poco más pequeño en móvil para no tapar todo */
        margin-bottom: 10px;
    }

    nav ul {
        flex-direction: column; /* Menú en lista vertical */
        gap: 10px;
        text-align: center;
        padding: 0;
    }

    .hero h1 {
        font-size: 1.8rem; /* Letra más ajustada al ancho del móvil */
    }

    .grid-servicios, .contenedor-galeria {
        grid-template-columns: 1fr; /* Una tarjeta debajo de otra */
    }

    .contenedor-footer {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}
/* ESTILO ESPECÍFICO PARA ENLACES LEGALES */
.enlaces-legales {
    margin-top: 20px;
    padding: 10px;
    font-size: 0.85rem;
    color: #888;
}

.enlaces-legales a {
    color: #3498db; /* Azul profesional para enlaces, o usa #d35400 si prefieres naranja */
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.enlaces-legales a:hover {
    text-decoration: underline;
    color: #fff;
}

.seccion-contacto {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

.contenedor-formulario {
    max-width: 500px;
    margin: 0 auto;
    background: #f4f4f4;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.campo {
    margin-bottom: 15px;
    text-align: left;
}

.campo label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.campo input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn-enviar {
    background-color: #25d366;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}
/* --- AJUSTES DE FUERZA PARA OBRANTIS --- */

/* LOGO: Lo ponemos en 120px para que se vea gigante */ .img-logo { height: 120px !important; width: auto !important; max-height: none !important; }

/* TEXTO TARJETAS: Negro puro y letra más gruesa */ .tarjeta p { color: #000000 !important; font-size: 1.1rem !important; font-weight: 700 !important; opacity: 1 !important; }

/* TÍTULOS DE TARJETAS: Más grandes */ .tarjeta h3 { color: #d35400 !important; font-size: 1.6rem !important; font-weight: 800 !important; }

/* LISTAS: Negro puro */ .puntos-clave li { color: #000000 !important; font-weight: 600 !important; }