/* ==========================================================================
   BalearDesk — estilos de las páginas de servicios, islas, informe SEO y de las
   portadas en alemán e inglés. Se cargan después de styles.css.
   ========================================================================== */

/* Cabecera de página ------------------------------------------------------ */

.page-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: min(78svh, 760px); overflow: hidden; color: #fff; background: var(--navy); }
.page-hero-home { min-height: 100svh; }
.page-hero-plain { min-height: 0; background: radial-gradient(70% 120% at 100% 0%, rgba(47, 110, 142, .34), transparent 62%), radial-gradient(60% 110% at 0% 100%, rgba(233, 183, 126, .16), transparent 60%), var(--navy); }
.page-hero .hero-shade {
  background-image:
    linear-gradient(100deg, rgba(8, 16, 26, .84) 0%, rgba(8, 16, 26, .56) 52%, rgba(8, 16, 26, .30) 100%),
    linear-gradient(0deg, rgba(8, 16, 26, .84) 0%, rgba(8, 16, 26, 0) 48%);
}
.page-hero-in { width: min(var(--wrap), 100% - 2 * var(--gut)); padding-top: calc(var(--head-h) + 72px); padding-bottom: clamp(40px, 6vw, 76px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; color: rgba(255, 255, 255, .7); letter-spacing: .08em; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.page-title { max-width: 15em; margin: 18px 0 22px; font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -.04em; overflow-wrap: break-word; }
.page-title em { font-style: normal; color: var(--dawn); }
.page-hero-home .page-title { font-size: clamp(2.9rem, 6.5vw, 5.7rem); line-height: 1.01; }
.page-hero .hero-lead { max-width: 36em; }

/* Introducción ------------------------------------------------------------ */

.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 16px clamp(28px, 6vw, 96px); align-items: start; }
.intro .sec-num { grid-column: 1 / -1; margin-bottom: 4px; }
.intro-big { font-size: clamp(1.35rem, 2.3vw, 1.9rem); font-weight: 500; line-height: 1.32; letter-spacing: -.025em; text-wrap: pretty; }
.intro-rest { padding-top: .4em; font-size: 1.08rem; color: var(--ink-2); }
@media (max-width: 800px) { .intro { grid-template-columns: 1fr; } }

/* Lista numerada de puntos ------------------------------------------------ */

.points { counter-reset: point; border-bottom: 1px solid var(--line); }
.points li { counter-increment: point; display: grid; grid-template-columns: 40px minmax(0, .9fr) minmax(0, 1.1fr); gap: 8px 24px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line); }
.points li::before { content: counter(point, decimal-leading-zero); font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--sea); }
.points h3 { font-size: clamp(1.3rem, 2.1vw, 1.7rem); line-height: 1.2; letter-spacing: -.025em; }
.points p { font-size: 1.05rem; color: var(--ink-2); }
@media (max-width: 800px) {
  .points li { grid-template-columns: 32px minmax(0, 1fr); }
  .points p { grid-column: 2; }
}

/* Ejemplo de conversación ------------------------------------------------- */

.h2-sm { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.example-note { margin-top: 20px; max-width: 30em; color: rgba(238, 242, 246, .66); font-size: .95rem; }
.transcript { display: flex; flex-direction: column; gap: 9px; width: 100%; max-width: 520px; justify-self: end; padding: 20px; border-radius: 28px; background: #F3F4F1; color: var(--navy); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.transcript .msg { max-width: 88%; font-size: .98rem; animation: none; }
.transcript .demo-result { margin-top: 8px; background: #fff; border-color: rgba(14, 26, 38, .08); color: var(--navy); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 860px) {
  .example { grid-template-columns: 1fr; }
  .transcript { justify-self: start; }
}

/* Flujo de una automatización -------------------------------------------- */

.flow-big { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 5vw, 56px); counter-reset: step; }
.flow-big li { counter-increment: step; padding: 22px 22px 26px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.flow-big li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 28px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--dawn); }
.flow-big li:last-child { background: #fff; border-color: #fff; color: var(--navy); }
.flow-big li:last-child::before { color: #2F6E8E; }
@media (max-width: 760px) {
  .flow-big { grid-template-columns: 1fr; }
  .flow-big li::before { margin-bottom: 10px; }
}

/* Tarjetas de las webs de ejemplo ----------------------------------------- */

.demo-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.demo-card { display: grid; gap: 8px; align-content: start; color: inherit; text-decoration: none; }
.demo-card-img { display: block; margin-bottom: 12px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 20px; background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .1); }
.demo-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s ease; }
.demo-card:hover .demo-card-img img { transform: scale(1.05); }
.demo-card .meta { color: var(--dawn); }
.demo-card b { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.demo-card > span:not(.meta):not(.link-arrow):not(.demo-card-img) { color: rgba(238, 242, 246, .74); }
.demo-card .link-arrow { justify-self: start; margin-top: 8px; color: #fff; }
@media (max-width: 980px) { .demo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .demo-cards { grid-template-columns: minmax(0, 1fr); } }

/* Web de ejemplo del sector */
.site-example { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.site-example .sec-lead { margin: 14px 0 26px; }
.site-shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 22px; background: var(--navy); box-shadow: var(--shadow-lg); }
.site-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s ease; }
.site-shot:hover img { transform: scale(1.04); }
.site-shot span { position: absolute; left: 16px; bottom: 14px; padding: 7px 13px; border-radius: 999px; background: rgba(11, 22, 34, .74); color: #fff; font-size: .82rem; font-weight: 600; }
@media (max-width: 860px) { .site-example { grid-template-columns: minmax(0, 1fr); } }

/* Precio ------------------------------------------------------------------ */

.price-box { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.price-main { display: flex; flex-direction: column; justify-content: center; padding: clamp(26px, 4vw, 52px); color: var(--paper); background: radial-gradient(120% 90% at 100% 0%, rgba(233, 183, 126, .2), transparent 60%), var(--navy); }
.price-main .meta { color: rgba(238, 242, 246, .64); }
.price-amount { margin: 16px 0 12px; font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 600; line-height: 1.04; letter-spacing: -.045em; color: var(--dawn); }
.price-main .price-note { color: rgba(238, 242, 246, .74); }
.price-list { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding: clamp(26px, 4vw, 52px); background: var(--surface); }
.price-list .ticks { margin: 0; font-size: 1.06rem; }
@media (max-width: 800px) { .price-box { grid-template-columns: 1fr; } }

/* Pueblos ----------------------------------------------------------------- */

.towns { margin-top: 6px; font-size: clamp(1.4rem, 2.8vw, 2.3rem); font-weight: 500; line-height: 1.3; letter-spacing: -.03em; text-wrap: balance; }
.towns-note { margin-top: 20px; max-width: 30em; font-size: 1.06rem; color: var(--ink-2); }

/* Filas de enlace (servicios) -------------------------------------------- */

.link-rows { border-bottom: 1px solid var(--line); }
.link-row { display: grid; grid-template-columns: 40px minmax(0, 1.05fr) minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.link-row .meta { color: var(--ink-3); }
.link-row-t { font-size: clamp(1.5rem, 2.7vw, 2.15rem); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; transition: color .25s; }
.link-row:hover .link-row-t { color: var(--sea); }
.link-row-d { color: var(--ink-2); }
.link-row .link-arrow { white-space: nowrap; font-size: .92rem; color: var(--ink-3); }
.link-row:hover .link-arrow { color: var(--ink); }
.link-row:hover .link-arrow::after { transform: translateX(4px); }
@media (max-width: 860px) {
  .link-row { grid-template-columns: 30px minmax(0, 1fr); }
  .link-row-d, .link-row .link-arrow { grid-column: 2; justify-self: start; }
}

/* También te puede interesar ---------------------------------------------- */

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.related-card { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.6vw, 30px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .35s ease, box-shadow .35s ease, border-color .35s; }
.related-card .meta { color: var(--sea); }
.related-card b { font-size: 1.4rem; font-weight: 600; line-height: 1.15; letter-spacing: -.03em; }
.related-card > span:last-child { color: var(--ink-2); }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }

/* Planes en las portadas DE/EN: el importe es una frase ------------------- */

.subpage .plan .price-text { font-size: clamp(1.7rem, 2.5vw, 2.1rem); }

/* Informe SEO -------------------------------------------------------------- */

.seo-page { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 128px); }
.seo-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.seo-side { position: sticky; top: 104px; }
.seo-side h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; margin-bottom: 22px; }
.seo-includes { border-bottom: 1px solid var(--line); }
.seo-includes li { padding: 16px 0; border-top: 1px solid var(--line); }
.seo-includes b { display: block; font-weight: 600; letter-spacing: -.01em; }
.seo-includes span { display: block; margin-top: 3px; color: var(--ink-2); font-size: .96rem; }
.seo-steps { display: grid; gap: 12px; margin-top: 28px; counter-reset: seostep; }
.seo-steps li { counter-increment: seostep; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: baseline; color: var(--ink-2); }
.seo-steps li::before { content: counter(seostep); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: .8rem; font-weight: 700; color: var(--sea); }

.seo-form-card { border-radius: 28px; background: #fff; color: var(--navy); border: 1px solid rgba(14, 26, 38, .08); box-shadow: var(--shadow-lg); overflow: hidden; }
.seo-banner { display: flex; align-items: center; gap: 12px; padding: 18px clamp(22px, 3.4vw, 40px); background: var(--navy); color: #fff; font-size: 1.06rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.seo-banner::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--dawn); }
.seo-form { display: grid; gap: 18px; padding: clamp(22px, 3.4vw, 40px); }
.seo-form h3 { margin-top: 6px; padding-top: 20px; border-top: 1px solid rgba(14, 26, 38, .1); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5F6B77; }
.seo-form h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.seo-form .hint { font-size: .82rem; color: #5F6B77; }
.seo-form .btn-primary { background: var(--navy); color: #fff; padding-block: 1.05em; }
.seo-form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .88rem; line-height: 1.5; color: #465463; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #0B1622; }
.consent.is-invalid { color: #C2452D; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.seo-error { padding: 13px 15px; border-radius: 14px; background: #FDF3F0; color: #8F2F1C; font-size: .92rem; }

.seo-thanks { padding: clamp(28px, 4vw, 52px); text-align: left; }
.seo-thanks-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 50%; background: #E6F4EC; color: var(--ok); }
.seo-thanks h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.12; }
.seo-thanks p { margin-top: 14px; max-width: 34em; color: #465463; font-size: 1.06rem; }
.seo-thanks .hint { margin-top: 22px; font-size: .9rem; color: #5F6B77; }

@media (max-width: 900px) {
  .seo-grid { grid-template-columns: 1fr; }
  .seo-side { position: static; order: 2; }
}
