/* =========================
   HOME HERO
   ========================= */

.home-hero-wrap {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.home-hero-box {
  background: #392f2d08;
  border-radius: 16px;
  padding: 2.5rem 3rem;
}

.home-hero-title {
  max-width: 1200px;
  margin: 0 0 2rem 0;
}

.home-hero-text {
  max-width: 760px;
  margin: 0 0 2.25rem 0;
}

/* =========================
   HOME HERO RESPONSIVE
   ========================= */

@media (max-width: 991.98px) {
  .home-hero-box {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .home-hero-wrap {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .home-hero-box {
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    text-align: center;
  }

  .home-hero-title {
    margin: 0 auto 1.25rem auto;
  }

  .home-hero-text {
    margin: 0 auto 1.5rem auto;
  }

  .home-hero-btn {
    justify-content: center;
    margin: 0 auto;
  }
}

/* =========================
   HOME INTRO
   ========================= */

.home-intro-box {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.home-intro-title {
  margin: 0;
}

/* =========================
   HOME SECTION 2 - DESTACADO
   ========================= */

.home-feature-wrap {
  padding-bottom: 1.5rem;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: stretch;
}

.home-feature-main,
.home-feature-side {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.home-feature-main {
  position: relative;
  min-height: 290px;
}

.home-feature-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-feature-content {
  position: absolute;
  top: 20px;
  left: 50px;
  z-index: 2;
  max-width: 440px;
}

.home-feature-title {
  margin: 0 0 1rem 0;
}

.home-feature-text {
  margin: 0 0 1.5rem 0;
  max-width: 380px;
}

.home-feature-content-desktop {
  display: block;
}

.home-feature-mobile-bottom {
  display: none;
}

/* Crossfade imágenes */
.home-feature-main-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-feature-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.home-feature-main-img.is-visible {
  opacity: 1;
}

/* Tablet */
@media (max-width: 991.98px) {
  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-feature-side {
    display: none;
  }

  .home-feature-main {
    min-height: 320px;
  }

  .home-feature-content {
    top: 28px;
    left: 24px;
    right: 24px;
    max-width: 420px;
  }

  .home-feature-text {
    max-width: 340px;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .home-feature-wrap {
    padding-bottom: 1rem;
  }

  .home-feature-grid {
    gap: 1rem;
  }

  .home-feature-main {
    min-height: 220px;
    border-radius: 12px;
  }

  .home-feature-content {
    top: 20px;
    left: 16px;
    right: 16px;
    max-width: 240px;
  }

  .home-feature-title {
    margin: 0;
  }

  .home-feature-content-desktop {
    display: none;
  }

  .home-feature-mobile-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0 0.5rem;
  }

  .home-feature-mobile-bottom .home-feature-text {
    margin: 0;
    max-width: 100%;
  }

  .home-feature-mobile-bottom .home-feature-btn {
    justify-content: center;
    margin: 0 auto;
    font-size: 0.88rem;
    padding: 0.75rem 0.9rem;
  }

  .home-feature-mobile-bottom .home-feature-btn span {
    font-size: 1.15rem;
  }
  .home-feature-title.banner-title,
  .home-feature-reverse-title.banner-title {
    font-size: 1.6rem;
    line-height: 1.08;
  }
  .home-feature-content {
    top: 35px;
    left: 14px;
    right: 16px;
    max-width: 220px;
  }
}

/* =========================
   HOME SECTION 3 - WHY CONTEROL
   ========================= */

.home-why-wrap {
  padding-bottom: 1.5rem;
}

.home-why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: stretch;
}

.home-why-left,
.home-why-right {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.home-why-title,
.home-why-intro {
  min-height: 110px;
  margin: 0;
}

.home-why-intro {
  max-width: 520px;
}

/* Parte inferior */
.home-why-content,
.home-why-mosaic {
  margin-top: 3rem;
  min-height: 470px;
}

.home-why-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.home-why-subtitle {
  margin: 0 0 1.5rem 0;
  max-width: 420px;
}

.home-why-list {
  margin: 0 0 1.75rem 0;
  padding-left: 1.25rem;
  max-width: 430px;
}

.home-why-list li {
  margin-bottom: 1rem;
  color: #392f2d;
  font-size: 1.05rem;
  line-height: 1.45;
}

.home-why-list li:last-child {
  margin-bottom: 0;
}

.home-why-bottom-text {
  margin: 0;
  max-width: 430px;
}

/* Mosaico derecha */
.home-why-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  grid-template-rows: 155px 130px 145px;
  grid-template-areas:
    "img1 img2"
    "img3 img2"
    "img4 img4";
  gap: 1rem;
  flex: 1;
}

#why-image-1 {
  grid-area: img1;
}

#why-image-2 {
  grid-area: img3;
}

#why-image-3 {
  grid-area: img2;
}

#why-image-4 {
  grid-area: img4;
}

#why-image-1 img {
  object-position: center top;
}

.why-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 100%;
}

.why-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive */
@media (max-width: 991.98px) {
  .home-why-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-why-left,
  .home-why-right {
    min-height: auto;
  }

  .home-why-intro {
    max-width: none;
  }

  .home-why-content,
  .home-why-mosaic {
    margin-top: 0.5rem;
    min-height: auto;
  }

  .home-why-mosaic {
    grid-template-columns: minmax(0, 1fr) 150px;
    grid-template-rows: 110px 88px 96px;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .home-why-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .home-why-left,
  .home-why-right {
    display: contents;
    margin-top: 0;
    min-height: auto;
  }

  .home-why-title {
    order: 1;
    min-height: auto;
    margin: 0 0 1rem 0;
    text-align: center;
  }

  .home-why-intro {
    order: 2;
    min-height: auto;
    max-width: 100%;
    margin: 0 auto 1rem auto;
    text-align: center;
  }

  .home-why-content {
    order: 3;
    margin-top: 0;
    min-height: auto;
  }

  .home-why-subtitle,
  .home-why-list,
  .home-why-bottom-text {
    max-width: 100%;
  }

  .home-why-mosaic {
    order: 4;
    margin-top: 0;
    min-height: auto;
  }
}

@media (max-width: 575.98px) {
  .home-why-wrap {
    padding-bottom: 1rem;
  }

  .home-why-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .home-why-left,
  .home-why-right {
    display: contents;
    margin-top: 0;
    min-height: auto;
  }

  .home-why-title {
    order: 1;
    margin: 0 auto 1rem auto;
    text-align: center;
    min-height: auto;
  }

  .home-why-intro {
    order: 2;
    margin: 0 auto 1.25rem auto;
    text-align: center;
    max-width: 100%;
    min-height: auto;
  }

  .home-why-content {
    order: 3;
    margin-top: 0;
    min-height: auto;
    text-align: center;
  }

  .home-why-subtitle {
    margin: 0 auto 1rem auto;
    max-width: 100%;
    text-align: center;
  }

  .home-why-list {
    max-width: 100%;
    margin: 0 auto 1.25rem auto;
    text-align: left;
  }

  .home-why-list li {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.85rem;
  }

  .home-why-bottom-text {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .home-why-mosaic {
    display: none;
    margin-top: 0;
    min-height: auto;
  }
}

/* =========================
   HOME SECTION 4 - DESTACADO REVERSE
   ========================= */

.home-feature-reverse-wrap {
  padding-bottom: 1.5rem;
}

.home-feature-reverse-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.home-feature-reverse-main,
.home-feature-reverse-side {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.home-feature-reverse-main {
  min-height: 290px;
}

.home-feature-reverse-main-img,
.home-feature-reverse-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-feature-reverse-content {
  position: absolute;
  top: 60px;
  right: 50px;
  z-index: 2;
  max-width: 430px;
  text-align: right;
}

.home-feature-reverse-title {
  margin: 0 0 1rem auto;
  text-align: right;
}

.home-feature-reverse-text {
  margin: 0 0 1.5rem auto;
  max-width: 360px;
  text-align: right;
}

.home-feature-reverse-content-desktop {
  display: block;
}

.home-feature-reverse-mobile-bottom {
  display: none;
}

/* Tablet */
@media (max-width: 991.98px) {
  .home-feature-reverse-grid {
    grid-template-columns: 1fr;
  }

  .home-feature-reverse-side {
    display: none;
  }

  .home-feature-reverse-main {
    min-height: 320px;
  }

  .home-feature-reverse-content {
    top: 28px;
    right: 24px;
    left: 24px;
    max-width: 420px;
    margin-left: auto;
    text-align: right;
  }

  .home-feature-reverse-text {
    max-width: 320px;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .home-feature-reverse-wrap {
    padding-bottom: 1rem;
  }

  .home-feature-reverse-grid {
    gap: 1rem;
  }

  .home-feature-reverse-main {
    min-height: 220px;
    border-radius: 12px;
  }

  .home-feature-reverse-content {
    top: 20px;
    right: 16px;
    left: 16px;
    max-width: 240px;
    margin-left: auto;
    text-align: right;
  }

  .home-feature-reverse-title {
    margin: 0 0 0 auto;
    text-align: right;
  }

  .home-feature-reverse-content-desktop {
    display: none;
  }

  .home-feature-reverse-mobile-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0 0.5rem;
  }

  .home-feature-reverse-mobile-bottom .home-feature-reverse-text {
    margin: 0;
    max-width: 100%;
    text-align: center;
  }

  .home-feature-reverse-mobile-bottom .home-feature-reverse-btn {
    justify-content: center;
    margin: 0 auto;
    font-size: 0.88rem;
    padding: 0.75rem 0.9rem;
  }

  .home-feature-reverse-mobile-bottom .home-feature-reverse-btn span {
    font-size: 1.15rem;
  }
  .home-feature-reverse-content {
    top: 80px;
    right: 18px;
    left: 16px;
    max-width: 220px;
  }
}

/* =========================
   HOME SECTION 5 - MAPA GLOBAL
   ========================= */

.home-map-wrap {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.home-map-block {
  text-align: center;
}

.home-map-title {
  max-width: 500px;
  margin: 0 auto 1.25rem auto;
}

.home-map-text {
  max-width: 720px;
  margin: 0 auto 2.25rem auto;
}

.home-map-image-wrap {
  display: flex;
  justify-content: center;
}

.home-map-image {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
}

/* Tablet */
@media (max-width: 991.98px) {
  .home-map-title {
    max-width: 500px;
  }

  .home-map-text {
    max-width: 640px;
    margin-bottom: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .home-map-wrap {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .home-map-title {
    margin: 0 auto 1rem auto;
    text-align: center;
    max-width: 100%;
  }

  .home-map-text {
    margin: 0 auto 1.25rem auto;
    text-align: center;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .home-map-image-wrap {
    display: none;
  }
}

/* =========================
   HOME SECTION 6 - CONTACTO
   ========================= */

.home-contact-section-title {
  max-width: 920px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
}

.home-contact-wrap {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.home-contact-box {
  background: #392f2d08;
  border-radius: 16px;
  padding: 3rem 2.5rem;
}

.home-contact-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}

.home-contact-text {
  margin: 0;
  max-width: 278px;
}

.home-contact-support {
  margin: 0;
  max-width: 278px;
}

.home-contact-phone {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.45;
  font-weight: 400;
  color: #392f2d;
}
.legal-email-link {
  /* color: var(--color-accent) !important; */
  color: var(--color-text) !important;
  text-decoration: underline;
  opacity: 1;
}

.legal-email-link:hover {
  color: var(--color-accent) !important;
}

/* Layout interno del formulario */
.home-contact-right .home-contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-contact-right .home-contact-form-col,
.home-contact-right .home-contact-form-full {
  width: 100%;
}

.home-contact-right .home-contact-form-full {
  grid-column: 1 / -1;
}

/* Reset básico CF7 */
.home-contact-right .wpcf7-form p {
  margin: 0;
}

.home-contact-right .wpcf7-form-control-wrap {
  display: block;
}

.home-contact-right input[type="text"],
.home-contact-right input[type="email"],
.home-contact-right input[type="tel"],
.home-contact-right textarea {
  width: 100%;
  border: 1px solid #ffc62d;
  border-radius: 8px;
  background: #fff;
  color: #392f2d;
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 400;
  padding: 0.85rem 1rem;
  outline: none;
  box-shadow: none;
  appearance: none;
}

.home-contact-right input[type="text"],
.home-contact-right input[type="email"],
.home-contact-right input[type="tel"] {
  height: 44px;
}

.home-contact-right textarea {
  min-height: 104px;
  resize: none;
}

.home-contact-right input::placeholder,
.home-contact-right textarea::placeholder {
  color: #392f2d;
  opacity: 0.65;
}

.home-contact-right input:focus,
.home-contact-right textarea:focus {
  border-color: #ffc62d;
}

/* Check legal */
.home-contact-form-accept {
  margin-top: 0.1rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #392f2d;
}

.home-contact-form-accept .wpcf7-list-item {
  margin: 0;
}

.home-contact-form-accept .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.home-contact-form-accept input[type="checkbox"] {
  margin: 0;
  accent-color: #ffc62d;
}

.home-contact-form-accept a {
  color: #392f2d;
  text-decoration: underline;
}

.home-contact-form-submit {
  margin-top: 0.35rem;
}

.home-contact-form-submit .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #ffc62d;
  color: #392f2d;
  border: 0;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1;
  font-weight: 400;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.home-contact-form-submit .wpcf7-submit:hover {
  background: #392f2d;
  color: #fff;
  opacity: 1;
}

.home-contact-form-submit .wpcf7-spinner {
  display: block;
  margin-top: 0.5rem;
  margin-left: 0;
}

/* Mensajes CF7 */
.home-contact-right .wpcf7-not-valid-tip,
.home-contact-right .wpcf7-response-output {
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

/* Tablet */
@media (max-width: 991.98px) {
  .home-contact-box {
    padding: 2rem 1.5rem;
  }

  .home-contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-contact-text,
  .home-contact-support {
    max-width: 100%;
  }
}

.home-contact-form-contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.home-contact-form-country {
  width: 100%;
}

.home-contact-form-phone-group {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.home-contact-form-prefix,
.home-contact-form-phone,
.home-contact-form-email,
.home-contact-form-country {
  width: 100%;
}

.home-contact-form-prefix input {
  text-align: center;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

/* Mobile */
@media (max-width: 575.98px) {
  .home-contact-wrap {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .home-contact-box {
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
  }

  .home-contact-grid {
    gap: 1.5rem;
  }

  .home-contact-section-title,
  .home-contact-text,
  .home-contact-support,
  .home-contact-phone {
    text-align: center;
  }

  .home-contact-text,
  .home-contact-support,
  .home-contact-phone {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .home-contact-phone {
    font-size: 1.15rem;
    line-height: 1.45;
  }

  .home-contact-right .home-contact-form-grid {
    grid-template-columns: 1fr;
  }

  .home-contact-form-submit .wpcf7-submit {
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
  }

  .home-contact-form-contact-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "phonegroup"
      "email"
      "country";
  }

  .home-contact-form-phone-group {
    grid-area: phonegroup;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .home-contact-form-email {
    grid-area: email;
  }

  .home-contact-form-country {
    grid-area: country;
  }
}
