/* ==========================================================================
   Casa Erika · Rediseño (noviembre 2026)
   Paleta: blanco encalado, tinta volcánica, azul océano. Tipos: Outfit + Inter.
   ========================================================================== */

:root {
    --ce-ground: #FBFAF7;
    --ce-sand: #F3EEE6;
    --ce-line: #ECE6DC;
    --ce-line-strong: #D6CEC1;
    --ce-ink: #1C2127;
    --ce-ink-2: #3F4A55;
    --ce-muted: #55606B;
    --ce-ocean: #0E6E86;
    --ce-ocean-dark: #0A5568;
    --ce-ocean-soft: #E3F1F4;
    --ce-sea: #CFE7EE;
    --ce-deep: #12343D;
    --ce-ok: #1F9D57;
    --ce-ok-text: #17663F;
    --ce-ok-soft: #E6F4EC;
    --ce-ko: #B4232F;
    --ce-ko-soft: #FBE9EA;
    --ce-radius: 22px;
    --ce-display: 'Outfit', system-ui, sans-serif;
    --ce-body: 'Inter', system-ui, sans-serif;
}

body.ce {
    margin: 0;
    background: var(--ce-ground);
    color: var(--ce-ink);
    font-family: var(--ce-body);
    font-size: 16px;
    line-height: 1.6;
}
.ce img { display: block; max-width: 100%; }
.ce a { color: var(--ce-ocean); }
.ce a:hover { color: var(--ce-ocean-dark); }
/* Anula el efecto global de styles.css en los botones del rediseño */
.ce button:hover, .ce .btn:hover { transform: none; box-shadow: none; }
/* ...pero las flechas centradas en vertical necesitan conservar su translateY(-50%) al pasar el ratón */
.ce .carousel-nav:hover, .ce #prevImage:hover, .ce #nextImage:hover { transform: translateY(-50%); }
.ce :focus-visible { outline: 3px solid rgba(14, 110, 134, 0.45); outline-offset: 2px; }

.ce-container { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 480px) { .ce-container { padding-left: 16px; padding-right: 16px; } }

/* Tipografía */
.ce-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ce-ocean); }
.ce-h1 { margin: 0; font-family: var(--ce-display); font-weight: 700; font-size: clamp(36px, 4.8vw, 64px); line-height: 1.04; letter-spacing: -.02em; }
.ce-h2 { margin: 0; font-family: var(--ce-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.01em; }
.ce-h3 { margin: 0; font-family: var(--ce-display); font-weight: 600; font-size: 22px; line-height: 1.2; }
.ce-lead { margin: 0; font-size: 18px; color: var(--ce-muted); }
.ce-muted { color: var(--ce-muted); }

/* Botones */
.ce-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
    font: 600 15px/1 var(--ce-body); text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.ce-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.ce-btn--lg { min-height: 52px; font-size: 16px; }
.ce-btn--sm { min-height: 44px; padding: 0 20px; }
.ce-btn--block { width: 100%; }
.ce .ce-btn--primary { background: var(--ce-ocean); color: #fff; }
.ce .ce-btn--primary:hover { background: var(--ce-ocean-dark); color: #fff; }
.ce .ce-btn--outline { border-color: var(--ce-ink); color: var(--ce-ink); background: transparent; }
.ce .ce-btn--outline:hover { background: var(--ce-ink); color: #fff; }
.ce .ce-btn--light { background: #fff; color: var(--ce-deep); }
.ce .ce-btn--light:hover { background: var(--ce-ocean-soft); color: var(--ce-deep); }
.ce .ce-btn--ghost-light { border-color: #fff; color: #fff; }
.ce .ce-btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.ce .ce-btn--quiet { border-color: var(--ce-line-strong); color: var(--ce-ink); background: #fff; }
.ce .ce-btn--quiet:hover { border-color: var(--ce-ink); color: var(--ce-ink); }

.ce-btn--nowrap { white-space: nowrap; }

/* Etiquetas */
.ce-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.ce-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ce-badge--ok { background: var(--ce-ok-soft); color: var(--ce-ok-text); }
.ce-badge--ko { background: var(--ce-ko-soft); color: var(--ce-ko); }
.ce-badge--on-photo { background: #fff; }
.ce-chip { display: inline-block; font-size: 13px; font-weight: 500; color: var(--ce-ink); background: var(--ce-sand); border-radius: 999px; padding: 5px 12px; }

/* Cabecera */
.ce-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 250, 247, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ce-line); }
.ce-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.ce-header__logo img { height: 44px; width: auto; }
.ce-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.ce .ce-nav a { color: var(--ce-ink); text-decoration: none; padding: 8px 0; }
.ce .ce-nav a:hover { color: var(--ce-ocean); }
.ce .ce-nav a[aria-current="page"] { color: var(--ce-ocean); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.ce-header__actions { display: flex; align-items: center; gap: 12px; }
.ce-menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ce-line-strong); background: #fff; color: var(--ce-ink); align-items: center; justify-content: center; cursor: pointer; }
.ce-mobile-menu { border-top: 1px solid var(--ce-line); padding: 12px 0 20px; }
.ce-mobile-menu a { display: block; padding: 12px 4px; font-size: 17px; font-weight: 500; color: var(--ce-ink); text-decoration: none; border-bottom: 1px solid var(--ce-line); }
.ce .ce-mobile-menu a[aria-current="page"] { color: var(--ce-ocean); }
@media (max-width: 960px) {
    .ce-nav, .ce-header__actions .ce-btn { display: none; }
    .ce-menu-btn { display: inline-flex; }
}
@media (min-width: 961px) { .ce-mobile-menu { display: none !important; } }

/* Migas de pan */
.ce-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ce-muted); }
.ce .ce-crumbs a { color: var(--ce-muted); }

/* Secciones */
.ce-section { padding: 88px 0; }
.ce-section--sand { background: var(--ce-sand); }
.ce-section--sea { background: #E9F3F5; }
.ce-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-bottom: 40px; }
.ce-section-head > :first-child { flex: 1 1 360px; }
.ce-section-head > p { flex: 0 1 460px; margin: 0; color: var(--ce-muted); font-size: 17px; }
.ce-page-head { padding: 48px 0 28px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 640px) { .ce-section { padding: 64px 0; } }

/* Aviso */
.ce-alert { border-radius: 14px; padding: 14px 18px; font-size: 15px; }
.ce-alert--ok { background: var(--ce-ok-soft); color: var(--ce-ok-text); }
.ce-alert--ko { background: var(--ce-ko-soft); color: var(--ce-ko); }

/* Portada */
.ce-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 32px; }
.ce-hero__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.ce-hero__text .ce-lead { font-size: 19px; max-width: 36ch; }
.ce-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.ce-hero__media { flex: 1.25 1 520px; min-width: 0; position: relative; }
.ce-hero__media > img { width: 100%; height: 540px; object-fit: cover; border-radius: 28px; }
.ce-hero__card { position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: max-content; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: 0 10px 30px rgba(28,33,39,.14); line-height: 1.3; }
.ce-hero__card .ce-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ce-ok); flex-shrink: 0; }
.ce-hero__card strong { display: block; font-size: 15px; }
.ce-hero__card span { font-size: 13px; color: var(--ce-muted); }
/* Crédito de la foto de portada (la licencia CC BY-SA de Wikimedia Commons obliga a citar al autor) */
.ce .ce-hero__credit { position: absolute; top: 14px; right: 18px; font-size: 11px; font-weight: 500; line-height: 1.3; color: #fff; background: rgba(0,0,0,.6); padding: 4px 10px; border-radius: 999px; text-decoration: none; }
.ce .ce-hero__credit:hover { color: #fff; background: rgba(0,0,0,.8); text-decoration: underline; }
@media (max-width: 640px) { .ce-hero__media > img { height: 360px; } .ce-hero { padding-top: 32px; gap: 32px; } }

.ce-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--ce-line); border: 1px solid var(--ce-line); border-radius: 20px; overflow: hidden; margin: 16px 0 72px; }
.ce-facts > div { background: var(--ce-ground); padding: 22px 24px; display: flex; flex-direction: column; gap: 2px; }
.ce-facts strong { font-family: var(--ce-display); font-size: 30px; font-weight: 600; line-height: 1.2; }
.ce-facts span { color: var(--ce-muted); font-size: 15px; }

/* Tarjeta de apartamento (rejilla) */
.ce-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.ce-card { background: #fff; border-radius: var(--ce-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(28,33,39,.06); }
.ce-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ce-sand); }
/* El carrusel (o la foto suelta) ocupa exactamente la caja 4:3: una foto vertical no puede estirar la tarjeta */
.ce-card__media [data-carousel], .ce-card__media > img { position: absolute; inset: 0; }
.ce-card__media [data-carousel-wrapper], .ce-card__media [data-carousel-slide] { height: 100%; }
.ce-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ce-card__media .ce-badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.ce-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.ce-place { display: flex; align-items: center; gap: 6px; color: var(--ce-muted); font-size: 14px; }
.ce-place svg { width: 16px; height: 16px; flex-shrink: 0; }
.ce-card__title { margin: 0; font-family: var(--ce-display); font-size: 23px; font-weight: 600; line-height: 1.2; }
.ce .ce-card__title a { color: var(--ce-ink); text-decoration: none; }
.ce-clamp { margin: 0; color: var(--ce-muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ce-clamp--3 { -webkit-line-clamp: 3; }
.ce-specs { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.ce-specs span { display: inline-flex; align-items: center; gap: 6px; }
.ce-specs svg { width: 16px; height: 16px; }
.ce-price { font-family: var(--ce-display); font-weight: 600; font-size: 20px; }
.ce-price small { font-family: var(--ce-body); font-size: 13px; font-weight: 400; color: var(--ce-muted); }
.ce-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid #EFEAE2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ce .ce-link-strong { font-weight: 600; font-size: 15px; color: var(--ce-ink); display: inline-flex; align-items: center; gap: 6px; }
.ce-link-strong svg { width: 16px; height: 16px; }

/* Tarjeta horizontal (listado) */
.ce-list { display: flex; flex-direction: column; gap: 24px; }
.ce-row { background: #fff; border: 1px solid #EFEAE2; border-radius: 24px; overflow: hidden; display: flex; flex-wrap: wrap; }
.ce-row__media { flex: 1 1 340px; min-width: 0; position: relative; min-height: 280px; background: var(--ce-sand); }
.ce-row__media [data-carousel] { position: absolute; inset: 0; }
.ce-row__media [data-carousel-wrapper], .ce-row__media [data-carousel-slide] { height: 100%; }
.ce-row__media img { width: 100%; height: 100%; object-fit: cover; }
.ce-row__body { flex: 1.4 1 380px; min-width: 0; padding: 28px 32px; display: flex; flex-direction: column; gap: 14px; }
.ce-row__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.ce-row__title { margin: 0; font-family: var(--ce-display); font-size: 28px; font-weight: 600; line-height: 1.15; }
.ce .ce-row__title a { color: var(--ce-ink); text-decoration: none; }
.ce-chips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 480px) { .ce-row__body { padding: 22px 20px; } }

.ce-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--ce-line); border-bottom: 1px solid var(--ce-line); margin-bottom: 32px; }
.ce-filter__group { display: flex; flex-wrap: wrap; gap: 8px; }
.ce-filter__btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ce-line-strong); background: #fff; color: var(--ce-ink); font: 600 14px var(--ce-body); cursor: pointer; }
.ce-filter__btn[aria-pressed="true"] { background: var(--ce-ink); border-color: var(--ce-ink); color: #fff; }

/* Carrusel dentro de las tarjetas */
.ce .carousel-nav { width: 40px; height: 40px; }

/* Servicios */
.ce-split { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.ce-split__aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ce-split__aside img { width: 100%; height: 280px; object-fit: cover; border-radius: var(--ce-radius); margin-top: 12px; }
.ce-split__main { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 40px; align-content: start; }
.ce-feature { display: flex; flex-direction: column; gap: 10px; }
.ce-feature p { margin: 0; color: var(--ce-muted); font-size: 15px; }
.ce-feature h3 { margin: 4px 0 0; font-family: var(--ce-display); font-size: 20px; font-weight: 600; }
.ce-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--ce-ocean-soft); color: var(--ce-ocean); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ce-icon svg { width: 24px; height: 24px; }
.ce-icon--sm { width: 40px; height: 40px; border-radius: 12px; }
.ce-icon--sm svg { width: 20px; height: 20px; }

/* Ubicaciones */
.ce-loc { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.ce-loc__map { flex: 1 1 420px; min-width: 0; position: relative; background: var(--ce-sea); border-radius: 28px; padding: 40px 32px 28px; display: flex; flex-direction: column; align-items: center; gap: 24px; overflow: hidden; }
.ce-loc__ocean { position: absolute; left: 28px; top: 22px; font-size: 13px; font-style: italic; letter-spacing: .12em; text-transform: uppercase; color: #2F6E7D; }
.ce-loc__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 14px; }
.ce-loc__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ce-loc__text > p { margin: 0; color: var(--ce-ink-2); font-size: 17px; }
.ce-points { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; padding-top: 8px; }
.ce-point { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 16px; line-height: 1.4; }
.ce-point svg { width: 22px; height: 22px; color: var(--ce-ocean); flex-shrink: 0; margin-top: 2px; }
.ce-point strong { display: block; font-size: 16px; }
.ce-point span { font-size: 14px; color: var(--ce-muted); }

/* Mapa SVG de la isla */
.ce-map { position: relative; width: 74%; max-width: 400px; aspect-ratio: 600 / 710; }
.ce-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ce-map path { fill: #F4E9D4; stroke: #fff; stroke-width: 5; stroke-linejoin: round; filter: drop-shadow(0 12px 20px rgba(14,110,134,.22)); }
.ce-map__pin { position: absolute; width: 0; height: 0; }
.ce-map__dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; background: var(--ce-ocean); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(14,110,134,.18); }
.ce-map__label { position: absolute; left: 14px; bottom: 8px; white-space: nowrap; background: #fff; color: var(--ce-ink); font-size: 13px; font-weight: 600; line-height: 1.3; padding: 5px 11px; border-radius: 999px; box-shadow: 0 4px 12px rgba(28,33,39,.14); }
.ce-map__pin--left .ce-map__label { left: auto; right: 14px; }
.ce-map--sm { width: 170px; flex-shrink: 0; }
.ce-map--xs { width: 120px; flex-shrink: 0; }
.ce-map--sm path, .ce-map--xs path { stroke-width: 9; }
.ce-map--xs .ce-map__dot { left: -6px; top: -6px; width: 12px; height: 12px; border-width: 2px; box-shadow: none; }

/* Lugares */
.ce-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 40px 28px; }
.ce-places article { display: flex; flex-direction: column; gap: 14px; }
.ce-places img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; }
.ce-places p { margin: 0; color: var(--ce-muted); font-size: 15px; }
.ce-places ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ce-places--compact { grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 20px; }
.ce-places--compact article { flex-direction: row; gap: 0; background: #fff; border-radius: 20px; overflow: hidden; }
.ce-places--compact img { width: 38%; aspect-ratio: auto; min-height: 180px; border-radius: 0; flex-shrink: 0; }
.ce-places--compact article > div { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.ce-places--compact p { font-size: 14px; line-height: 1.55; }

/* Banda oscura (contacto / llamada a la acción) */
.ce-band { background: var(--ce-deep); color: #fff; border-radius: 32px; padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; }
.ce-band__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ce-band__text p { margin: 0; color: #C9DCE0; font-size: 17px; }
.ce .ce-band a.ce-band__mail { color: #fff; }
.ce-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ce-band--media { padding: 0; overflow: hidden; gap: 0; }
.ce-band--media .ce-band__text { padding: clamp(32px, 5vw, 56px); }
.ce-band--media > img { flex: 1 1 380px; min-width: 0; min-height: 300px; object-fit: cover; align-self: stretch; }

/* Ficha de apartamento */
.ce-detail-head { padding: 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.ce-detail-head__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.ce-gallery { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 240px 240px; gap: 10px; border-radius: 26px; overflow: hidden; margin-top: 28px; }
.ce-gallery button { position: relative; padding: 0; border: 0; background: var(--ce-sand); cursor: zoom-in; overflow: hidden; }
.ce-gallery button img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.ce-gallery button:hover img { opacity: .9; }
.ce-gallery__main { grid-column: span 2; grid-row: span 2; }
.ce .ce-gallery .ce-gallery__all { position: absolute; right: 16px; bottom: 16px; z-index: 2; min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ce-ink); font: 600 14px/1 var(--ce-body); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; box-shadow: 0 6px 20px rgba(18,52,61,.18); transition: background-color .2s, transform .2s; }
.ce .ce-gallery .ce-gallery__all:hover { background: #fff; transform: translateY(-1px); }
.ce-gallery__all svg { width: 16px; height: 16px; flex-shrink: 0; }
.ce-gallery--1 { grid-template-columns: 1fr; grid-template-rows: 480px; }
.ce-gallery--1 .ce-gallery__main { grid-column: auto; grid-row: auto; }
@media (max-width: 760px) {
    .ce-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 260px 140px; }
    .ce-gallery__main { grid-column: span 2; grid-row: auto; }
    .ce-gallery__extra { display: none; }
}
.ce-detail { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 56px; padding: 40px 0 96px; }
.ce-detail__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.ce-detail__main section + section { padding-top: 28px; border-top: 1px solid var(--ce-line); }
.ce-detail__main section { display: flex; flex-direction: column; gap: 14px; }
.ce-detail__main h2 { margin: 0; font-family: var(--ce-display); font-size: 28px; font-weight: 600; }
.ce-detail__desc p { margin: 0 0 14px; color: var(--ce-ink-2); font-size: 17px; }
.ce-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--ce-line); border: 1px solid var(--ce-line); border-radius: 18px; overflow: hidden; }
.ce-stats > div { background: var(--ce-ground); padding: 16px 18px; display: flex; flex-direction: column; }
.ce-stats strong { font-family: var(--ce-display); font-size: 22px; font-weight: 600; }
.ce-stats span { font-size: 14px; color: var(--ce-muted); }
.ce-features { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px 24px; }
.ce-features li { display: flex; align-items: center; gap: 12px; }
.ce-locbox { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; background: var(--ce-sea); border-radius: var(--ce-radius); padding: 28px; }
.ce-locbox > div:last-child { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; }
.ce-booking { flex: 1 1 340px; min-width: 0; max-width: 420px; position: sticky; top: 100px; background: #fff; border: 1px solid var(--ce-line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 12px 40px rgba(28,33,39,.08); }
.ce-booking h2 { margin: 0; font-family: var(--ce-display); font-size: 24px; font-weight: 600; }
.ce-booking__note { margin: 0; padding-top: 14px; border-top: 1px solid #EFEAE2; font-size: 13px; color: var(--ce-muted); text-align: center; }
@media (max-width: 960px) { .ce-booking { position: static; max-width: none; } }

/* Formularios */
.ce-form { background: #fff; border: 1px solid var(--ce-line); border-radius: 26px; padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.ce-field { display: flex; flex-direction: column; gap: 6px; }
.ce-field label, .ce-label { font-size: 14px; font-weight: 600; }
.ce-input { min-height: 48px; border: 1px solid var(--ce-line-strong); border-radius: 12px; padding: 0 14px; font: 16px var(--ce-body); color: var(--ce-ink); background: var(--ce-ground); width: 100%; box-sizing: border-box; }
textarea.ce-input { padding: 12px 14px; resize: vertical; min-height: 130px; }
.ce-input:focus { outline: none; border-color: var(--ce-ocean); box-shadow: 0 0 0 3px rgba(14,110,134,.18); }
.ce-input[readonly] { background: var(--ce-sand); }
.ce-fields-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.ce-captcha { background: var(--ce-sand); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.ce-captcha__q { font-family: var(--ce-display); font-size: 20px; font-weight: 600; margin: 0; }
.ce-captcha .ce-input { background: #fff; }

/* Contacto */
.ce-banner { position: relative; border-radius: 28px; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; margin-top: 32px; }
.ce-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ce-banner::after { content: ''; position: absolute; inset: 0; background: rgba(18,52,61,.45); }
.ce-banner__text { position: relative; z-index: 1; padding: clamp(28px, 4vw, 48px); color: #fff; display: flex; flex-direction: column; gap: 8px; }
.ce-banner__text p { margin: 0; font-size: 18px; color: #E4F0F2; }
.ce .ce-banner .ce-crumbs, .ce .ce-banner .ce-crumbs a { color: #fff; }
.ce-contact { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; padding: 40px 0 96px; }
.ce-contact > form { flex: 999 1 560px; min-width: 0; }
.ce-contact__aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ce-contact__aside h2 { margin: 0 0 4px; font-family: var(--ce-display); font-size: 24px; font-weight: 600; }
.ce-tile { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--ce-line); border-radius: 18px; padding: 18px 20px; line-height: 1.35; }
.ce a.ce-tile { color: var(--ce-ink); text-decoration: none; }
.ce a.ce-tile:hover { border-color: var(--ce-ocean); }
.ce-tile small { display: block; font-size: 14px; color: var(--ce-muted); }
.ce-tile strong { display: block; font-size: 17px; overflow-wrap: anywhere; }
.ce-mapbox { background: var(--ce-sea); border-radius: var(--ce-radius); padding: 24px; display: flex; align-items: center; gap: 20px; }
.ce-mapbox > div:last-child { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

/* Artículos */
.ce-feature-post { background: #fff; border: 1px solid #EFEAE2; border-radius: 28px; overflow: hidden; display: flex; flex-wrap: wrap; position: relative; }
.ce-feature-post__media { flex: 1.2 1 420px; min-width: 0; position: relative; min-height: 380px; display: block; background: var(--ce-sand); }
.ce-feature-post__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ce-feature-post__body { flex: 1 1 380px; min-width: 0; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.ce-feature-post__body h2 { margin: 0; font-family: var(--ce-display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; line-height: 1.15; }
.ce .ce-feature-post__body h2 a, .ce .ce-post h2 a { color: var(--ce-ink); text-decoration: none; }
.ce-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 24px; margin-top: 24px; }
.ce-post { background: #fff; border: 1px solid #EFEAE2; border-radius: var(--ce-radius); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.ce-post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ce-post > div { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.ce-post h2 { margin: 0; font-family: var(--ce-display); font-size: 21px; font-weight: 600; line-height: 1.2; }
.ce-admin-tools { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; gap: 8px; }
.ce-admin-tools a, .ce-admin-tools button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.ce-admin-tools svg { width: 18px; height: 18px; }
.ce-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding-top: 28px; }
.ce .ce-pager a, .ce-pager span { min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; text-decoration: none; box-sizing: border-box; }
.ce .ce-pager a { border: 1.5px solid var(--ce-line-strong); color: var(--ce-ink); }
.ce .ce-pager a:hover { border-color: var(--ce-ink); }
.ce-pager [aria-current="page"] { background: var(--ce-ink); color: #fff; }

/* Pie */
.ce-footer { position: relative; overflow: hidden; background: var(--ce-sand); font-size: 15px; }
.ce-footer__island { position: absolute; right: -40px; top: 32px; width: 380px; height: auto; pointer-events: none; }
.ce-footer__island path { fill: #EAE1D2; }
.ce-footer__inner { position: relative; padding-top: 64px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 44px; }
.ce-footer__cols { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.ce-footer__brand { flex: 1.4 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ce-footer__brand img { height: 46px; width: auto; }
.ce-footer__brand p { margin: 0; color: var(--ce-muted); max-width: 34ch; }
.ce-footer__cta { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.ce-footer__cta .ce-btn { font-size: 14px; padding: 0 18px; }
.ce-footer__col { flex: 1 1 170px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ce-footer__col h3 { margin: 0 0 4px; font-family: var(--ce-display); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ce-ocean); }
.ce-footer__col > span { color: var(--ce-ink-2); }
.ce .ce-footer__col a { color: var(--ce-ink-2); text-decoration: none; }
.ce .ce-footer__col a:hover { color: var(--ce-ocean); text-decoration: underline; text-underline-offset: 4px; }
.ce-footer__mail { white-space: nowrap; }
.ce-footer__col:nth-child(2) { flex-basis: 250px; }
.ce .ce-footer__login { display: inline-flex; align-items: center; gap: 6px; }
.ce-footer__login svg { width: 15px; height: 15px; }
.ce-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 22px; border-top: 1px solid #DDD4C6; font-size: 14px; color: var(--ce-muted); }
.ce-footer__dev { display: inline-flex; align-items: center; gap: 6px; }
.ce-footer__dev button { border: 0; background: none; padding: 4px 2px; font: 600 14px var(--ce-body); color: var(--ce-ocean); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ce-footer__dev button:hover { color: var(--ce-ocean-dark); }
.ce-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.ce .ce-langs a { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ce-line-strong); display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--ce-ink); text-decoration: none; text-transform: uppercase; }
.ce .ce-langs a[aria-current="true"] { background: var(--ce-ink); border-color: var(--ce-ink); color: #fff; }
@media (max-width: 640px) { .ce-footer__island { width: 260px; opacity: .7; } }

/* Modal del creador de la web */
.ce-dev-modal__panel { position: relative; width: 100%; max-width: 780px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 26px; display: flex; flex-wrap: wrap; box-shadow: 0 24px 60px rgba(18,52,61,.3); }
.ce-dev-modal__media { flex: 1 1 300px; min-width: 0; min-height: 260px; position: relative; background: var(--ce-sand); }
.ce-dev-modal__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ce-dev-modal__content { flex: 1.1 1 320px; min-width: 0; padding: 40px 36px 36px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.ce-dev-modal__content .ce-eyebrow { font-size: 13px; letter-spacing: .1em; }
.ce-dev-modal__content h2 { margin: 0; font-family: var(--ce-display); font-weight: 700; font-size: 32px; line-height: 1.1; letter-spacing: -.01em; }
.ce-dev-modal__content p { margin: 0; color: var(--ce-ink-2); font-size: 16px; }
.ce-dev-modal__content strong { color: var(--ce-ink); }
.ce-dev-modal__content .ce-btn { align-self: flex-start; margin-top: 8px; }
.ce-dev-modal__close { position: absolute; top: 14px; right: 14px; border: 0; box-shadow: 0 4px 12px rgba(28,33,39,.16); z-index: 1; }
@media (max-width: 480px) { .ce-dev-modal__content { padding: 28px 22px 24px; } .ce-dev-modal__content h2 { font-size: 26px; } }

/* Botón flotante de WhatsApp */
.ce-wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.ce .ce-wa-float:hover { color: #fff; background: #1EBE5B; }
.ce-wa-float svg { width: 28px; height: 28px; }

/* Modal de reserva */
.ce-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ce-modal[hidden] { display: none; }
.ce-modal__backdrop { position: absolute; inset: 0; background: rgba(18,52,61,.45); border: 0; cursor: pointer; }
.ce-modal__dialog { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 24px 60px rgba(18,52,61,.3); box-sizing: border-box; }
.ce-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ce-modal__head h2 { margin: 0; font-family: var(--ce-display); font-size: 24px; font-weight: 600; }
.ce-modal__apt { font-size: 15px; color: var(--ce-ocean); font-weight: 600; }
.ce-modal__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ce-line); background: #fff; color: var(--ce-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.ce-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.ce-modal__error { margin: 0; font-size: 14px; color: var(--ce-ko); }

/* Calendario (datepicker.js) con la paleta nueva */
.ce .dp-calendar { border-color: var(--ce-line); border-radius: 16px; }
.ce .dp-title, .ce .dp-nav { color: var(--ce-ink); }
.ce .dp-nav:hover, .ce .dp-day:hover:not(.dp-disabled) { background: var(--ce-ocean-soft); }
.ce .dp-today { color: var(--ce-ocean); }
.ce .dp-start, .ce .dp-end { background: var(--ce-ocean) !important; color: #fff !important; }
.ce .dp-in-range { background: var(--ce-ocean-soft); color: var(--ce-ink); }
.ce .dp-info { background: var(--ce-ocean-soft); color: var(--ce-ocean-dark); }

/* Ajustes */
.ce-row[hidden], .ce-card[hidden] { display: none; }
.ce .carousel-dot.active { background: #fff; opacity: 1; transform: scale(1.3); }
.ce-places article > div { display: flex; flex-direction: column; gap: 12px; }
.ce-card__media [data-carousel-slide] img, .ce-row__media [data-carousel-slide] img { display: block; }

/* Artículo (detalle) */
.ce-article-head { padding: 48px 0 32px; display: flex; flex-direction: column; gap: 16px; }
.ce-article-head__title { max-width: 22ch; font-size: clamp(34px, 4.4vw, 58px); }
.ce-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; color: var(--ce-muted); font-size: 15px; }
.ce-article-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.ce-article-meta svg { width: 18px; height: 18px; flex-shrink: 0; }
.ce-article-cover { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 21 / 9; background: var(--ce-sand); }
.ce-article-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .ce-article-cover { aspect-ratio: 4 / 3; border-radius: 22px; } }
.ce-article { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 72px; padding: 56px 0 96px; }
.ce-article__body { flex: 999 1 560px; min-width: 0; max-width: 740px; }
.ce-article__aside { flex: 1 1 300px; min-width: 0; max-width: 380px; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 960px) { .ce-article__aside { position: static; max-width: none; } }
.ce-prose { font-size: 18px; line-height: 1.75; color: var(--ce-ink-2); }
.ce-prose p { margin: 0 0 22px; }
.ce-prose h2 { margin: 48px 0 14px; font-family: var(--ce-display); font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; line-height: 1.2; color: var(--ce-ink); }
.ce-prose > :first-child { margin-top: 0; }
.ce-prose > :last-child { margin-bottom: 0; }
.ce-prose b, .ce-prose strong { color: var(--ce-ink); }
.ce-prose a { text-decoration: underline; text-underline-offset: 3px; }
.ce-prose figure { margin: 36px 0; }
.ce-prose img { width: 100%; height: auto; border-radius: 20px; }
.ce-prose ul, .ce-prose ol { margin: 0 0 22px; padding-left: 1.3em; }
.ce-prose li { margin-bottom: 6px; }
.ce-prose h3 { margin: 28px 0 8px; font-family: var(--ce-display); font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--ce-ink); }
.ce-prose small { display: block; font-size: 13px; line-height: 1.5; color: var(--ce-muted); }
/* Tablas de los artículos: con scroll horizontal propio en móvil para no ensanchar la página */
.ce-prose .ce-table { margin: 0 0 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--ce-line); border-radius: 16px; }
.ce-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.ce-prose th, .ce-prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ce-line); }
.ce-prose th { background: var(--ce-sand); color: var(--ce-ink); font-weight: 600; white-space: nowrap; }
.ce-prose tr:last-child td { border-bottom: 0; }
.ce-sidebox { background: #fff; border: 1px solid var(--ce-line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.ce-sidebox h2 { margin: 0; font-family: var(--ce-display); font-size: 21px; font-weight: 600; line-height: 1.2; }
.ce-sidebox p { margin: 0; font-size: 15px; }
.ce-sidebox--deep { background: var(--ce-deep); border-color: var(--ce-deep); color: #fff; }
.ce-sidebox--deep p { color: #E4F0F2; }
.ce-share { display: flex; flex-wrap: wrap; gap: 10px; }
a.ce-card__media { display: block; }
