/* ============================================================
   Cose Q' Cose — hoja de estilos única (ES /, CA /ca/, EN /en/)
   Paleta y motivos tomados del flyer de la marca.
   ============================================================ */

:root {
  --mustard: #ffbe33;
  --mustard-deep: #e6a416;
  --mustard-soft: #ffd982;
  --ink: #222831;
  --ink-soft: #3a4150;
  --cream: #faf5ec;
  --paper: #ffffff;
  --navy: #2e3f5c;
  --muted: #6b6558;
  --whatsapp: #1faa53;

  --font-display: "LemonMilk", "Arial Black", sans-serif;
  --font-script: "BetterTogether", "Brush Script MT", cursive;
  --font-body: "Nunito Sans", -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(1.9rem, 4.8vw, 3.1rem);
  --fs-h2: clamp(1.4rem, 3.2vw, 2.1rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  --container: 1100px;
  --radius: 14px;
  --shadow: 0 4px 18px rgb(34 40 49 / 0.08);
  --shadow-lift: 0 10px 28px rgb(34 40 49 / 0.14);
  --space-section: clamp(3.5rem, 8vw, 6rem);
  --header-h: 4.25rem;
}

@font-face {
  font-family: "LemonMilk";
  src: url("../fonts/lemonmilk.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BetterTogether";
  src: url("../fonts/bettertogether.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2 {
  font-family: var(--font-display);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h3 {
  font-size: var(--fs-h3);
  margin: 0 0 0.5rem;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

section {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section {
  padding-block: var(--space-section);
}

.section-alt {
  background: var(--paper);
}

.section-head {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-head h2 {
  font-size: var(--fs-h2);
  margin: 0.25rem 0 0.75rem;
}

.eyebrow {
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--mustard-deep);
  display: block;
}

.lead {
  color: var(--muted);
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn svg {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.btn-primary {
  background: var(--mustard);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--mustard-soft);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 2px dashed transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--mustard-deep);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.brand span {
  color: var(--mustard-deep);
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--mustard);
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  font-size: var(--fs-small);
  font-weight: 800;
}

.lang-switch a {
  text-decoration: none;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  color: var(--muted);
}

.lang-switch a[aria-current] {
  background: var(--mustard);
  color: var(--ink);
}

.lang-switch a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 2px dashed var(--mustard-deep);
    box-shadow: var(--shadow-lift);
    padding: 1rem 1.5rem 1.25rem;
  }
  .site-nav.open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0.9rem;
  }
  .lang-switch {
    margin-left: auto;
  }
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.hero h1 {
  font-size: var(--fs-hero);
  margin: 0.3rem 0 1rem;
}

.hero .lead {
  font-size: 1.15rem;
  margin-bottom: 1.4rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 800;
  font-size: var(--fs-small);
  background: var(--paper);
  border: 2px dashed var(--mustard-deep);
  border-radius: 999px;
  padding: 0.45rem 1rem;
}

.rating-badge .stars {
  color: var(--mustard-deep);
  letter-spacing: 0.1em;
}

.hero-figure {
  position: relative;
  margin: 0;
}

.hero-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  border: 6px solid var(--paper);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0.9rem -0.9rem -0.9rem 0.9rem;
  border: 2px dashed var(--mustard-deep);
  border-radius: var(--radius);
  z-index: -1;
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-figure {
    order: -1;
    max-width: 30rem;
  }
}

/* ---------- galería complementos ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.gallery figure {
  margin: 0;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery figcaption {
  padding: 0.7rem 1rem 0.9rem;
  font-weight: 700;
  font-size: var(--fs-small);
}

.gallery-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  background: var(--mustard);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.gallery-cta p {
  font-family: var(--font-script);
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0;
}

.gallery-cta .btn {
  background: var(--ink);
  color: #fff;
}

/* ---------- servicios (arreglos) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: 1.1rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.card-body li {
  padding-left: 1.3rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.card-body li::before {
  content: "✂";
  position: absolute;
  left: 0;
  color: var(--mustard-deep);
}

.note {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

/* ---------- cómo funciona ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  background: var(--paper);
  border: 2px dashed var(--mustard-deep);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.5rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -1.1rem;
  left: 1.2rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--mustard);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}

.step h3 {
  margin-top: 0.3rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.pricing-strip {
  margin-top: 2.25rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.pricing-strip strong {
  color: var(--mustard);
}

.pricing-strip p {
  margin: 0;
  max-width: 40rem;
}

/* ---------- nosotros / colaboración ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.about-photos {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1rem;
  align-items: start;
}

.about-photos img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 5px solid var(--paper);
}

.about-photos img:last-child {
  transform: rotate(2.5deg);
  margin-top: 1.5rem;
}

.collab {
  margin-top: 1.75rem;
  background: var(--cream);
  border: 2px dashed var(--mustard-deep);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

.section-alt .collab {
  background: var(--cream);
}

.collab h3 {
  margin-top: 0;
}

.collab p {
  margin: 0;
  color: var(--muted);
}

.collab a {
  font-weight: 800;
  color: var(--ink);
}

@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- opiniones ---------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.review {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.review .stars {
  color: var(--mustard-deep);
  letter-spacing: 0.15em;
  margin-bottom: 0.6rem;
}

.review blockquote {
  margin: 0 0 1rem;
  flex: 1;
}

.review figcaption {
  font-weight: 800;
  font-size: var(--fs-small);
}

.review figcaption span {
  display: block;
  font-weight: 600;
  color: var(--muted);
}

.reviews-footer {
  text-align: center;
  margin-top: 2rem;
}

.reviews-footer a {
  font-weight: 800;
}

/* ---------- contacto ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
}

.contact-form label {
  font-weight: 800;
  font-size: var(--fs-small);
  display: grid;
  gap: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #d8d2c6;
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--mustard);
  border-color: var(--mustard-deep);
}

.contact-info {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.contact-info .btn {
  justify-content: center;
}

.info-line {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.info-line svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  margin-top: 0.25rem;
  color: var(--mustard-deep);
}

.info-line a {
  font-weight: 700;
}

.hours-table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--fs-small);
}

.hours-table td {
  padding: 0.3rem 0;
  border-bottom: 1px dashed #d8d2c6;
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 700;
}

.map-embed {
  margin-top: 2.5rem;
}

.map-embed iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #d9dce2;
  padding-block: 3rem 2rem;
  font-size: var(--fs-small);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h2 {
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 0.75rem;
}

.site-footer .brand-foot {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--mustard);
  margin-bottom: 0.5rem;
  display: inline-block;
  text-decoration: none;
}

.site-footer address {
  font-style: normal;
  line-height: 1.8;
}

.site-footer a {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 2;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.75rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--ink-soft);
  transition: background 0.15s ease;
}

.footer-social a:hover {
  background: var(--mustard);
  color: var(--ink);
}

.footer-social svg {
  width: 1.2rem;
  height: 1.2rem;
}

.footer-bottom {
  border-top: 1px dashed #4a5262;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

/* ---------- whatsapp flotante ---------- */

.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lift);
  transition: transform 0.15s ease;
}

.wa-float:hover {
  transform: scale(1.08);
}

.wa-float svg {
  width: 1.8rem;
  height: 1.8rem;
}

/* ---------- 404 ---------- */

.page-404 {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.page-404 h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 0.5rem;
}
