/* ==============================
   SPAR CALA MARSAL — Estilos
   ============================== */

/* Variables */
:root {
  --green:  #007A33;
  --green2: #005c26;
  --red:    #E2231A;
  --red2:   #b81a13;
  --white:  #ffffff;
  --light:  #f5f7f5;
  --dark:   #1a1a1a;
  --gray:   #6b7280;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,.10);
  --transition: .25s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ======== BUTTONS ======== */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red2); }
.btn--outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--dark); }

/* ======== HEADER ======== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green);
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo__img {
  height: 48px;
  width: auto;
  border-radius: 8px;
  background: white;
  padding: 2px;
}
.logo__text {
  color: white;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .5px;
}
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  color: rgba(255,255,255,.88);
  font-weight: 600;
  font-size: .93rem;
  transition: color var(--transition);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav a:hover { color: white; }
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--green2);
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease, padding .3s ease;
}
.nav-mobile.open {
  display: flex;
  max-height: 300px;
  padding: 10px 0;
}
.nav-mobile a {
  color: white;
  padding: 12px 24px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: background var(--transition);
}
.nav-mobile a:hover { background: rgba(255,255,255,.1); }

/* ======== HERO ======== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: url('../images/exterior.jpg') center center / cover no-repeat;
  overflow: hidden;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,122,51,.82) 0%, rgba(0,40,15,.7) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero__tag {
  display: inline-block;
  background: rgba(255,255,255,.18);
  color: white;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero__sub {
  color: rgba(255,255,255,.88);
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 36px;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ======== WELCOME ======== */
.welcome {
  padding: 80px 0;
  background: var(--white);
}
.welcome__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.welcome__text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 18px;
  line-height: 1.2;
}
.welcome__text p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 1rem;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.badge {
  background: var(--light);
  border: 1px solid #e0e7e0;
  color: var(--green2);
  font-weight: 600;
  font-size: .84rem;
  padding: 7px 14px;
  border-radius: 50px;
}
.welcome__img-wrap {
  position: relative;
}
.welcome__img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 520px;
}

/* ======== PRODUCTS ======== */
.products {
  padding: 80px 0;
  background: var(--light);
}
.section-head {
  text-align: center;
  margin-bottom: 50px;
}
.section-head h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 10px;
}
.section-head p {
  color: var(--gray);
  font-size: 1.05rem;
}
.section-head--light h2 { color: white; }
.section-head--light p { color: rgba(255,255,255,.8); }

.products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,.14);
}
.card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.card--wide .card__img-wrap { height: 340px; }
.card--wide .card__body { display:flex; flex-direction:column; justify-content:center; padding:32px; }
.card__img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card__img-wrap img { transform: scale(1.05); }
.card__tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: white;
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
}
.card__body {
  padding: 22px 24px;
}
.card__body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.card__body p {
  color: var(--gray);
  font-size: .93rem;
  line-height: 1.6;
}

/* ======== SCHEDULE ======== */
.schedule {
  padding: 80px 0;
  background: var(--green);
}
.schedule__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.schedule__card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  margin-top: 10px;
}
.schedule__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
.schedule__day {
  font-weight: 600;
  color: var(--dark);
}
.schedule__time {
  font-weight: 800;
  color: var(--green);
  font-size: 1.05rem;
}
.schedule__divider {
  height: 1px;
  background: #eee;
}
.schedule__note {
  color: var(--gray);
  font-size: .82rem;
  margin-top: 20px;
  font-style: italic;
}

/* ======== LOCATION ======== */
.location {
  padding: 80px 0;
  background: white;
}
.location__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.location__info h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 20px;
}
.location__addr {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 28px;
}
.location__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.location__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.location__icon { font-size: 1.3rem; margin-top: 2px; }
.location__item strong { display: block; font-size: .8rem; color: var(--gray); text-transform: uppercase; letter-spacing: .5px; }
.location__item a { font-weight: 600; color: var(--green); font-size: 1rem; }
.location__item a:hover { text-decoration: underline; }
.location__map iframe {
  width: 100%;
  height: 380px;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ======== FOOTER ======== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding-top: 56px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand img.footer__logo {
  height: 60px;
  width: auto;
  border-radius: 8px;
  background: white;
  padding: 4px;
  margin-bottom: 14px;
}
.footer__brand p { font-size: .92rem; line-height: 1.6; }
.footer__links h4,
.footer__contact h4 {
  color: white;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 16px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  color: rgba(255,255,255,.7);
  font-size: .92rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: white; }
.footer__contact p { font-size: .92rem; margin-bottom: 8px; }
.footer__copy {
  text-align: center;
  padding: 20px 0;
  font-size: .84rem;
  color: rgba(255,255,255,.45);
}
.footer__copy a { color: rgba(255,255,255,.65); }
.footer__copy a:hover { color: white; }

/* ======== RESPONSIVE ======== */
@media (max-width: 900px) {
  .welcome__inner { grid-template-columns: 1fr; }
  .welcome__img-wrap { order: -1; }
  .products__grid { grid-template-columns: 1fr; }
  .card--wide { grid-column: 1; display: flex; flex-direction: column; }
  .location__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .hero { min-height: 70vh; }
  .hero__title { font-size: 2rem; }
  .schedule__card { padding: 24px 20px; }
  .products__grid { grid-template-columns: 1fr; }
}

/* Mapa clicable: abre Google Maps (app en móvil) */
.map-link-wrap { display:block; position:relative; border-radius: var(--radius); overflow:hidden; }
.map-link-wrap::after {
  content: '📍 Pulsa para abrir en Google Maps';
  position:absolute; left:50%; bottom:16px; transform:translateX(-50%);
  background: var(--red); color:#fff; font-weight:700; font-size:.9rem;
  padding:8px 16px; border-radius:50px; box-shadow:0 4px 14px rgba(0,0,0,.25); white-space:nowrap;
}

/* Foto aérea clicable */
.aerial { display:block; position:relative; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); }
.aerial__img { width:100%; height:420px; object-fit:cover; transition: transform .4s ease; }
.aerial:hover .aerial__img { transform: scale(1.03); }
.aerial__cta {
  position:absolute; left:50%; bottom:18px; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:4px;
  background: var(--red); color:#fff; font-weight:800; font-size:1rem;
  padding:12px 24px 14px; border-radius:18px; box-shadow:0 6px 20px rgba(0,0,0,.35); white-space:nowrap;
}
.aerial__icon { font-size:2.6rem; line-height:1; }
.aerial__credit { font-size:.72rem; color: var(--gray); margin-top:6px; text-align:right; }
@media (max-width:680px){ .aerial__img{ height:320px; } .aerial__cta{ font-size:.9rem; } .aerial__icon{ font-size:2.1rem; } }

/* ===== SELECTOR DE IDIOMA ===== */
.lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.lang-switcher button {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.45);
  color: #fff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  line-height: 1.4;
}
.lang-switcher button:hover {
  background: rgba(255,255,255,0.18);
  border-color: #fff;
}
.lang-switcher button.active {
  background: #fff;
  color: #1a7a2e;
  border-color: #fff;
}
/* Versión móvil dentro del menú desplegable */
.lang-switcher--mobile {
  margin: 12px auto 4px;
  justify-content: center;
}
.lang-switcher--mobile button {
  color: #1a7a2e;
  border-color: #1a7a2e;
  font-size: 0.8rem;
  padding: 5px 10px;
}
.lang-switcher--mobile button:hover {
  background: #e8f5ec;
  border-color: #1a7a2e;
}
.lang-switcher--mobile button.active {
  background: #1a7a2e;
  color: #fff;
  border-color: #1a7a2e;
}
@media (max-width: 768px) {
  .lang-switcher:not(.lang-switcher--mobile) { display: none; }
}
