/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333332;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

/* Colores y variables */
:root {
    --color-fondo: #CBD3CA;
    --color-texto: #333332;
    --color-acento: #718270;
    --color-boton: #718270;
}

/* Header y navegación */
header {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px 0;
    position: absolute;
    width: 100%;
    z-index: 100;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: var(--color-texto);
}

.logo span {
    color: var(--color-acento);
}

.logo img {
    max-height: 100px;
    width: auto;
    vertical-align: middle;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--color-acento);
}

/* Hero section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://pedrohurtadoseo.es/img/posicionamiento-murcia.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.btn {
    display: inline-block;
    background-color: white;
    color: var(--color-texto);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: lowercase;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--color-acento);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Sobre mí section */
.about {
    background-color: var(--color-fondo);
    padding: 80px 0;
    position: relative;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
    text-align: center;
}

.about-img img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content {
    flex: 2;
}

.about-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: var(--color-acento);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-subtitle {
    font-size: 16px;
    color: var(--color-texto);
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    color: var(--color-acento);
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--color-acento);
    color: white;
    transform: translateY(-3px);
}

/* Ventajas section */
.ventajas {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.ventajas-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    color: white;
    margin-bottom: 60px;
    text-transform: uppercase;
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--color-acento);
    position: relative;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    color: white;
    margin-bottom: 60px;
    text-transform: uppercase;
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--color-acento);
    position: relative;
}

.ventajas-container {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.ventaja-item {
    flex: 1;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.ventaja-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.ventaja-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 50%;
}

.ventaja-icon img {
    width: 40px;
    height: 40px;
}

.ventaja-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Servicios section */
.servicios {
    padding: 80px 0;
    background-color: var(--color-fondo);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.servicios-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-texto);
    margin-bottom: 30px;
}

.servicios-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.servicio-item {
    text-align: center;
    padding: 40px 20px;
    transition: all 0.3s;
}

.servicio-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.servicio-icon img {
    width: 40px;
    height: 40px;
}

.servicio-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    color: var(--color-texto);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.servicio-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

/* Contacto section */
.contacto {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.contacto-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.contacto-info {
    flex: 1;
}

.contacto-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    color: var(--color-acento);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.contacto-text {
    font-size: 16px;
    color: var(--color-texto);
    margin-bottom: 30px;
    line-height: 1.6;
}

.contacto-text span {
    color: var(--color-acento);
    font-weight: bold;
}

.contacto-details {
    margin-top: 30px;
}

.contacto-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contacto-item i {
    width: 40px;
    height: 40px;
    background-color: var(--color-acento);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contacto-map {
    flex: 1;
}

.contacto-map img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    color: white;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--color-acento);
}

/* Responsive */
@media (max-width: 992px) {
    .ventajas-container {
        flex-direction: column;
    }

    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        flex-direction: column;
    }

    .contacto-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .servicios-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        display: none;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .btn {
        padding: 10px 25px;
    }
}

.contacto-map {
    width: 100%;
    display: flex;
    justify-content: center;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    /* Puedes ajustar esto */
    padding-bottom: 56.25%;
    /* Proporción 16:9 */
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- ESTILOS PARA MENÚ HAMBURGUESA Y RESPONSIVE --- */




/* Botón Hamburguesa (oculto por defecto en desktop) */
.hamburger-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    /* Padding para hacerlo más fácil de tocar */
    margin: 0;
    /* Reset de margen */
    z-index: 1001;
    /* Por encima del menú desplegable */
    order: 3;
    /* Para asegurar que esté después del nav en el flujo visual si es necesario */
}

.hamburger-button .line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    /* Ajusta este color a tu paleta. Podrías usar var(--color-texto-principal) */
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* Estilos de la navegación en Desktop (tus estilos actuales deberían prevalecer) */
/* Si tu nav ul ya es display: flex; en escritorio, esto es solo un recordatorio */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation li {
    margin-left: 30px;
    /* Espacio entre elementos */
}


/* Media Query para pantallas pequeñas (móviles) - Ajusta el max-width según necesites */
@media (max-width: 768px) {

    /* Punto de quiebre común, ajústalo */
    .logo img {
        max-height: 50px;
        /* Ejemplo: reducir un poco el logo en móvil */
    }

    .main-navigation ul {
        /* Ocultar el menú normal de escritorio y prepararlo para móvil */
        display: none;
        /* Oculto hasta que se abra */
        flex-direction: column;
        position: absolute;
        top: 100%;
        /* Justo debajo del header. Si el header tiene altura fija, usa esa altura. */
        /* El script que cambia el fondo del header no cambia su altura, así que 100% del padre (.header-container) debería funcionar */
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        /* Fondo del menú móvil, similar a tu header con scroll */
        padding-top: 10px;
        padding-bottom: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        /* Debajo del botón hamburguesa si se superponen, pero encima del contenido */
        border-top: 1px solid #eee;
        /* Una pequeña separación visual */
    }

    /* Clase que se añade con JS para mostrar el menú */
    .main-navigation.menu-open ul {
        display: flex;
        /* Mostrar el menú */
    }

    .main-navigation li {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .main-navigation a {
        display: block;
        /* Para que ocupen todo el ancho y sean fáciles de tocar */
        padding: 15px;
        border-bottom: 1px solid #eee;
        /* Separadores entre elementos */
        color: #333;
        /* Asegurar color en menú móvil, ajusta a tu paleta */
    }

    .main-navigation li:last-child a {
        border-bottom: none;
    }

    .hamburger-button {
        display: block;
        /* Mostrar el botón hamburguesa en móvil */
    }

    /* (Opcional) Animación para convertir hamburguesa en X */
    .hamburger-button.active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-button.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-button.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2em;
        /* Ajustar si es muy grande en móvil */
    }

    .hero .btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    /* Si about-container es flex, apilar elementos */
    .about-container {
        flex-direction: column;
        align-items: center;
        /* Para centrar la imagen y el texto si es necesario */
    }

    .about-img,
    .about-content {
        width: 100%;
        /* Que ocupen todo el ancho en móvil */
        max-width: 500px;
        /* Evitar que sean demasiado anchos en tablets */
        margin-bottom: 20px;
    }

    .about-img img {
        /* Asegurar que las imágenes sean responsivas */
        max-width: 100%;
        height: auto;
        display: block;
        /* Para evitar espacio extra debajo */
        margin: 0 auto;
        /* Centrar si es más pequeña que el contenedor */
    }

    /* Si ventajas-container o servicios-grid usan CSS Grid o Flexbox para columnas */
    .ventajas-container,
    .servicios-grid {
        /* Ejemplo si usan grid */
        grid-template-columns: 1fr;
        /* Una columna en móvil */
        /* Ejemplo si usan flex */
        /* flex-direction: column; */
    }

    .ventaja-item,
    .servicio-item {
        margin-bottom: 20px;
        /* Espacio entre items apilados */
    }

    /* Si contacto-container es flex */
    .contacto-container {
        flex-direction: column;
    }

    .contacto-info,
    .contacto-map {
        width: 100%;
        margin-bottom: 20px;
    }

    .contacto-map iframe {
        height: 300px;
        /* Ajustar altura del mapa en móvil */
    }

    /* Ajustar tamaño de fuentes generales si es necesario */
    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
    }

    p {
        font-size: 1em;
    }

}

/* Fin de @media (max-width: 768px) */
/* Estilos adicionales para la página de política de privacidad */
.legal-content-section {
    padding-top: 120px;
    /* Ajusta según la altura de tu header fijo */
    padding-bottom: 60px;
    font-family: 'Open Sans', Arial, sans-serif;
    color: #333;
    /* Color de texto base de tu sitio si es diferente */
    line-height: 1.7;
}

.legal-content-section h1,
.legal-content-section h2,
.legal-content-section h3,
.legal-content-section h4 {
    font-family: 'Bebas Neue', 'Open Sans', sans-serif;
    /* Bebas Neue para títulos */
    color: #2c3e50;
    /* Un color oscuro para títulos, ajusta si usas otro */
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

.legal-content-section h1 {
    font-size: 2.8em;
    /* Más grande para el título principal de la página */
    text-align: center;
    border-bottom: 2px solid var(--color-acento, #3498db);
    /* Usa tu color de acento o un fallback */
    padding-bottom: 0.5em;
    margin-bottom: 1.5em;
}

.legal-content-section h2 {
    font-size: 2em;
    /* border-bottom: 1px solid #eee; */
    /* Opcional, como en tu clase .about-title */
    padding-bottom: 0.3em;
}

.legal-content-section h3 {
    font-size: 1.6em;
}

.legal-content-section h4 {
    font-size: 1.2em;
    color: #555;
}

.legal-content-section p,
.legal-content-section li {
    text-align: justify;
    margin-bottom: 1em;
    font-size: 1em;
    /* O 16px, ajusta a tu base */
}

.legal-content-section ul {
    list-style-type: disc;
    padding-left: 25px;
    /* Ajusta si prefieres otro tipo de viñeta o espaciado */
}

.legal-content-section ul ul {
    /* Sublistas */
    list-style-type: circle;
    margin-top: 0.5em;
}

.legal-content-section strong,
.legal-content-section b {
    font-weight: 600;
    /* O 700 si prefieres más énfasis */
    color: inherit;
    /* Hereda el color del párrafo, o especifica uno */
}

.legal-content-section a {
    color: var(--color-acento, #007bff);
    /* Usa tu color de acento para enlaces o un fallback */
    text-decoration: none;
}

.legal-content-section a:hover {
    text-decoration: underline;
}

.legal-content-section .contact-info p {
    margin-bottom: 0.3em;
}

.legal-content-section .indent {
    /* Si usas esta clase en el contenido */
    margin-left: 20px;
}

.legal-content-section .last-updated {
    text-align: right;
    font-style: italic;
    color: #777;
    margin-top: 3em;
    font-size: 0.9em;
    border-top: 1px solid #eee;
    padding-top: 1em;
}

/* Ajuste para que el contenido no se solape con el header fijo */
body {
    /* Si tu header es fijo y tiene una altura, por ejemplo 80px,
               puedes necesitar un padding-top en el body o en la primera sección.
               El script de tu web ya maneja el cambio de fondo del header,
               así que la sección .legal-content-section ya tiene un padding-top.
            */
}