/* ==========================================================
   Home rediseñada (index2.php)
   Usa las variables y bloques de soluciones.css (sol-section, sol-cta...)
   ========================================================== */

/* ---------- Encabezados de sección ---------- */
.home-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.home-eyebrow {
  margin: 0 0 10px;
  color: var(--sol-sand);
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.home-title {
  margin: 0;
  color: var(--sol-ink);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: .01em;
  text-transform: none;
}
.home-lead { margin: 12px 0 0; color: var(--sol-text); font-size: 17px; font-weight: 400; }
@media (min-width: 992px) { .home-title { font-size: 38px; } }

/* ---------- Colecciones ---------- */
.home-collections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
@media (min-width: 992px) {
  /* 3 arriba y 3 abajo */
  .home-collections { grid-template-columns: repeat(6, 1fr); }
  .home-collection { grid-column: span 2; }
}
.home-collections > * { margin: 0; }

.home-collection {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sol-line);
  border-radius: var(--sol-radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(40, 25, 15, .04);
  transition: transform .35s ease, box-shadow .35s ease;
}
.home-collection:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(40, 25, 15, .12); }
.home-collection__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eee7df; }
.home-collection__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.home-collection:hover .home-collection__img img { transform: scale(1.06); }
.home-collection__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; text-align: left; }
.home-collection__title {
  color: var(--sol-ink);
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.home-collection__text { margin-top: 6px; color: var(--sol-text); font-size: 15px; font-weight: 400; line-height: 1.5; }
.home-collection__more {
  margin-top: auto;
  padding-top: 14px;
  color: var(--sol-brown);
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.home-collection__more .mdi { display: inline-block; margin-left: 4px; transition: transform .3s ease; }
.home-collection:hover .home-collection__more .mdi { transform: translateX(5px); }

/* ---------- Nosotros ---------- */
.home-about { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.home-about__text { text-align: left; }
.home-about__text .home-title { margin-bottom: 18px; }
.home-about__text p { color: var(--sol-text); font-size: 17px; font-weight: 400; line-height: 1.7; }
.home-about__text p.home-eyebrow { color: var(--sol-sand); font-size: 13px; line-height: 1.5; }
.home-checks { margin: 22px 0 28px; padding: 0; list-style: none; }
.home-checks li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 36px;
  color: var(--sol-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.home-checks .mdi {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sol-brown);
  color: #fff;
  font-size: 15px;
  line-height: 24px;
  text-align: center;
}
.home-about__media { position: relative; }
.home-about__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--sol-radius);
  box-shadow: 0 24px 50px rgba(40, 25, 15, .18);
}
.home-about__badge {
  position: absolute;
  left: -12px;
  bottom: 24px;
  padding: 14px 20px;
  border-radius: 8px;
  background: var(--sol-brown);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .06em;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
}
.home-about__badge strong {
  display: block;
  color: #fff;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
@media (min-width: 992px) {
  .home-about { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .home-about__badge { left: -28px; }
}

/* ---------- Por qué elegirnos ---------- */
.home-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.home-reasons > * { margin: 0; }
.home-reason {
  position: relative;
  padding: 34px 28px 30px;
  background: #fff;
  border: 1px solid var(--sol-line);
  border-radius: var(--sol-radius);
  text-align: left;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.home-reason:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 18px 40px rgba(40, 25, 15, .12); }
.home-reason__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sol-bg-alt);
  color: var(--sol-brown);
  font-size: 22px;
}
.home-reason__num {
  position: absolute;
  top: 26px;
  right: 26px;
  color: var(--sol-line);
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
}
.home-reason__title { margin: 22px 0 8px; color: var(--sol-ink); font-size: 19px; font-weight: 500; letter-spacing: .01em; text-transform: none; }
.home-reason__text { margin: 0; color: var(--sol-text); font-size: 15px; font-weight: 400; line-height: 1.6; }

/* ---------- Contacto ---------- */
.home-contact {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border-radius: var(--sol-radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(40, 25, 15, .08);
}
.home-contact__map { position: relative; display: block; min-height: 260px; background: #eee7df; }
.home-contact__map img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.home-contact__map:hover img { transform: scale(1.03); }
.home-contact__pin {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--sol-brown);
  color: #fff;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.home-contact__info { padding: 28px 26px; text-align: left; }
.home-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sol-line);
  color: var(--sol-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  text-decoration: none;
}
a.home-contact__item:hover { color: var(--sol-brown); }
.home-contact__item > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.home-contact__item small {
  display: block;
  margin-bottom: 2px;
  color: var(--sol-sand);
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.home-contact__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sol-bg-alt);
  color: var(--sol-brown);
  font-size: 20px;
  line-height: 40px;
  text-align: center;
}
.home-contact__social { display: flex; align-items: center; gap: 10px; padding-top: 18px; }
.home-contact__social span {
  margin-right: 6px;
  color: var(--sol-text);
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.home-contact__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--sol-line);
  color: var(--sol-brown);
  font-size: 17px;
  line-height: 36px;
  text-align: center;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.home-contact__social a:hover { background: var(--sol-brown); border-color: var(--sol-brown); color: #fff; }
@media (min-width: 992px) {
  .home-contact { grid-template-columns: 1.2fr 1fr; }
  .home-contact__map { min-height: 460px; }
  .home-contact__info { padding: 36px 40px; }
}

/* ---------- Marcas ---------- */
.home-brands { padding: 50px 0; background: #fff; text-align: center; border-top: 1px solid var(--sol-line); }
.home-brands__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
  align-items: center;
  gap: 26px 30px;
  margin-top: 22px;
}
@media (min-width: 576px) { .home-brands__list { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .home-brands__list { grid-template-columns: repeat(8, 1fr); } }
.home-brands__list > * { margin: 0; }
.home-brands__list img {
  height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .6;
  transition: filter .3s ease, opacity .3s ease;
}
.home-brands__list img:hover { filter: none; opacity: 1; }
@media (max-width: 575px) {
  .home-brands__list img { height: 30px; }
}

/* ---------- Promoción fija junto al slide ---------- */
.home-hero { display: block; }
.home-hero__promo {
  padding: 34px 26px 38px;
  text-align: left;
  color: #fff;
  background-color: var(--sol-brown-dark, #3f2a20);
  background-size: cover;
  background-position: center;
}
.home-hero__promo .home-eyebrow { color: var(--sol-sand, #c9a27e); margin-bottom: 8px; }
.home-promo__title {
  margin: 0 0 10px;
  color: #fff;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 500;
  text-transform: uppercase;
}
.home-promo__detail { margin: 0 0 20px; color: rgba(255,255,255,.88); font-size: 17px; }
.home-promo__logos { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-bottom: 20px; }
.home-promo__logos img { display: block; height: 30px; width: auto; }
.home-promo__logos img[src*="galicia"] { height: 32px; border-radius: 4px; }
.home-promo__valid { margin: 0 0 22px; color: rgba(255,255,255,.7); font-size: 14px; }

/* Con promo vigente: se ocultan los botones de los slides y se achica el texto */
.home-hero--promo .swiper-slide-caption .button,
.home-hero--promo .swiper-button-prev,
.home-hero--promo .swiper-button-next { display: none !important; }
.home-hero--promo .swiper-slide-caption h1 { font-size: clamp(24px, 5.6vw, 34px); line-height: 1.2; }

@media (min-width: 768px) {
  .home-hero--promo { display: grid; grid-template-columns: minmax(260px, 3fr) minmax(0, 7fr); }
  .home-hero--promo .home-hero__promo { order: -1; }
  .home-hero--promo > section { min-width: 0; }
  .home-hero--promo .swiper-slider { min-height: 560px; }
  .home-hero--promo .swiper-slider_style-3 .swiper-slide,
  .home-hero--promo.home-hero .swiper-slider_style-3[data-custom-slide-effect='interLeaveEffect'] .swiper-slide { padding-left: 0; padding-right: 0; }
  .home-hero--promo .swiper-slide-caption { padding: 90px 0 120px; }
  .home-hero--promo .swiper-slide-caption .container { width: 100%; max-width: none; padding-left: 56px; padding-right: 56px; }
  .home-hero--promo .swiper-slide-caption h1 { font-size: clamp(26px, 2.6vw, 38px); }
  .home-hero__promo { display: flex; flex-direction: column; justify-content: center; padding: 40px 34px; }
  .home-promo__title { font-size: clamp(30px, 2.8vw, 40px); }
}

/* Celular: la promo va arriba, compacta, y el slide debajo */
@media (max-width: 767.98px) {
  .home-hero--promo { display: flex; flex-direction: column; }
  .home-hero--promo .home-hero__promo { order: -1; padding: 24px 20px 26px; }
  .home-hero--promo .home-hero__promo .home-eyebrow { font-size: 12px; margin-bottom: 6px; }
  .home-hero--promo .home-promo__title { font-size: 28px; margin-bottom: 8px; }
  .home-hero--promo .home-promo__detail { font-size: 15px; margin-bottom: 14px; }
  .home-hero--promo .home-promo__logos { gap: 12px 16px; margin-bottom: 12px; }
  .home-hero--promo .home-promo__logos img { height: 24px; }
  .home-hero--promo .home-promo__logos img[src*="galicia"] { height: 26px; }
  .home-hero--promo .home-promo__valid { font-size: 13px; margin-bottom: 16px; }
  .home-hero--promo .home-hero__promo .button { display: block; text-align: center; padding: 14px 16px; }
  .home-hero--promo .swiper-slider { min-height: 64vw; }
}
