/* css/components/pagina-ubicacion.css */

/* ... tus estilos existentes para .location-grid, etc. ... */

/* --- Estilos para la Barra de Confianza --- */
.trust-bar {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 20px 0;
}

.trust-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-headings);
    font-weight: 700;
}

.trust-item svg {
    width: 28px;
    height: 28px;
}

/* --- Estilos para el contenido de texto (prose) --- */
.prose {
    font-size: 1.1rem;
    line-height: 1.8;
}

.prose h3 {
    font-size: 1.6rem;
    margin-top: 2em;
    margin-bottom: 1em;
    color: var(--color-primary);
}

/* ===============================================
   RETOQUES Y PULIDO PARA LA CABECERA DE PÁGINA
   =============================================== */

/* Aplicamos a la cabecera con imagen que ya teníamos */
/* css/components/pagina-ubicacion.css */

.page-header.with-image {
    /* Mantenemos el fondo con el overlay oscuro */
    background-image: linear-gradient(rgba(26, 54, 93, 0.6), rgba(26, 54, 93, 0.6)), var(--bg-image-url);

    /* --- ¡AÑADE ESTAS PROPIEDADES! --- */
    background-size: cover;
    /* La imagen cubre todo el área sin deformarse */
    background-position: center center;
    /* Centra la imagen horizontal y verticalmente */
    background-repeat: no-repeat;
    /* Evita que la imagen se repita */

    /* ... el resto de tus estilos (color, padding, etc.) ... */
    color: var(--color-white);
    padding: 100px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Título principal en la cabecera con imagen */
.page-header.with-image .hero-title {
    color: var(--color-white);
    /* Sombra de texto más definida para máxima legibilidad */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Subtítulo en la cabecera con imagen */
.page-header.with-image .subtitle {
    color: var(--color-white);
    font-size: 1.3rem;
    font-weight: 400;
    /* Lo hacemos menos grueso que el título */
    max-width: 700px;
    /* Evitamos que sea demasiado ancho en pantallas grandes */
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
    opacity: 0.9;
    /* Lo hacemos ligeramente más sutil */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* css/components/pagina-ubicacion.css */

/* ... (Aquí podrían estar los otros estilos que añadimos antes) ... */

.location-grid {
    display: grid;
    /* Creamos una rejilla flexible con un mínimo de 250px por columna */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.location-card {
    display: block;
    padding: 25px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    font-family: var(--font-headings);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

/* css/components/pagina-ubicacion.css */

/* ... tus estilos existentes para .location-grid, etc. ... */

/* --- Estilos para la rejilla de servicios en página de localidad --- */
.services-list .grid-3 {
    align-items: stretch;
    /* Asegura que las tarjetas tengan la misma altura */
}

.service-card-detailed {
    background: var(--color-white);
    padding: 30px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.service-card-detailed h3 {
    color: var(--color-primary);
    margin-top: 0;
}

.service-card-detailed p {
    flex-grow: 1;
    /* Empuja el botón hacia abajo */
    color: var(--color-text);
}

.service-card-detailed .button {
    margin-top: 15px;
}

/* ===============================================
   RESPONSIVE PARA CABECERA DE PÁGINA DE UBICACIÓN
   =============================================== */

/* Para pantallas de 600px de ancho o menos... */
@media (max-width: 600px) {
    .page-header.with-image {
        /* Reducimos el padding en móvil para que no sea tan alto */
        padding: 60px 0;
    }

    .page-header.with-image .hero-title {
        /* Aquí puedes controlar el tamaño del título en móvil */
        font-size: 2.3rem;
        /* <-- ¡AJUSTA ESTE VALOR A TU GUSTO! */
        line-height: 1.2;
    }

    .page-header.with-image .subtitle {
        /* También ajustamos el subtítulo para que sea coherente */
        font-size: 1.1rem;
    }
}

/* Contenedor del enlace de navegación mejorado */
.nav-card {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #f8fafc;
    /* Un fondo claro */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-card:hover {
    background-color: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.07);
}

/* Estilo del icono (la flecha SVG) */
.nav-card-icon {
    flex-shrink: 0;
    margin-right: 1rem;
    background-color: #eef2ff;
    color: #4338ca;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-card-icon svg {
    width: 24px;
    height: 24px;
}

/* Contenedor para el texto */
.nav-card-text {
    display: flex;
    flex-direction: column;
}

/* Texto principal del enlace */
.nav-card-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e293b;
}

/* Subtítulo descriptivo */
.nav-card-subtitle {
    font-size: 0.95rem;
    color: #64748b;
}



.mapa-container {
  max-width: 800px;  /* Ancho máximo para el mapa */
  width: 100%;       /* Ocupa todo el ancho disponible hasta el máximo */
  margin-top: 35px;  /* Margen superior para separarlo del título */
  margin-left: auto; /* ¡Esto lo centra! */
  margin-right: auto;/* ¡Y esto también! */
}

.mapa-container iframe {
    width: 100%;
    height: 450px;
    /* Altura del mapa */
    border: 0;
}