/* === Variables globales === */
:root {
  --ink: #1e2327;
  --muted: #66706f;
  --line: #d9d0c2;
  --paper: #faf7f0;
  --teal: #0a6168;
  --teal-dark: #06454a;
  --coral: #d95d42;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(31, 35, 35, 0.13);
}

/* === Reset y tipografía === */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(217, 93, 66, 0.12), transparent 32rem),
    linear-gradient(180deg, var(--paper), #fffaf2 38%, #f7f4ec);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 4.5rem);
  background: rgba(250, 247, 240, 0.92);
  border-bottom: 1px solid rgba(217, 208, 194, 0.7);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-weight: 800;
  color: var(--teal-dark);
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 2px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  font-size: 0.85rem;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2.4vw, 1.6rem);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--coral);
}

.main-nav a[aria-current="page"] {
  color: var(--teal-dark);
}

.header-cta {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border-radius: 0.45rem;
  color: var(--white);
  background: var(--coral);
  font-weight: 800;
  white-space: nowrap;
}

/* === Hero === */
.hero {
  min-height: min(760px, calc(100vh - 4.6rem));
  display: grid;
  align-items: center;
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 4vw, 4.5rem);
  background:
    linear-gradient(90deg, rgba(8, 40, 43, 0.85) 0%, rgba(8, 40, 43, 0.68) 38%, rgba(8, 40, 43, 0.1) 72%),
    url("assets/shared/bordados-hero.png") center / cover no-repeat;
}

.hero-content {
  max-width: 700px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd0bf;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 7.25rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 1rem 0 0.65rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 560px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.primary {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 12px 28px rgba(217, 93, 66, 0.28);
}

.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.11);
}

.whatsapp {
  color: var(--white);
  background: #15803d;
  box-shadow: 0 12px 28px rgba(21, 128, 61, 0.24);
}

/* === Secciones generales === */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 4.5rem);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 2rem;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* === Servicios === */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 18rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 40px rgba(31, 35, 35, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: 0 18px 48px rgba(10, 97, 104, 0.12);
}

.service-icon {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
}

.service-card p,
.work-copy p,
.contact-copy p,
.work-list span {
  color: var(--muted);
}

/* === Trabajos === */
.work-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.7fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 4.5rem);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(10, 97, 104, 0.95), rgba(6, 69, 74, 0.98)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, 0.08) 14px 15px);
}

.work-band .eyebrow {
  color: #ffc2ae;
}

.work-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.76);
}

.work-list {
  display: grid;
  gap: 1rem;
}

.work-list div {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.work-list strong,
.work-list span {
  display: block;
}

.work-list strong {
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
}

.work-list span {
  color: rgba(255, 255, 255, 0.74);
}

.work-gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}

.work-photo {
  display: grid;
  align-self: start;
  align-content: start;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.work-photo:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
}

.work-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 300ms ease;
}

.work-photo:hover img {
  transform: scale(1.03);
}

.work-photo.featured {
  grid-column: span 2;
}

.work-photo figcaption {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
}

.work-photo strong,
.work-photo span {
  display: block;
}

.work-photo strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.work-photo span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.35;
}

/* === Parches === */
.patch-section {
  background: #fffaf2;
}

.patch-section .section-heading > p:not(.eyebrow) {
  max-width: 780px;
  margin: 1rem 0 0;
  color: var(--muted);
}

.patch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  align-items: start;
  gap: 1rem;
}

.patch-item {
  display: grid;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(31, 35, 35, 0.08);
}

.patch-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.patch-item figcaption {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem;
}

.patch-item strong,
.patch-item span {
  display: block;
}

.patch-item strong {
  color: var(--teal-dark);
  line-height: 1.2;
}

.patch-item span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

/* === Páginas internas === */
.page-hero {
  min-height: 420px;
  display: grid;
  align-items: end;
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 4.5rem);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 40, 43, 0.9) 0%, rgba(8, 40, 43, 0.68) 48%, rgba(8, 40, 43, 0.2) 100%),
    url("assets/bordados/bordado-playera-logo.jpeg") center / cover no-repeat;
}

.page-hero-patches {
  background:
    linear-gradient(90deg, rgba(8, 40, 43, 0.9) 0%, rgba(8, 40, 43, 0.66) 48%, rgba(8, 40, 43, 0.18) 100%),
    url("assets/parches/parche-pikachu.jpeg") center / cover no-repeat;
}

.page-hero-copy {
  max-width: 780px;
}

.page-hero h1 {
  font-size: clamp(3rem, 8vw, 6.25rem);
}

.page-hero p:last-child {
  max-width: 620px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.gallery-page {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(10, 97, 104, 0.95), rgba(6, 69, 74, 0.98)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, 0.08) 14px 15px);
}

.light-gallery {
  color: var(--ink);
  background: #fffaf2;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  align-items: start;
  gap: 1rem;
}

.gallery-heading {
  max-width: 880px;
  margin-bottom: 2rem;
}

.gallery-heading h2 {
  color: var(--white);
}

.gallery-heading p:last-child {
  max-width: 680px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.gallery-heading-light h2 {
  color: var(--ink);
}

.gallery-heading-light p:last-child {
  color: var(--muted);
}

/* === Contacto y formulario === */
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(20rem, 0.65fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 4.5rem);
}

.page-contact {
  border-top: 1px solid var(--line);
}

.embroidery-contact {
  background:
    linear-gradient(135deg, rgba(10, 97, 104, 0.08), rgba(255, 255, 255, 0.76) 46%),
    #fffaf2;
}

.patch-contact {
  background:
    linear-gradient(135deg, rgba(217, 93, 66, 0.1), rgba(255, 255, 255, 0.82) 48%),
    #faf7f0;
}

.page-contact-form {
  border-top: 0.35rem solid var(--teal);
}

.patch-contact .page-contact-form {
  border-top-color: var(--coral);
}

.contact-form {
  display: grid;
  min-width: 0;
  gap: 1.15rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-header {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.form-header h3 {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-row-full {
  grid-column: 1 / -1;
}

.contact-details {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.contact-card {
  position: relative;
  display: grid;
  gap: 0.22rem;
  padding: 1.1rem 3.25rem 1.1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(31, 35, 35, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.contact-card::after {
  content: ">";
  position: absolute;
  right: 1rem;
  top: 50%;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
  transform: translateY(-50%);
}

.facebook-card::after {
  content: "f";
  background: #1877f2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  line-height: 1;
}

.contact-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-card strong {
  color: var(--teal-dark);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-card small {
  color: var(--coral);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-card:hover,
.contact-card:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 16px 36px rgba(10, 97, 104, 0.14);
  transform: translateY(-1px);
}

.facebook-card:hover,
.facebook-card:focus {
  border-color: #1877f2;
  box-shadow: 0 16px 36px rgba(24, 119, 242, 0.16);
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

label {
  font-weight: 800;
  color: var(--teal-dark);
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #cfc7ba;
  border-radius: 0.4rem;
  color: var(--ink);
  background: #fffcf7;
  font: inherit;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(10, 97, 104, 0.16);
  border-color: var(--teal);
}

.optional-label {
  color: var(--muted);
  font-weight: 700;
}

.form-button {
  width: 100%;
  margin-top: 0.35rem;
  border: 0;
  font: inherit;
}

.form-message {
  min-height: 1.5rem;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 700;
}

/* === Footer === */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem clamp(1rem, 4vw, 4.5rem);
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
  color: var(--white);
  font-weight: 800;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* === WhatsApp flotante === */
.floating-whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: inline-flex;
  width: 3.6rem;
  height: 3.6rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  color: var(--white);
  background: #15803d;
  box-shadow: 0 18px 45px rgba(21, 128, 61, 0.34);
}

.floating-whatsapp svg {
  width: 1.9rem;
  height: 1.9rem;
  fill: currentColor;
}

/* === Responsive === */
@media (max-width: 860px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .hero {
    min-height: 650px;
    background:
      linear-gradient(180deg, rgba(8, 40, 43, 0.86) 0%, rgba(8, 40, 43, 0.55) 58%, rgba(8, 40, 43, 0.18) 100%),
      url("assets/shared/bordados-hero.png") center / cover no-repeat;
  }

  .intro,
  .service-grid,
  .work-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .work-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .patch-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 0.55rem 0.95rem;
  }

  .main-nav {
    grid-column: auto;
    justify-content: center;
    min-width: 0;
    width: auto;
    padding-bottom: 0;
    overflow: visible;
    gap: 0.65rem;
    font-size: 0.9rem;
    line-height: 1;
  }

  .brand {
    justify-content: flex-start;
    gap: 0;
  }

  .brand-mark {
    width: 2.45rem;
    height: 2.45rem;
    font-size: 0.9rem;
    flex: 0 0 auto;
  }

  .brand span:last-child {
    display: none;
  }

  .header-cta {
    justify-self: end;
    min-height: 2.2rem;
    padding: 0.4rem 0;
    color: var(--muted);
    background: transparent;
    font-size: 0.95rem;
    line-height: 1;
    box-shadow: none;
  }

  .hero {
    min-height: 560px;
    padding: 3rem 1rem;
    background-position: 58% center;
  }

  h1 {
    font-size: clamp(2.45rem, 16vw, 3.4rem);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(1.9rem, 11vw, 2.55rem);
    line-height: 1.08;
  }

  .hero-copy,
  .intro p:last-child {
    font-size: 1rem;
  }

  .section,
  .work-band,
  .contact-section {
    padding: 3rem 1rem;
  }

  .page-hero {
    min-height: 360px;
    padding: 4rem 1rem 3rem;
  }

  .button {
    width: 100%;
  }

  .service-card,
  .contact-form {
    padding: 1rem;
  }

  .contact-card {
    padding: 1rem 3.25rem 1rem 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .work-gallery,
  .patch-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .work-photo.featured {
    grid-column: auto;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding-bottom: 5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .floating-whatsapp {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 3.2rem;
    height: 3.2rem;
  }
}

@media (max-width: 380px) {
  .site-header {
    grid-template-columns: 2.65rem minmax(0, 1fr) auto;
    padding-inline: 0.6rem;
    gap: 0.55rem;
  }

  .brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.82rem;
  }

  .main-nav,
  .header-cta {
    font-size: 0.88rem;
  }

  .main-nav {
    grid-column: auto;
  }

  .header-cta {
    width: auto;
  }

  .hero-actions {
    gap: 0.65rem;
  }
}
