/*
Theme Name: Yanilet Interior
Theme URI: https://yaniletmilagros.com
Description: Tema personalizado para Yanilet Milagros Interior Design Studio
Author: Yanilet Milagros Interior Design Studio
Version: 1.0
*/

:root {
  --ink: #172326;
  --ink-soft: #344044;
  --muted: #66706c;
  --paper: #fbf8f4;
  --porcelain: #ffffff;
  --sand: #e7ded3;
  --taupe: #a88467;
  --sage: #6e7a66;
  --clay: #a35f49;
  --line: rgba(23, 35, 38, 0.14);
  --shadow: 0 22px 70px rgba(23, 35, 38, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

body.nav-open {
  overflow: hidden;
}

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

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

p,
h1,
h2,
h3 {
  margin: 0;
}

p + p {
  margin-top: 18px;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--porcelain);
  color: var(--ink);
  padding: 10px 14px;
  border: 1px solid var(--line);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.eyebrow {
  color: var(--taupe);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.04;
}

h1 {
  max-width: 760px;
  font-size: 4.35rem;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 1.45rem;
}

.lead-copy {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  color: var(--porcelain);
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
body.nav-open .site-header {
  color: var(--ink);
  background: rgba(251, 248, 244, 0.96);
  box-shadow: 0 12px 36px rgba(23, 35, 38, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1380px, calc(100% - 34px));
  min-height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: auto;
}

.brand img {
  width: auto;
  height: 42px;
  max-width: 230px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 220ms ease;
}

.site-header.is-scrolled .brand img,
body.nav-open .brand img {
  filter: none;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-whatsapp {
  justify-self: end;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid currentColor;
  padding: 0 18px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.header-whatsapp:hover {
  background: var(--taupe);
  border-color: var(--taupe);
  color: var(--porcelain);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.hero,
.subpage-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--porcelain);
  background: var(--ink);
}

.subpage-hero {
  min-height: 66vh;
}

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

.about-hero .hero-media {
  object-position: center 28%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 35, 38, 0.78), rgba(23, 35, 38, 0.32) 52%, rgba(23, 35, 38, 0.12));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 170px 0 78px;
}

.hero-content .eyebrow {
  color: #f0d6bf;
  margin-bottom: 14px;
}

.hero-content p:not(.eyebrow) {
  max-width: 640px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  padding: 0 24px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-light {
  background: var(--porcelain);
  color: var(--ink);
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--porcelain);
}

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

.btn-outline:hover,
.btn-dark {
  background: var(--ink);
  color: var(--porcelain);
}

.btn-dark:hover {
  background: var(--taupe);
  border-color: var(--taupe);
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.intro-section {
  padding: 84px 0 80px;
  background: var(--porcelain);
}

.intro-grid,
.story-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1fr);
  gap: 70px;
  align-items: start;
}

.intro-grid h2,
.story-grid h2 {
  margin-top: 10px;
}

.feature-split {
  background: var(--paper);
}

.feature-split.reverse {
  background: var(--porcelain);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1fr);
  gap: 80px;
  align-items: center;
}

.reverse .split-grid {
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.95fr);
}

.portrait-stack {
  position: relative;
}

.portrait-stack > img:first-child,
.image-frame img,
.note-grid > img,
.work-item > img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.portrait-stack > img:first-child {
  aspect-ratio: 4 / 5;
  object-position: center top;
}

.portrait-stack > img:last-child {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 148px;
  padding: 22px;
  border-radius: 50%;
  background: var(--porcelain);
  box-shadow: 0 18px 50px rgba(23, 35, 38, 0.16);
}

.split-copy {
  max-width: 590px;
}

.split-copy h2 {
  margin-top: 10px;
}

.split-copy p:not(.eyebrow) {
  color: var(--ink-soft);
}

.split-copy .btn {
  margin-top: 30px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ink);
}

.project-card a {
  position: relative;
  display: block;
  color: var(--porcelain);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  opacity: 0.86;
  transform: scale(1.01);
  transition: opacity 220ms ease, transform 220ms ease;
}

.project-card span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.04;
}

.project-card:hover img {
  opacity: 0.68;
  transform: scale(1.04);
}

.services-band {
  background: var(--ink);
  color: var(--porcelain);
}

.services-band.compact {
  padding: 76px 0;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
  gap: 70px;
  align-items: start;
}

.services-layout p {
  color: rgba(255, 255, 255, 0.78);
}

.services-layout .btn {
  margin-top: 28px;
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--porcelain);
}

.service-list {
  display: grid;
  gap: 22px;
}

.service-list.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-list article,
.process-grid article,
.values-grid article,
.service-detail-grid article {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.services-band .service-list article {
  border-color: rgba(255, 255, 255, 0.18);
}

.service-list span,
.process-grid span,
.values-grid span,
.service-detail-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--taupe);
  font-size: 0.8rem;
  font-weight: 700;
}

.service-list h3 {
  margin-bottom: 8px;
}

.studio-note {
  background: var(--porcelain);
}

.note-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(300px, 0.9fr);
  gap: 70px;
  align-items: center;
}

.note-grid > img {
  aspect-ratio: 16 / 10;
}

.note-grid h2 {
  margin-top: 10px;
}

.note-grid p:not(.eyebrow) {
  color: var(--ink-soft);
}

.note-grid .btn {
  margin-top: 28px;
}

.cta-section {
  padding: 88px 0;
  color: var(--porcelain);
  background: linear-gradient(135deg, var(--ink), #24342f 58%, var(--sage));
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
}

.cta-inner h2 {
  max-width: 740px;
}

.site-footer {
  padding: 72px 0 28px;
  background: var(--porcelain);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.6fr;
  gap: 60px;
}

.footer-logo {
  width: 230px;
  margin-bottom: 22px;
}

.site-footer h2 {
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.site-footer p,
.site-footer a {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a + a,
.site-footer a + p {
  margin-top: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.story-copy {
  color: var(--ink-soft);
}

.values-section {
  background: var(--porcelain);
}

.values-grid,
.process-grid,
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.values-grid article,
.process-grid article,
.service-detail-grid article {
  min-width: 0;
}

.values-grid h2,
.service-detail-grid h2 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.values-grid p,
.process-grid p,
.service-detail-grid p {
  color: var(--ink-soft);
}

.image-frame.tall img {
  aspect-ratio: 4 / 5;
  object-position: center top;
}

.portfolio-intro {
  background: var(--porcelain);
}

.work-grid {
  display: grid;
  gap: 58px;
}

.work-item {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.72fr);
  gap: 46px;
  align-items: center;
}

.work-item:nth-child(even) {
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
}

.work-item:nth-child(even) > img {
  order: 2;
}

.work-item > img {
  aspect-ratio: 16 / 10;
}

.work-item h2 {
  margin-top: 10px;
}

.work-item p:not(.eyebrow) {
  color: var(--ink-soft);
}

.process-section {
  background: var(--porcelain);
}

.contact-section {
  background: var(--porcelain);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 1fr);
  gap: 72px;
  align-items: start;
}

.contact-copy h2 {
  margin-top: 10px;
}

.contact-copy p:not(.eyebrow) {
  color: var(--ink-soft);
}

.contact-methods {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.contact-methods a,
.contact-methods p {
  display: block;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.contact-methods span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--taupe);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--porcelain);
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--taupe);
  box-shadow: 0 0 0 3px rgba(168, 132, 103, 0.16);
}

.form-status {
  min-height: 24px;
  color: var(--sage);
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  h1 { font-size: 3.45rem; }
  h2 { font-size: 2.35rem; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .brand img { height: 38px; max-width: 210px; }
  .site-nav { gap: 18px; font-size: 0.76rem; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .header-inner { min-height: 74px; grid-template-columns: auto 1fr auto; }
  .brand img { height: 36px; max-width: 194px; }
  .menu-toggle { display: inline-flex; justify-self: end; grid-column: 2; }
  .header-whatsapp { grid-column: 3; min-height: 42px; padding: 0 14px; }
  .site-nav {
    position: fixed;
    inset: 74px 0 auto;
    display: grid;
    gap: 0;
    justify-items: start;
    padding: 22px 20px 28px;
    background: rgba(251, 248, 244, 0.98);
    color: var(--ink);
    border-top: 1px solid var(--line);
    box-shadow: 0 22px 48px rgba(23, 35, 38, 0.12);
    transform: translateY(-130%);
    transition: transform 220ms ease;
  }
  body.nav-open .site-nav { transform: translateY(0); }
  .site-nav a { width: 100%; padding: 14px 0; }
  .hero, .subpage-hero { min-height: 82vh; }
  .subpage-hero { min-height: 64vh; }
  .hero-content { padding: 132px 0 58px; }
  .intro-grid, .story-grid, .split-grid, .reverse .split-grid,
  .services-layout, .note-grid, .contact-grid, .work-item,
  .work-item:nth-child(even), .cta-inner { grid-template-columns: 1fr; gap: 38px; }
  .work-item:nth-child(even) > img { order: 0; }
  .values-grid, .process-grid, .service-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portrait-stack > img:last-child { right: 16px; bottom: -28px; width: 118px; }
}

@media (max-width: 620px) {
  .container, .hero-content { width: min(100% - 28px, 1180px); }
  .header-inner { width: min(100% - 24px, 1380px); grid-template-columns: auto 42px 1fr; gap: 10px; }
  .brand img { height: 32px; max-width: 154px; }
  .header-whatsapp { min-height: 40px; justify-self: end; padding: 0 11px; font-size: 0.72rem; }
  h1 { font-size: 2.55rem; }
  h2 { font-size: 2.05rem; }
  .hero-content p:not(.eyebrow) { font-size: 0.98rem; }
  .hero-actions, .cta-actions { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .project-grid, .values-grid, .process-grid, .service-detail-grid,
  .service-list.two, .form-row.two-columns, .footer-grid { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; align-items: start; }
  .contact-form { padding: 24px 18px; }
  .footer-bottom { flex-direction: column; }
}

/* ── WhatsApp flotante ────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 22px rgba(37, 211, 102, 0.42);
  opacity: 0;
  transform: scale(0.72) translateY(12px);
  transition: opacity 280ms ease, transform 280ms ease, background 180ms ease, box-shadow 180ms ease;
  pointer-events: none;
}

.wa-float.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.wa-float:hover {
  background: #1ebe5d;
  transform: scale(1.1) translateY(0);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.55);
}

.wa-float svg {
  flex-shrink: 0;
}

@media (max-width: 620px) {
  .wa-float {
    bottom: 20px;
    right: 18px;
    width: 50px;
    height: 50px;
  }
}

/* ── Page loader ──────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  background: var(--ink);
  transition: opacity 700ms ease, visibility 700ms ease;
  animation: loaderAutoHide 100ms ease 3000ms forwards;
}

@keyframes loaderAutoHide {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 210px;
  max-width: 58vw;
  filter: brightness(0) invert(1);
  opacity: 0;
  animation: loaderLogoIn 700ms ease 150ms forwards;
}

.loader-bar {
  width: 52px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--taupe);
  transform: scaleX(0);
  transform-origin: left;
  animation: loaderBarFill 1000ms cubic-bezier(0.4, 0, 0.2, 1) 450ms forwards;
}

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

@keyframes loaderBarFill {
  to { transform: scaleX(1); }
}
