html {
    scroll-behavior: smooth;
    /* Opcional: si el menú tapa un poco el título al llegar, añade esto: */
    scroll-padding-top: 100px; 
}
:root {
    --bg-cream: #F9F9F7;
    --dma-red: #D32F2F;
    --dma-orange: #F57C00;
    --dma-yellow: #FFB300;
    --text-dark: #1A1A1A;
    --container-width: 1100px; /* Controla el ancho centrado */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.main-header {
    /* Un naranja muy suave y elegante (casi crema) */
    background-color: rgba(255, 165, 0, 0); 
    
    /* Si prefieres que no sea transparente y sea un color sólido: */
    /* background-color: #FFF9F2; */

    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 165, 0, 0); /* Una línea divisoria casi invisible */
    backdrop-filter: blur(10px); /* Esto le da un efecto cristal muy moderno */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 90%;
}


/* --- NAVEGACIÓN REVISADA --- */
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Alineación vertical central absoluta */
    height: 80px; /* Definimos una altura fija para control total */
}

.main-nav {
    display: flex;
    align-items: center; /* Centra los textos respecto al botón */
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1; /* Evita que el texto empuje la caja hacia arriba o abajo */
    display: flex;
    align-items: center;
}

/* El botón de la cabecera */
.btn-header-contact {
    background-color: var(--dma-orange);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    transition: transform 0.2s;
    /* Forzamos que no tenga márgenes que lo saquen de línea */
    margin: 0; 
}

/* --- LOGO REVISADO --- */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    /* Ajustamos la altura para que las barras naranjas no pisen el contenido */
    height: 70px; 
    width: auto;
    object-fit: contain;
    /* Un poco de margen abajo para separar el logo del texto de Sevilla */
    margin-bottom: 10px; 
}

/* 1. Ajuste del texto de ubicación */
.hero-location {
    margin-top: 40px; /* Aumentamos para que baje más respecto al logo */
    display: block;
    color: var(--dma-orange);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* 2. Hero Section: Quitamos el centrado vertical para que no flote hacia arriba */
.hero-section {
    padding-top: 100px; /* ESPACIO CLAVE: Esto empuja todo el contenido hacia abajo */
    padding-bottom: 0px;
    display: block; /* Cambiamos flex por block para tener control total del flujo */
}

/* 3. El Grid del Hero */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Ajustamos un poco las proporciones */
    gap: 60px; /* Más espacio entre el texto y los bloques de colores */
    align-items: start; /* Alineamos el contenido arriba del grid */
}
h1 {
    font-size: 3.8rem; /* Un poco más pequeño para que no ocupe tanto ancho */
    line-height: 1.1;
    margin: 20px 0;
    font-weight: 800;
}

h1 .accent { color: var(--dma-orange); font-weight: 400; }

.location-tag { color: var(--dma-orange); font-weight: 800; letter-spacing: 2px; font-size: 0.75rem; }

p { color: #555; margin-bottom: 30px; line-height: 1.6; }

/* Bento Grid Ajustado */
.bento-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bento-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.bento-item {
    padding: 25px;
    border-radius: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-red { background: var(--dma-red); height: 180px; }
.card-yellow { background: var(--dma-yellow); height: 180px; }
.card-orange { background: var(--dma-orange); }

.wide {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding: 30px;
}

.stat-num { font-size: 2.8rem; font-weight: 800; line-height: 1; }
.stat-desc { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; }
.stat-services { font-size: 1.2rem; font-weight: 800; }

/* Ticker Footer */
.footer-ticker {
    padding: 25px 0;
    border-top: 1px solid #EEE;
}

.ticker-content {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #BBB;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    h1 { font-size: 2.8rem; }
    .nav-links { display: none; }
    .bento-container { max-width: 500px; margin: 0 auto; }
}

/* --- SECCIÓN SERVICIOS (DENSIDAD AJUSTADA) --- */
.services-list-section {
    padding: 80px 0; /* Espaciado vertical de la sección */
    margin-top: 20px;
}

.section-header {
    margin-bottom: 50px;
}

.sub-tag {
    color: var(--dma-orange);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-top: 10px;
    letter-spacing: -1px;
}

.services-container {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: flex;
    align-items: center;
    padding: 20px 0; /* Fila más estrecha para que los puntos estén cerca */
    border-top: 1px solid #EEE;
    transition: background 0.3s ease;
}

.service-row:last-child {
    border-bottom: 1px solid #EEE;
}

.service-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #DDD; /* Color gris suave para el número */
    width: 60px;
}

.service-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin: 0;
}

/* Contenedor de las cápsulas/puntos */
.service-tags {
    display: flex;
    gap: 6px; /* Espacio mínimo entre etiquetas */
}

.service-tags span {
    border: 1px solid #E0E0E0;
    padding: 4px 12px; /* Cápsulas más finas y compactas */
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #888;
    white-space: nowrap;
    background-color: transparent;
}

/* Efecto hover sutil al pasar por la fila */
.service-row:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    .section-title { font-size: 2.5rem; }
    .service-info { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 10px; 
    }
    .service-tags {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .service-info h3 { font-size: 1.4rem; }
}

/* --- BANDA SEPARADORA DINÁMICA --- */
/* --- AJUSTE BANNER TICKER --- */
.ticker-separator {
    margin-top: 100px; /* Añade este espacio para que respire respecto a la sección anterior */
    margin-bottom: 0px; /* Espacio opcional con la sección de abajo (Servicios) */
    width: 100%;
    overflow: hidden;
    background-color: white;
    border-top: 1px solid #EEE;
    border-bottom: 1px solid #EEE;
    padding: 15px 0;
}

.ticker-separator {
    width: 100%;
    background-color: var(--bg-cream); /* O transparente si prefieres */
    border-top: 1px solid #EEE;
    border-bottom: 1px solid #EEE;
    padding: 20px 0;
    overflow: hidden; /* Oculta lo que sale de la pantalla */
    display: flex;
    align-items: center;
}


.ticker-wrapper {
    display: flex;
    width: 100%;
}

.ticker-scroll {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 25s linear infinite; /* Controla aquí la velocidad */
}

.ticker-scroll span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #BBB;
    letter-spacing: 2px;
    padding: 0 40px; /* Espacio entre palabras */
    position: relative;
}

/* Punto separador entre palabras */
.ticker-scroll span::after {
    content: "•";
    position: absolute;
    right: 0;
    color: var(--dma-orange);
}

/* KEYFRAMES PARA EL MOVIMIENTO */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Se mueve hasta la mitad (donde empieza el contenido duplicado) */
    }
}

/* Pausar al pasar el ratón (opcional, muy pro) */
.ticker-separator:hover .ticker-scroll {
    animation-play-state: paused;
}

/* --- SECCIÓN GALERÍA DE FOTOS --- */
.gallery-section {
    padding: 80px 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
    gap: 20px; /* Espacio entre fotos */
}

.photo-item {
    position: relative;
    height: 300px; /* Altura fija para que todas cuadren */
    border-radius: 20px; /* Bordes redondeados como en el bento hero */
    overflow: hidden;
    background-color: #EEE; /* Fondo mientras carga la imagen */
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la foto sin deformarla */
    transition: transform 0.5s ease;
}

/* Efecto Zoom al pasar el ratón */
.photo-item:hover img {
    transform: scale(1.05);
}

/* Sombreado degradado para leer bien el texto blanco */
.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.photo-category {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--dma-orange);
    margin-bottom: 5px;
}

.photo-title {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Responsivo para tablets y móviles */
@media (max-width: 900px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
    }
}

@media (max-width: 600px) {
    .photo-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil */
    }
    .photo-item {
        height: 250px;
    }
}

/* --- SECCIÓN EL PROCESO --- */
.process-section {
    padding: 80px 0;
}

.process-steps {
    display: flex;
    border: 1px solid #E0E0E0; /* El borde exterior que encierra todo */
    border-radius: 30px; /* Bordes muy redondeados como en la imagen */
    overflow: hidden;
    background-color: white;
}

.step-card {
    flex: 1;
    padding: 40px 30px;
    border-right: 1px solid #E0E0E0; /* Línea divisoria entre pasos */
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: background 0.3s ease;
}

/* Quitamos el borde derecho al último elemento */
.step-card:last-child {
    border-right: none;
}

.step-num {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--dma-orange); /* Color corporativo para el número */
    display: block;
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.step-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

/* Efecto hover sutil */
.step-card:hover {
    background-color: #FBFBFA;
}

/* Adaptación para móviles */
@media (max-width: 900px) {
    .process-steps {
        flex-direction: column; /* Se apilan en vertical en pantallas pequeñas */
    }
    .step-card {
        border-right: none;
        border-bottom: 1px solid #E0E0E0;
    }
    .step-card:last-child {
        border-bottom: none;
    }
}

/* --- SECCIÓN CONTACTO (FONDO OSCURO) --- */
.contact-section {
    background-color: black; /* Fondo antracita oscuro */
    padding: 100px 0;
    color: white;
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.white-text {
    color: white !important;
}

.contact-description {
    font-size: 1.1rem;
    color: #AAA;
    max-width: 500px;
    margin: 20px 0 30px 0;
    line-height: 1.6;
}

.contact-info-minimal {
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-info-minimal .separator {
    color: var(--dma-orange);
    margin: 0 10px;
}

/* BOTONES DE ACCIÓN */
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 220px;
}

/* Estilo WhatsApp */
.btn-contact.whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-contact.whatsapp:hover {
    background-color: #1eb957;
    transform: translateY(-3px);
}

/* Estilo Email */
.btn-contact.email {
    background-color: white;
    color: #333;
}

.btn-contact.email:hover {
    background-color: var(--dma-orange);
    color: white;
    transform: translateY(-3px);
}

/* Responsivo */
@media (max-width: 850px) {
    .contact-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .contact-description {
        margin: 20px auto;
    }
    .contact-actions {
        width: 100%;
        align-items: center;
    }
}
/* --- FOOTER FINAL --- */
.main-footer {
    background-color: #000; /* Negro puro como en la captura */
    padding: 60px 0 30px 0;
    color: white;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Línea divisoria sutil */
}

.footer-social {
    display: flex;
    gap: 25px;
}

.footer-social a {
    color: white;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--dma-orange);
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 0.65rem;
    color: #555;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Responsivo */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- ESTILOS PÁGINA LEGAL --- */
.legal-page {
    background-color: var(--bg-cream); /* El mismo fondo del index */
    color: #333;
    line-height: 1.8;
}

.legal-content {
    padding: 120px 20px 80px 20px;
    max-width: 800px; /* Para que sea cómodo de leer */
    margin: 0 auto;
}

.legal-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 50px;
    text-align: center;
}

.legal-content h2 {
    color: var(--dma-orange); /* EL AMARILLO DORADO DMA */
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-left: 3px solid var(--dma-orange);
    padding-left: 15px;
}

.legal-content p, .legal-content li {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.legal-content ul {
    list-style: none;
    padding-left: 0;
}

.legal-content strong {
    color: var(--text-dark);
}

/* Ajuste para que el nav de la página legal sea sencillo */
.legal-page .main-nav a {
    border: 1px solid #DDD;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
}
/* Esto empuja el contenido hacia abajo para que no lo tape el menú */
.legal-container {
    padding-top: 140px; /* 80px del menú + 60px de aire de cortesía */
    padding-bottom: 80px;
    margin: 0 auto;
    max-width: 900px;
}

/* Si usas la clase .legal-page en el body, también puedes hacerlo así */
.legal-page main {
    margin-top: 80px; /* La altura exacta de tu menú */
}

/* --- AJUSTE PARA ORDENADOR (Evita que se rompa al añadir el div) --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Esto arregla el desajuste que ves ahora mismo */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Aseguramos que los enlaces dentro del div mantengan su estilo */
.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- AJUSTE PARA MÓVIL (Al final de tu archivo) --- */
@media (max-width: 768px) {
    /* Ocultamos la caja de links, pero el botón de contacto se queda */
    .nav-links {
        display: none !important;
    }

    .main-header .container {
        height: 70px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 15px !important;
    }

    .logo img {
        height: 40px !important;
        margin-bottom: 0 !important;
    }
}