/*
Theme Name: SEO Home Botones
Theme URI: https://www.alarmabalear.com/
Author: CCV
Description: Plantilla WordPress ultraligera para una home SEO con imagen estática de fondo, textos y tres botones editables.
Version: 1.1.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: seo-home-botones
*/

:root {
  --text: #ffffff;
  --shb-overlay-opacity: 0;
  --shb-buttons-y: 0px;
  --panel: rgba(0, 0, 0, 0.22);
  --focus: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111111;
  background: #ffffff;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.site-main {
  width: 100%;
}

.hero-home {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  color: var(--text);
  text-align: center;
  background: #111111;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  image-rendering: auto;
}

.hero-bg--cover {
  object-fit: cover;
}

.hero-bg--contain {
  object-fit: contain;
}

.hero-bg--none {
  object-fit: none;
}

.hero-home::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: rgba(0, 0, 0, var(--shb-overlay-opacity, 0));
}

.hero-content {
  width: min(100%, 980px);
  padding: clamp(22px, 4vw, 56px);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(2px);
}

.hero-content--no-text {
  background: transparent;
  backdrop-filter: none;
}

.hero-content--no-text .hero-buttons {
  margin-top: 0;
}

.hero-title {
  max-width: 900px;
  margin: 0 auto 14px;
  font-size: clamp(2.1rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero-description {
  max-width: 720px;
  margin: 0 auto 34px;
  font-size: clamp(1rem, 2.3vw, 1.55rem);
  line-height: 1.5;
  opacity: 0.92;
  text-wrap: balance;
}

.hero-buttons {
  display: flex;
  transform: translateY(var(--shb-buttons-y, 0px));
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.hero-button {
  display: inline-flex;
  min-width: 190px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.hero-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.hero-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.page-wrap {
  width: min(100% - 36px, 900px);
  margin: 0 auto;
  padding: 72px 0;
}

.page-wrap h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.page-wrap p,
.page-wrap li {
  font-size: 1.08rem;
  line-height: 1.7;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  .hero-content {
    width: min(100%, 860px);
    padding: 30px 24px;
    border-radius: 24px;
  }

  .hero-title {
    max-width: 760px;
  }

  .hero-description {
    max-width: 680px;
    margin-bottom: 28px;
  }
}

@media (max-width: 820px) {
  .hero-home {
    align-items: center;
    padding-top: max(22px, env(safe-area-inset-top));
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }

  .hero-content {
    width: min(100%, 680px);
    padding: 26px 20px;
    border-radius: 22px;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3.8rem);
  }

  .hero-description {
    font-size: clamp(1rem, 2.5vw, 1.28rem);
  }

  .hero-buttons {
    gap: 12px;
  }

  .hero-button {
    min-width: 170px;
    min-height: 52px;
    padding: 14px 18px;
  }
}

@media (max-width: 680px) {
  .hero-home {
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero-content {
    width: 100%;
    padding: 24px 18px;
    border-radius: 20px;
  }

  .hero-title {
    margin-bottom: 12px;
    font-size: clamp(1.9rem, 9vw, 3rem);
    line-height: 1;
  }

  .hero-description {
    margin-bottom: 24px;
    font-size: clamp(0.98rem, 4.2vw, 1.2rem);
    line-height: 1.45;
  }

  .hero-buttons {
    display: grid;
    width: 100%;
    gap: 12px;
    transform: translateY(clamp(-120px, var(--shb-buttons-y, 0px), 120px));
  }

  .hero-button {
    width: 100%;
    min-width: 0;
    padding: 15px 18px;
  }

  .page-wrap {
    width: min(100% - 24px, 900px);
    padding: 44px 0;
  }
}

@media (max-width: 480px) {
  .hero-home {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .hero-content {
    padding: 20px 14px;
    border-radius: 18px;
  }

  .hero-title {
    font-size: clamp(1.7rem, 10vw, 2.5rem);
    letter-spacing: -0.05em;
  }

  .hero-description {
    font-size: 0.98rem;
  }

  .hero-button {
    min-height: 50px;
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-button {
    transition: none;
  }

  .hero-button:hover {
    transform: none;
  }
}


/* Estilos visuales seleccionables */
.hero-home--premium .hero-content:not(.hero-content--no-text) {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.hero-home--premium .hero-title {
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.hero-home--premium .hero-button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-home--minimal .hero-content {
  padding: clamp(18px, 3vw, 42px);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-home--minimal .hero-title {
  letter-spacing: -0.04em;
  text-shadow: none;
}

.hero-home--minimal .hero-description {
  opacity: 1;
}

.hero-home--minimal .hero-button {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  font-weight: 750;
}

.hero-home--minimal .hero-button:hover {
  transform: none;
  filter: brightness(0.96);
  box-shadow: none;
}


/* Responsive real para móviles y tablets */
@media (max-width: 1180px) {
  .hero-content {
    width: min(100%, 900px);
  }
}

@media (max-width: 900px) {
  .hero-home {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  }

  .hero-bg--none {
    object-fit: contain;
  }

  .hero-content,
  .hero-home--premium .hero-content,
  .hero-home--minimal .hero-content {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 1.03;
  }

  .hero-description {
    font-size: clamp(1rem, 3vw, 1.3rem);
  }

  .hero-buttons {
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  .hero-home {
    min-height: 100svh;
    min-height: 100dvh;
    padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }

  .hero-bg--cover,
  .hero-bg--contain,
  .hero-bg--none {
    object-position: center center;
  }

  .hero-bg--none,
  .hero-bg--contain {
    object-fit: contain;
    width: 100%;
    height: 100%;
  }

  .hero-content,
  .hero-home--premium .hero-content,
  .hero-home--minimal .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 20px 14px;
    border-radius: 18px;
  }

  .hero-content--no-text,
  .hero-home--premium .hero-content--no-text,
  .hero-home--minimal .hero-content--no-text {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-title {
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 10vw, 2.75rem);
    letter-spacing: -0.045em;
  }

  .hero-description {
    margin-bottom: 22px;
    font-size: clamp(0.96rem, 4.2vw, 1.12rem);
    line-height: 1.45;
  }

  .hero-buttons {
    display: flex;
    width: 100%;
    max-width: 420px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 11px;
    transform: translateY(max(-110px, min(var(--shb-buttons-y, 0px), 110px)));
  }

  .hero-button,
  .hero-home--minimal .hero-button,
  .hero-home--premium .hero-button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 50px;
    padding: 14px 16px;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.98rem;
  }
}

@media (max-width: 390px) {
  .hero-content,
  .hero-home--premium .hero-content,
  .hero-home--minimal .hero-content {
    padding: 18px 10px;
  }

  .hero-buttons {
    max-width: 100%;
    gap: 10px;
  }

  .hero-button,
  .hero-home--minimal .hero-button,
  .hero-home--premium .hero-button {
    min-height: 48px;
    padding: 13px 14px;
    font-size: 0.95rem;
  }
}


.shb-inner-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 34px;
  text-align: center;
}

.shb-inner-logo-wrap a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.shb-inner-logo {
  display: block;
  width: auto;
  max-width: min(260px, 72vw);
  max-height: 120px;
  object-fit: contain;
}

.shb-site-footer {
  width: 100%;
  padding: 28px 16px;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #111111;
  background: #ffffff;
}

.shb-site-footer a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}


@media (max-width: 680px) {
  .shb-inner-logo-wrap {
    margin-bottom: 24px;
  }

  .shb-inner-logo {
    max-width: min(220px, 78vw);
    max-height: 96px;
  }

  .shb-site-footer {
    padding: 22px 14px;
    font-size: 0.94rem;
  }
}
