:root {
  --bg-main: #FFFFFF;
  --bg-secondary: #F6F4F0;
  --bg-card: #F1EEE8;
  --orange: #FF7417;
  --orange-2: #F7941D;
  --white: #FFFFFF;
  --text-primary: #1A1D1F;
  --text-secondary: #52565B;
  --text-tertiary: #75797D;
  --border: rgba(0,0,0,0.09);
  --border-accent: rgba(255,116,23,0.55);
  --whatsapp: #1FAF4B;
  --light: #FFFFFF;
  --dark-text: #17191B;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #ECE8E1;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

.page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: #ECE8E1;
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-main);
  position: relative;
  overflow: hidden;
}

@media (min-width: 481px) {
  .card {
    margin: 24px 0;
    box-shadow: 0 20px 60px rgba(23,25,27,.16);
    border-radius: 18px;
  }
}

/* ===== animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero, .btn-save-contact, .contact-grid, .trust-bar, .services, .btn-quote, .projects, .area-served, .social-bar, .footer {
  animation: fadeUp 450ms ease both;
}

/* ===== 5. HERO ===== */
.hero {
  position: relative;
  height: 410px;
  background-image: url('../assets/img/hero/kitchen-hero.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(9,12,14,.08) 0%, rgba(9,12,14,.28) 45%, rgba(9,12,14,.68) 100%);
  pointer-events: none;
}
/* ===== SELECTOR DE IDIOMA ===== */
.lang-toggle {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  background: rgba(9,12,14,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  padding: 3px;
  cursor: pointer;
  transition: all .2s ease;
}
.lang-toggle:active { transform: scale(.97); }
.lang-toggle__opt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .3px;
  color: var(--text-secondary);
  transition: all .2s ease;
}
.lang-toggle__opt.is-active {
  background: var(--orange);
  color: var(--white);
}

.hero__logo {
  position: relative;
  z-index: 2;
  width: 208px;
  height: auto;
  margin-top: 30px;
}
.hero__content {
  position: relative;
  z-index: 2;
  margin: auto 28px 0 28px;
  padding-bottom: 22px;
}

/* ===== 7. HEADLINE ===== */
.headline {
  margin: 0;
  font-weight: 800;
  font-size: 31px;
  line-height: 1.05;
  letter-spacing: -0.8px;
  color: var(--white);
  text-align: left;
}
.headline .accent { color: var(--orange); }

/* ===== 8. SUBHEADLINE ===== */
.subheadline {
  margin: 14px 0 0;
  font-weight: 400;
  font-size: 17px;
  line-height: 25px;
  color: #D5D8DA;
}
.subheadline .accent { color: var(--orange); }

/* ===== 9. GUARDAR CONTACTO ===== */
.btn-save-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(100% - 56px);
  height: 58px;
  margin: 28px 28px 12px;
  background: var(--orange);
  border: none;
  border-radius: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: .2px;
  transition: all .2s ease;
  cursor: pointer;
}
.btn-save-contact svg { width: 20px; height: 20px; }
.btn-save-contact:active { transform: scale(.98); }
@media (hover: hover) {
  .btn-save-contact:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(255,116,23,.25);
  }
}

/* ===== 10. CONTACT GRID ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 28px;
}
.btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .2px;
  transition: all .2s ease;
  cursor: pointer;
}
.btn-contact:active { transform: scale(.98); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-call { background: var(--orange); color: var(--white); }
.btn-email { background: var(--bg-card); border: 1px solid var(--border); color: var(--dark-text); }
.btn-sms { background: var(--bg-card); border: 1px solid var(--border); color: var(--dark-text); }

/* ===== 11. TRUST BAR ===== */
.trust-bar {
  margin-top: 28px;
  padding: 22px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.trust-item svg { color: var(--orange); width: 24px; height: 24px; }
.trust-item span {
  font-weight: 600;
  font-size: 10px;
  line-height: 1.3;
  color: var(--text-primary);
}

/* ===== 12. SECTION TITLES ===== */
.section-title {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  text-align: center;
}
.section-divider {
  width: 34px;
  height: 2px;
  background: var(--orange);
  margin: 8px auto 20px;
}

.services {
  background: var(--bg-main);
  padding: 28px 0;
}
.services .section-title { padding: 0 28px; }

/* ===== 13. SERVICES SCROLL ===== */
.services-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 28px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.services-scroll::-webkit-scrollbar { display: none; }

.service-card {
  position: relative;
  flex: 0 0 auto;
  width: 105px;
  height: 92px;
  border-radius: 7px;
  overflow: hidden;
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
}
.service-card span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--white);
}
.service-card--placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
}
.service-card--placeholder::after { display: none; }
.service-card--placeholder .ph-label {
  position: static;
  padding: 8px;
  color: var(--text-secondary);
}

/* ===== 14. SOLICITAR COTIZACIÓN ===== */
.btn-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 56px);
  height: 58px;
  margin: 28px;
  background: var(--orange);
  color: var(--white);
  border-radius: 9px;
  font-weight: 700;
  font-size: 16px;
  transition: all .2s ease;
  cursor: pointer;
}
.btn-quote:active { transform: scale(.98); }
@media (hover: hover) {
  .btn-quote:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(255,116,23,.25); }
}

/* ===== 15. PROJECTS ===== */
.projects { padding: 0 0 28px; }
.projects .section-title { padding: 0 28px; }

.projects-grid {
  margin-top: 20px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.projects-grid img {
  width: 100%;
  aspect-ratio: 1 / .8;
  object-fit: cover;
  border-radius: 8px;
}
.project-more {
  aspect-ratio: 1 / .8;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.project-more span {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .3px;
  color: var(--text-tertiary);
}

/* ===== 16. AREA SERVED ===== */
.area-served {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 28px 8px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .2px;
  text-align: center;
}
.area-served svg { color: var(--orange); flex-shrink: 0; }
.area-served strong { color: var(--orange); font-weight: 700; }

/* ===== SOCIAL BAR (primera vista) ===== */
.social-bar {
  padding: 14px 28px 0;
}
.social-bar__label {
  display: block;
  text-align: center;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--text-tertiary);
  margin-top: 20px;
  margin-bottom: 12px;
}

/* ===== Iconos de redes: insignias compactas con color de marca original (NO botones) ===== */
.social-icons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  color: #FFFFFF;
  box-shadow: 0 5px 16px rgba(23,25,27,.18);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
  animation: iconFloat 3.2s ease-in-out infinite;
}
.icon-badge svg { width: 36px; height: 36px; }
.icon-badge:active { transform: scale(.92); animation-play-state: paused; }
.icon-instagram {
  background: radial-gradient(circle at 30% 110%, #FFDC80 0%, #FCAF45 15%, #F77737 35%, #F56040 45%, #FD1D1D 60%, #E1306C 70%, #C13584 80%, #833AB4 95%, #5B51D8 100%);
  animation-delay: 0s;
}
.icon-facebook {
  background: #1877F2;
  animation-delay: .35s;
}
@media (hover: hover) {
  .icon-badge:hover { box-shadow: 0 6px 16px rgba(0,0,0,.35); filter: brightness(1.06); }
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
  .icon-badge { animation: none; }
}

/* Botón de sitio web propio: acento de marca SPM, no un color de plataforma externa */
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .2px;
  transition: all .2s ease;
  cursor: pointer;
}
.btn-social:active { transform: scale(.98); }
.btn-website {
  background: rgba(255,116,23,.07);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
}
.btn-website svg { color: var(--orange); }
@media (hover: hover) {
  .btn-website:hover { background: rgba(255,116,23,.13); }
}

/* ===== 18. FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  padding: 26px 20px 34px;
  text-align: center;
  font-weight: 400;
  font-size: 9.5px;
  color: var(--text-tertiary);
}

/* ===== small phones ===== */
@media (max-width: 360px) {
  .hero { height: 380px; }
  .hero__logo { width: 178px; margin-top: 24px; }
  .headline { font-size: 28px; }
}
