/* =========================================================
   Ana Muñoz interiores — estilos
   Réplica de la versión Wix (colores, tipografías y medidas)
   ========================================================= */

:root {
  --gris: #f4f4f4;        /* fondo cabecera / hero / bloques */
  --gris-medio: #6e6e6e;  /* menú activo / fondo imagen hero */
  --gris-borde: #919191;  /* borde campo email pie */
  --gris-campo: #e0e0e0;  /* campos formulario contacto */
  --negro: #0f0e0e;       /* texto */
  --blanco: #ffffff;
  --amarillo: #f0ff00;    /* botón Enviar de contacto */

  --f-poppins: 'Poppins', sans-serif;
  --f-menu: 'Montserrat', 'Proxima Nova', sans-serif;
  --f-form: 'Nunito Sans', 'Avenir', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--negro);
  font-family: var(--f-poppins);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blanco); color: #116dff; padding: 10px 18px; border-radius: 24px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------- Cabecera */
.site-header {
  background: var(--gris);
  height: 138px;
  display: flex;
  align-items: center;
  padding: 0 45px 0 44px;
  position: relative;
  z-index: 20;
}
.logo img { width: 206px; height: auto; }
.header-right { margin-left: auto; display: flex; align-items: center; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; }
.nav a {
  display: block;
  padding: 0 5px;
  margin: 0 5px;
  font-family: var(--f-menu);
  font-size: 15px;
  line-height: 24px;
  color: var(--negro);
  text-decoration: none;
  transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gris-medio); }
.social { list-style: none; margin: 0 0 0 55px; padding: 0; display: flex; gap: 7px; }
.social a, .social span { display: block; width: 20px; height: 20px; color: var(--negro); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social a:hover { opacity: .65; }

.menu-toggle { display: none; }

/* ---------------------------------------------------------- Inicio: hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 41%;
  min-height: 883px;
  background: var(--gris);
}
.hero-text { padding: 110px 40px 80px 8vw; }
.hero h1 {
  max-width: 549px;
  font-weight: 700;
  font-size: 53px;
  line-height: 1.25;
}
.hero h1 .tight { letter-spacing: -0.02em; }
.hero-img { background: var(--gris-medio); position: relative; overflow: hidden; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------- Inicio: sobre mí */
.about { padding-top: 80px; }
.about-title {
  font-weight: 700;
  font-size: 50px;
  line-height: 1.1;
  padding-left: 6.25%;
  margin-bottom: 64px;
}
.about-row { display: grid; grid-template-columns: 320px 1fr; }
.about-img { min-height: 733px; position: relative; overflow: hidden; }
.about-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-text { padding: 30px 40px 30px 136px; max-width: 864px; }
.about-text p { margin-bottom: 22.4px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text b { font-weight: 700; }
.about-text .semi { font-weight: 600; }
.about-text .cta { text-align: center; }
.about-text .cta a { text-decoration: underline; }

/* ---------------------------------------------------------- Inicio: posts */
.home-blog { padding: 90px 20px 64px; }
.home-blog h3 {
  text-align: center;
  font-weight: 700;
  font-size: 50px;
  line-height: 1.1;
  margin-bottom: 66px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 292px);
  gap: 32px;
  justify-content: center;
}
.card { border: 1px solid var(--gris-campo); background: var(--blanco); }
.card a { display: block; text-decoration: none; height: 100%; }
.card img { width: 100%; aspect-ratio: 292 / 164; object-fit: cover; }
.card h2 {
  font-family: var(--f-menu);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  padding: 26px 24px 48px;
}
.card a:hover h2 { color: var(--gris-medio); }

/* ---------------------------------------------------------- Páginas interiores */
.page { padding: 54px 60px 80px; }
.page h1 {
  font-weight: 700;
  font-size: 50px;
  line-height: 1.5;
}

/* Servicios */
.steps { list-style: none; margin: 99px 0 0; padding: 0 0 0 170px; max-width: 877px; }
.steps li + li { margin-top: 110px; }
.steps h2 {
  font-weight: 200;
  font-size: 30px;
  line-height: 1.1;
}
.steps .n { font-weight: 600; }
.steps b { font-weight: 700; }
.steps .xb { font-weight: 300; }

/* Blog */
.blog-list { max-width: 940px; margin: 119px auto 0; }
.blog-item + .blog-item { margin-top: 32px; }
.blog-item-img img { width: 100%; height: 411px; object-fit: cover; }
.blog-item-body { background: var(--gris); padding: 38px 48px 48px; min-height: 310px; }
.meta { font-size: 12px; font-weight: 300; display: flex; align-items: center; flex-wrap: wrap; }
.dot { width: 2px; height: 2px; background: var(--negro); border-radius: 50%; margin: 0 8px; }
.blog-item h2 { font-weight: 600; font-size: 28px; line-height: 1.4; margin: 34px 0 18px; }
.blog-item h2 a { text-decoration: none; }
.blog-item h2 a:hover { color: var(--gris-medio); }
.excerpt { font-size: 16px; line-height: 1.5; }

/* Contacto */
.contacto-head { position: relative; padding: 51px 60px 0; height: 270px; }
.contacto-head .band {
  position: absolute; left: 0; top: 110px;
  width: 62.5%; height: 160px;
  background: var(--gris);
}
.contacto-head h1 {
  position: relative;
  font-weight: 700;
  font-size: 80px;
  line-height: 1.5;
}
.contacto-body { padding: 75px 60px 90px 230px; max-width: 900px; }
.contacto-body h2 { font-weight: 200; font-size: 50px; line-height: 1.1; margin-bottom: 43px; }
.contacto-body p { font-size: 15px; line-height: 2.2; max-width: 618px; }
.contacto-body .gap { margin-top: 33px; }
.contacto-body .lead { margin: 40px 0 28px; line-height: 1.5; }

.contact-form { max-width: 510px; }
.contact-form label { display: block; font-size: 15px; font-weight: 200; line-height: 1; margin-bottom: 9px; }
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 23px;
  border: 0;
  border-radius: 0;
  background: var(--gris-campo);
  color: var(--negro);
  font: 300 15px/1.4 var(--f-poppins);
  padding: 10px 12px;
}
.contact-form input { height: 44px; }
.contact-form textarea { height: 127px; resize: vertical; }
.contact-form button {
  width: 100%;
  height: 52px;
  border: 0;
  background: var(--amarillo);
  color: #000;
  font: 400 15px var(--f-poppins);
  cursor: pointer;
}
.contact-form button:hover { filter: brightness(.95); }

/* ---------------------------------------------------------- Post */
.post-wrap { max-width: 940px; margin: 0 auto; padding: 40px 20px 80px; }
.post-back { font-size: 14px; margin-bottom: 24px; }
.post-back a { text-decoration: none; }
.post-back a:hover { text-decoration: underline; }
.post { border: 1px solid var(--gris-campo); padding: 56px 72px 64px; }
.post-head .meta + .meta { margin-top: 4px; }
.post-head h1 { font-weight: 600; font-size: 32px; line-height: 1.35; margin: 26px 0 32px; }
.post-body { font-size: 16px; line-height: 1.75; }
.post-body p { margin-bottom: 16px; }
.post-body h2 { font-weight: 600; font-size: 20px; line-height: 1.4; margin: 36px 0 10px; }
.post-body strong { font-weight: 700; }
.post-img { margin: 0 0 32px; }
.post-img--single img { margin: 0 auto; width: 555px; }
.post-gallery { display: grid; gap: 8px; margin: 8px 0 36px; }
.post-gallery--3 { grid-template-columns: repeat(3, 1fr); }
.post-gallery--2 { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
.post-gallery img { width: 100%; height: 340px; object-fit: cover; }

.recent { margin-top: 48px; }
.recent-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--gris-campo); padding-bottom: 12px; margin-bottom: 24px; }
.recent-head h2 { font-weight: 400; font-size: 16px; }
.recent-head a { font-size: 14px; text-decoration: none; }
.recent-head a:hover { text-decoration: underline; }
.recent-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.recent-item { text-decoration: none; border: 1px solid var(--gris-campo); display: block; }
.recent-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.recent-item span { display: block; padding: 18px 20px 26px; font-family: var(--f-menu); font-size: 18px; }
.recent-item:hover span { color: var(--gris-medio); }

/* ---------------------------------------------------------- Pie */
.site-footer {
  background: var(--blanco);
  padding: 43px 20px 31px;
  text-align: center;
}
.footer-title { font-weight: 600; font-size: 30px; line-height: 1.5; }
.footer-form { width: 578px; max-width: 100%; margin: 40px auto 0; text-align: left; }
.footer-form label { display: block; font-family: var(--f-form); font-size: 14px; margin-bottom: 4px; }
.footer-form input[type="email"] {
  display: block; width: 100%; height: 36px;
  border: 2px solid var(--gris-borde); border-radius: 0;
  background: transparent;
  font: 300 14px var(--f-form); color: #000;
  padding: 3px 10px;
}
.footer-form button {
  display: block; width: 100%; height: 35px; margin-top: 11px;
  border: 0; border-radius: 0;
  background: var(--gris);
  color: #000;
  font: 400 14px var(--f-poppins);
  cursor: pointer;
}
.footer-form button:hover { background: #e9e9e9; }
.footer-logo { width: 206px; height: auto; margin: 56px auto 0; }
.credit { font-size: 12px; font-weight: 200; margin-top: 0; }
.credit strong { font-weight: 700; }

/* ---------------------------------------------------------- Formularios: estado */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-ok, .form-error { font-size: 15px; font-weight: 600; text-align: center; margin-top: 14px; }
.form-error { color: #b00020; font-weight: 400; }
.js-form.sending button { opacity: .6; pointer-events: none; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--gris-medio); outline-offset: 2px;
}

/* ---------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
  .hero h1 { font-size: 44px; }
  .about-text { padding-left: 60px; }
  .steps { padding-left: 80px; }
  .contacto-body { padding-left: 120px; }
}

@media (max-width: 900px) {
  .site-header { height: 100px; padding: 0 20px; }
  .logo img { width: 150px; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    margin-left: auto; width: 44px; height: 44px; padding: 10px;
    background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--negro); transition: transform .25s, opacity .25s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .header-right {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--gris);
    flex-direction: column; align-items: flex-start;
    padding: 10px 20px 28px;
    border-top: 1px solid var(--gris-campo);
  }
  .header-right.open { display: flex; }
  .nav { flex-direction: column; width: 100%; }
  .nav a { font-size: 20px; line-height: 1; padding: 14px 0; margin: 0; }
  .social { margin: 18px 0 0; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 56px 20px 48px; }
  .hero h1 { font-size: 34px; }
  .hero-img { height: 70vw; max-height: 560px; }

  .about { padding-top: 56px; }
  .about-title { font-size: 38px; padding-left: 20px; margin-bottom: 32px; }
  .about-row { grid-template-columns: 1fr; }
  .about-img { min-height: 0; height: 110vw; max-height: 620px; }
  .about-text { padding: 36px 20px 0; }

  .home-blog { padding-top: 64px; }
  .home-blog h3 { font-size: 34px; margin-bottom: 36px; }
  .cards { grid-template-columns: minmax(0, 420px); }

  .page { padding: 40px 20px 64px; }
  .page h1 { font-size: 38px; }
  .steps { padding-left: 0; margin-top: 48px; }
  .steps li + li { margin-top: 48px; }
  .steps h2 { font-size: 22px; line-height: 1.3; }

  .blog-list { margin-top: 40px; }
  .blog-item-img img { height: 56vw; }
  .blog-item-body { padding: 28px 24px 32px; min-height: 0; }
  .blog-item h2 { font-size: 22px; margin: 20px 0 12px; }

  .contacto-head { padding: 36px 20px 0; height: 180px; }
  .contacto-head .band { top: 76px; height: 104px; width: 85%; }
  .contacto-head h1 { font-size: 56px; }
  .contacto-body { padding: 48px 20px 64px; }
  .contacto-body h2 { font-size: 34px; margin-bottom: 28px; }

  .post-wrap { padding-top: 24px; }
  .post { padding: 32px 20px 40px; }
  .post-head h1 { font-size: 26px; }
  .post-gallery--3, .post-gallery--2 { grid-template-columns: 1fr; }
  .post-gallery img { height: auto; max-height: 520px; }
  .recent-list { grid-template-columns: 1fr; }

  .footer-title { font-size: 24px; line-height: 1.3; }
}
