/* ==========================================================================
   Babbid · center.css
   Estilos exclusivos de las páginas de centro (plantilla común a las 6 sedes)
   ========================================================================== */

/* ---------- Hero del centro ---------- */
.center-hero {
    position: relative;
    overflow: hidden;
    min-height: 540px;
    background: #111;
}
.center-hero__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
}
.center-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.15) 100%);
}
.center-hero__inner {
    position: relative; z-index: 2;
    min-height: 540px;
    display: flex; align-items: center;
    padding: 100px 0 80px;
    color: #fff;
}
.center-hero__copy { max-width: 720px; }
.center-hero__badge {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
}
.center-hero__badge::before {
    content: ''; width: 16px; height: 1px; background: var(--c-gold);
}
.center-hero h1 {
    color: #fff;
    font-size: clamp(36px, 4.6vw, 56px);
    font-weight: 800;
    line-height: 1.05; letter-spacing: -0.025em;
    margin-bottom: 18px;
}
.center-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 16px; line-height: 1.65;
    max-width: 56ch; margin-bottom: 32px;
}
.center-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Datos del centro · banda gris ---------- */
.center-info {
    background: var(--c-gray);
    padding: 48px 0;
    border-bottom: 1px solid var(--c-line);
}
.center-info__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    align-items: start;
}
.center-info__item h4 {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--c-text);
    margin-bottom: 8px;
}
.center-info__item p {
    font-size: 15px; font-weight: 500;
    color: var(--c-black);
    line-height: 1.5;
}
.center-info__item a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.center-info__item a:hover { color: var(--c-gold); }
@media (max-width: 960px) {
    .center-info__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Servicios del centro ---------- */
.center-services { padding: 100px 0; }
.center-services__head { margin-bottom: 48px; max-width: 720px; }
.center-services__head h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700; line-height: 1.15; letter-spacing: -0.025em;
    margin-bottom: 12px;
}
.center-services__head p {
    font-size: 15px; color: var(--c-text); line-height: 1.65;
    max-width: 60ch;
}
.center-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1080px) { .center-services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .center-services__grid { grid-template-columns: 1fr; } }

.center-service {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 8px;
    padding: 28px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: border-color .2s, transform .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
    display: flex; flex-direction: column;
}
.center-service:hover {
    border-color: #c0c0c0;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.center-service__icon {
    display: inline-flex;
    width: 32px; height: 32px;
    color: var(--c-black);
    margin-bottom: 24px;
}
.center-service__icon svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.4; display: block; }
.center-service h3 {
    font-size: 18px; font-weight: 600;
    color: var(--c-black);
    line-height: 1.25; letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.center-service p {
    font-size: 14px; line-height: 1.55;
    color: var(--c-text); flex-grow: 1; margin-bottom: 16px;
}
.center-service__more {
    font-size: 13px; font-weight: 500;
    color: var(--c-black);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}
.center-service:hover .center-service__more { color: var(--c-gold); }

/* ---------- Galería ---------- */
.center-gallery { padding: 0 0 100px; }
.center-gallery__head { margin-bottom: 32px; max-width: 720px; }
.center-gallery__head h2 {
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 700; letter-spacing: -0.02em;
}
.center-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 720px) { .center-gallery__grid { grid-template-columns: repeat(2, 1fr); } }
.center-gallery__item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}
.center-gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    transition: transform .5s;
}
.center-gallery__item:hover img { transform: scale(1.04); }

/* ---------- Ubicación / Mapa · split 60/40 ---------- */
.center-map { padding: 0 0 100px; }
.center-map__head { margin-bottom: 32px; max-width: 720px; }
.center-map__head h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700; line-height: 1.15; letter-spacing: -0.025em;
    margin-bottom: 8px;
}
.center-map__head p { font-size: 15px; color: var(--c-text); line-height: 1.55; }
.center-map__inner {
    display: grid;
    grid-template-columns: 60% 1fr;
    gap: 32px;
    align-items: stretch;
}
.center-map__frame {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--c-line);
    background: var(--c-gray);
    min-height: 480px;
}
.center-map__frame iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
    filter: grayscale(0.15);
}
.center-map__info {
    background: var(--c-gray);
    border-radius: 8px;
    padding: 36px 32px;
    display: flex; flex-direction: column;
    gap: 20px;
}
.center-map__info h3 {
    font-size: 18px; font-weight: 600;
    color: var(--c-black);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.center-map__info > p {
    font-size: 14px; color: var(--c-text); line-height: 1.55;
    margin-bottom: 4px;
}
.center-map__list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column;
}
.center-map__list li {
    padding: 14px 0;
    border-bottom: 1px solid #e0e0e0;
}
.center-map__list li:last-child { border-bottom: 0; }
.center-map__list strong {
    display: block;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--c-text);
    margin-bottom: 4px;
}
.center-map__list span {
    display: block;
    font-size: 14px; font-weight: 500; color: var(--c-black);
    line-height: 1.5;
}
.center-map__list a { color: inherit; text-decoration: none; }
.center-map__list a:hover { color: var(--c-gold); }
.center-map__cta {
    margin-top: auto;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600;
    color: var(--c-black);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}
.center-map__cta:hover { color: var(--c-gold); }
@media (max-width: 1080px) {
    .center-map__inner { grid-template-columns: 1fr; }
    .center-map__frame { min-height: 360px; }
}

/* ---------- Otros centros ---------- */
.other-centers { padding: 100px 0 120px; background: #fff; border-top: 1px solid var(--c-line); }
.other-centers__head { margin-bottom: 32px; }
.other-centers__head h2 {
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 700; letter-spacing: -0.02em;
}
.other-centers__grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.other-centers__grid--three { grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1080px) { .other-centers__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .other-centers__grid, .other-centers__grid--three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .other-centers__grid, .other-centers__grid--three { grid-template-columns: 1fr; } }

.other-center {
    background: var(--c-gray);
    border: 1px solid var(--c-line);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none; color: inherit;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.other-center:hover {
    border-color: var(--c-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.other-center__img {
    aspect-ratio: 16/11;
    overflow: hidden;
    background: #ddd;
}
.other-center__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    transition: transform .5s;
}
.other-center:hover .other-center__img img { transform: scale(1.04); }
.other-center__body { padding: 16px 18px 20px; }
.other-center__name { font-size: 15px; font-weight: 600; color: var(--c-black); margin-bottom: 4px; }
.other-center__addr { font-size: 12px; color: var(--c-text); }

/* ---------- Bloque SEO · pares imagen-texto alternados ---------- */
.center-seo { padding: 100px 0; background: #fff; border-top: 1px solid var(--c-line); }
.center-seo__intro { max-width: 720px; margin-bottom: 64px; }
.center-seo__intro h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700; line-height: 1.15; letter-spacing: -0.025em;
    color: var(--c-black);
    margin-bottom: 12px;
}
.center-seo__intro p {
    font-size: 15px; line-height: 1.65; color: var(--c-text);
    max-width: 60ch;
}
.center-seo__pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}
.center-seo__pair:last-child { margin-bottom: 0; }
.center-seo__pair--reverse .center-seo__copy { order: 1; }
.center-seo__pair--reverse .center-seo__visual { order: 2; }

.center-seo__visual {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}
.center-seo__visual img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
}
.center-seo__copy h3 {
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
    color: var(--c-black);
    margin-bottom: 16px;
}
.center-seo__copy p {
    font-size: 15px; line-height: 1.7; color: var(--c-text);
    margin-bottom: 14px;
    max-width: 56ch;
}
.center-seo__copy p:last-child { margin-bottom: 0; }
.center-seo__copy a { color: var(--c-black); text-decoration: underline; text-underline-offset: 3px; }
.center-seo__copy a:hover { color: var(--c-gold); }
.center-seo__copy ul {
    list-style: none; padding: 0; margin: 14px 0 0;
    display: flex; flex-direction: column; gap: 8px;
}
.center-seo__copy ul li {
    padding-left: 20px; position: relative;
    font-size: 14px; color: var(--c-text); line-height: 1.55;
}
.center-seo__copy ul li::before {
    content: ''; position: absolute; left: 0; top: 11px;
    width: 8px; height: 1px; background: var(--c-gold);
}
@media (max-width: 960px) {
    .center-seo__pair { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
    .center-seo__pair--reverse .center-seo__copy,
    .center-seo__pair--reverse .center-seo__visual { order: 0; }
}

/* ---------- Formulario de contacto al pie ---------- */
.center-form { padding: 100px 0; background: var(--c-gray); }
.center-form__inner {
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 64px; align-items: start;
}
.center-form__copy h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700; line-height: 1.15; letter-spacing: -0.025em;
    margin-bottom: 16px;
}
.center-form__copy p {
    font-size: 15px; color: var(--c-text); line-height: 1.65;
    max-width: 48ch; margin-bottom: 16px;
}
.center-form__contact {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
    display: flex; flex-direction: column; gap: 12px;
}
.center-form__contact strong { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-text); margin-bottom: 4px; }
.center-form__contact a { color: var(--c-black); text-decoration: none; font-size: 15px; font-weight: 500; }
.center-form__contact a:hover { color: var(--c-gold); }

.center-form__form {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    border: 1px solid var(--c-line);
}
@media (max-width: 1080px) {
    .center-form__inner { grid-template-columns: 1fr; gap: 32px; }
    .center-form__form { padding: 24px; }
}
