/* Balbuena — Tela y Ropa */

:root {
  --teal: #3da8a3;
  --teal-dark: #2d8a86;
  --teal-deep: #267572;
  --lavender: #d4c0e8;
  --lavender-light: #f3edf8;
  --lavender-soft: #ebe0f4;
  --accent-blue: #5b8fd4;
  --accent-yellow: #e8c830;
  --accent-pink: #d6417a;
  --accent-green: #7ec843;
  --white: #ffffff;
  --cream: #faf9fc;
  --text: #2a3340;
  --text-muted: #6b7280;
  --border: #e5e0ec;
  --font: 'Figtree', sans-serif;
  --header-h: 72px;
  --topbar-h: 38px;
  --max-w: 1140px;
  --gutter: 1.5rem;
  --ease: 0.3s ease;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--topbar-h) + 16px);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-top: calc(var(--header-h) + var(--topbar-h));
}

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

.hero__bg,
.cta__bg {
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg {
  object-position: 68% center;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 0.75rem;
}

.tag--light { color: var(--accent-yellow); }

.section-head { margin-bottom: 2.5rem; }
.section-head--center { text-align: center; }

.section-head h2,
.about__copy h2,
.products h2,
.services h2,
.process h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 1.2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
}

.btn--primary {
  background: var(--accent-pink);
  color: var(--white);
  border-color: var(--accent-pink);
}

.btn--primary:hover {
  background: #c03869;
  border-color: #c03869;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(214,65,122,0.3);
}

.btn--white {
  background: var(--white);
  color: var(--teal-deep);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--lavender-light);
  transform: translateY(-2px);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn--outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn--lg { padding: 14px 32px; font-size: 0.95rem; }
.btn--full { width: 100%; }

/* ── Top bar ── */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--teal-deep);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.top-bar__info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.top-bar__info a,
.top-bar__info span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--ease);
}

.top-bar__info a:hover { color: var(--accent-yellow); }

.top-bar__info svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
  flex-shrink: 0;
}

.top-bar__hours { opacity: 0.7; white-space: nowrap; }

/* ── Header · clásico ── */
.header {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}

.header.scrolled { box-shadow: 0 4px 24px rgba(61,168,163,0.1); }

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 100%;
  gap: 1rem;
}

.header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.header__cta { flex-shrink: 0; }

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: width var(--ease);
}

.nav__link:hover,
.nav__link.active {
  color: var(--teal);
}

.nav__link.active::after,
.nav__link:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: var(--ease);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero · panel sobre imagen ── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(460px, 68vh, 600px);
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 51, 64, 0.18);
}

.hero__overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(38, 117, 114, 0.55);
  clip-path: polygon(0 0, 52% 0, 38% 100%, 0 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  min-height: clamp(460px, 68vh, 600px);
  display: flex;
  align-items: center;
  padding: 3.5rem 0;
}

.hero__panel {
  position: relative;
  max-width: 520px;
  padding: 2.5rem 2.75rem;
  background: var(--teal-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 20px 48px rgba(38, 117, 114, 0.4);
}

.hero__panel h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.hero__panel p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Nosotros · imagen + texto ── */
.about {
  padding: 5rem 0;
  background: var(--lavender-light);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__copy p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.about__copy strong { color: var(--teal-deep); }

.about__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(61, 168, 163, 0.12);
}

/* ── Productos · tabs ── */
.products {
  padding: 5rem 0;
  background: var(--lavender-light);
}

.tabs__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tabs__btn {
  padding: 10px 22px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--ease);
}

.tabs__btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.tabs__btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.tabs__panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  animation: fadeIn 0.35s ease;
}

.tabs__panel.active { display: grid; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tabs__panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}

.tabs__copy h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 0.6rem;
}

.tabs__copy p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.tabs__copy ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
}

.tabs__copy ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-pink);
}

/* ── Servicios · alternado ── */
.services {
  padding: 5rem 0;
  background: var(--white);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.service-row:last-child { margin-bottom: 0; }

.service-row--reverse { direction: rtl; }
.service-row--reverse > * { direction: ltr; }

.service-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(61,168,163,0.1);
}

.service-row h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 0.6rem;
}

.service-row p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Proceso · tarjetas ── */
.process {
  padding: 5rem 0;
  background: var(--cream);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.process-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--ease), box-shadow var(--ease);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(61,168,163,0.12);
}

.process-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin-bottom: 1rem;
  color: var(--white);
}

.process-card__icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
}

.process-card__icon--blue { background: var(--accent-blue); }
.process-card__icon--pink { background: var(--accent-pink); }
.process-card__icon--green { background: var(--accent-green); }

.process-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 0.45rem;
}

.process-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── CTA · imagen ── */
.cta {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(38,117,114,0.78);
}

.cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3.5rem 0;
}

.cta__content h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

/* ── Contacto · banner + form ── */
.contact__banner {
  background: var(--teal);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}

.contact__banner h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.contact__banner p {
  font-size: 0.95rem;
  opacity: 0.85;
}

.contact {
  background: var(--lavender-light);
}

.contact__wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0 5rem;
}

.contact__form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(61,168,163,0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--lavender-light);
  color: var(--text);
  transition: border-color var(--ease), background var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-notice {
  margin-top: 1rem;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  text-align: center;
}

.form-notice.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact__list li:last-child { border-bottom: none; }

.contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--lavender-light);
  border-radius: 10px;
  color: var(--teal);
}

.contact__icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

.contact__list strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 4px;
}

.contact__list span,
.contact__list a {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact__list a:hover { color: var(--teal); }

/* ── Footer · CTA integrado ── */
.footer__cta {
  background: var(--teal-deep);
  color: var(--white);
  padding: 2.5rem 0;
}

.footer__cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__cta-inner > div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.footer__cta-inner p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer__bottom {
  background: var(--teal-deep);
  color: rgba(255,255,255,0.6);
  padding: 1.25rem 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.footer__bottom nav {
  display: flex;
  gap: 1.25rem;
}

.footer__bottom a {
  transition: color var(--ease);
}

.footer__bottom a:hover { color: var(--accent-yellow); }

/* ── Reveal ── */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .nav { gap: 0.85rem; }
  .nav__link { font-size: 0.82rem; }
}

@media (max-width: 900px) {
  .hero__overlay::before {
    clip-path: none;
    background: rgba(38, 117, 114, 0.45);
  }

  .hero__content {
    min-height: auto;
    align-items: flex-end;
    padding: 2.5rem 0 3rem;
  }

  .hero__panel {
    max-width: none;
    width: 100%;
    border-radius: var(--radius);
    padding: 2rem 1.75rem 2.25rem 1.5rem;
  }

  .about__grid { grid-template-columns: 1fr; }
  .about__photo { order: -1; }

  .tabs__panel { grid-template-columns: 1fr; }
  .service-row,
  .service-row--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .process__grid { grid-template-columns: 1fr; }
  .contact__wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar__hours { display: none; }
  .top-bar__info span:last-of-type { display: none; }

  .header__cta { display: none; }
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: calc(var(--header-h) + var(--topbar-h));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    padding: 1rem var(--gutter);
    box-shadow: 0 8px 24px rgba(61,168,163,0.12);
    transform: translateY(-110%);
    opacity: 0;
    transition: all var(--ease);
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav__link::after { display: none; }

  .about__copy { padding: 0; }

  .header__inner {
    grid-template-columns: 1fr auto;
  }
  .form-row { grid-template-columns: 1fr; }
  .footer__cta-inner { flex-direction: column; text-align: center; }
  .footer__cta-inner > div { flex-direction: column; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .tabs__nav { gap: 0.35rem; }
  .tabs__btn { padding: 8px 16px; font-size: 0.8rem; }
}

@media (min-width: 769px) {
  .header__cta { display: inline-flex; }
}
