@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  --cream: #f4ece3;
  --paper: #fbf1e8;
  --burgundy: #3f171c;
  --rose: #eacbd0;
  --wine: #663034;
  --muted: #705556;
  --rule: #bda7a2;
  --content: 1320px;
  --gutter: max(6%, calc((100% - var(--content)) / 2));
  --section-space: clamp(76px, 8vw, 116px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--cream); color: var(--burgundy); font-family: Montserrat, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; }
::selection { color: var(--paper); background: var(--wine); }
.wrap { width: min(var(--content), 88%); margin-inline: auto; }
.eyebrow { font-size: 11px; font-weight: 600; line-height: 1.7; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
h2, h3 { text-wrap: balance; }
.line { display: none; }

/* Cabecera y presentación */
header.wrap { width: 100%; background: var(--cream); color: var(--burgundy); }
.nav { width: min(var(--content), 88%); min-height: 88px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 12px; border-bottom: 1px solid #3f171c26; }
.logo { display: block; flex-shrink: 0; line-height: 0; }
.logo img { width: 140px; }
.links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 8px 30px; font-size: 11px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.links a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.links a:hover { text-decoration: underline; }
.hero-shell { background: var(--burgundy); color: var(--paper); }
.hero { min-height: 690px; padding-block: 110px 78px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.hero > div:first-child { width: 100%; }
.hero .eyebrow { margin-inline: auto; white-space: nowrap; }
.hero h1 { margin: 30px auto 0; max-width: 780px; font-size: clamp(32px, 4.7vw, 64px); font-weight: 700; letter-spacing: -.045em; line-height: 1.1; }
.welcome-title { display: block; }
.hero-brand { display: block; width: min(560px, 90%); margin: 22px auto 0; line-height: 0; }
.hero-brand img { width: 100%; }
.hero-bottom { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 30px; }
.hero-bottom p { max-width: 440px; margin: 0; font-size: 15px; line-height: 1.8; color: #f3e3dd; text-wrap: pretty; }
.arrow { width: 55px; height: 55px; display: grid; place-items: center; border: 1px solid #eed3d480; border-radius: 50%; font-size: 22px; transition: background .2s, border-color .2s; }
.arrow:hover { background: #fbf1e812; border-color: var(--paper); }

/* Sobre mí: texto y retrato */
.about { --portrait-height: clamp(650px, 48vw, 800px); width: 100%; padding: 55px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--portrait-height) * .626); gap: 0; background: var(--rose); overflow: hidden; }
.about-copy { align-self: center; justify-self: center; width: min(88%, 660px); padding: 40px 0 90px; }
.about-copy h2 { margin: 28px 0; font-size: clamp(58px, 6.7vw, 96px); line-height: 1; letter-spacing: -.065em; font-weight: 600; }
.about-copy h2 em { font-family: Georgia, serif; font-weight: 400; }
.about-copy p { max-width: 610px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.8; color: #4d3032; }
.about-copy p:last-child { margin-bottom: 0; }
.portrait { position: relative; min-height: var(--portrait-height); overflow: hidden; }
.portrait img { position: absolute; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: contain; object-position: right bottom; }

/* Servicios desplegables */
.offerings { padding-block: var(--section-space); }
.offerings-heading { margin: 28px 0 56px; text-align: center; }
.offerings-heading h2 { max-width: 1050px; margin: 0 auto; font-size: clamp(38px, 5.6vw, 78px); line-height: 1.06; letter-spacing: -.055em; font-weight: 600; }
.service-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 26px; }
.service-card { min-width: 0; background: #42191e; color: #fff4ed; }
.service-card:nth-child(even) { background: #e6c5cb; color: #42191e; }
.service-card summary { cursor: pointer; list-style: none; }
.service-card summary::-webkit-details-marker { display: none; }
.service-card-inner { min-height: 210px; padding: 32px; display: flex; align-items: center; justify-content: center; }
.service-card-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.service-card-copy strong { max-width: 480px; font-size: clamp(21px, 2.4vw, 32px); line-height: 1.2; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.service-open { display: inline-block; font-size: 24px; line-height: 1; transition: transform .2s; }
.service-card[open] .service-open { transform: rotate(90deg); }
.service-card-description { padding: 0 32px 30px; font-size: 15px; line-height: 1.8; }
.service-card-description p { margin: 0; padding-top: 22px; border-top: 1px solid currentColor; }

/* Formación y experiencia */
.profile-section { padding-block: var(--section-space) 0; background: var(--burgundy); color: var(--paper); }
.profile-heading { margin: 26px 0 48px; }
.profile-heading h2 { margin: 0; font-size: clamp(38px, 5.6vw, 78px); line-height: 1.06; letter-spacing: -.055em; font-weight: 600; }
.profile-heading p { max-width: 720px; margin: 22px 0 0; line-height: 1.8; color: #ead4d0; }
.training-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8%; align-items: stretch; }
.training-list { border-top: 1px solid #fff1e859; }
.training-list > div { padding: 23px 0; border-bottom: 1px solid #fff1e859; }
.training-list h3 { margin: 0 0 8px; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.35; font-weight: 600; letter-spacing: -.025em; text-wrap: pretty; }
.training-list p { margin: 0; color: #ead4d0; font-size: 14px; line-height: 1.6; }
.training-photo { position: relative; min-height: 0; overflow: hidden; }
.training-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.experience { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8%; align-items: center; margin-top: var(--section-space); padding: var(--section-space) var(--gutter); background: var(--rose); color: var(--burgundy); }
.experience h2 { margin: 24px 0 0; font-size: clamp(38px, 4.7vw, 68px); line-height: 1.05; letter-spacing: -.05em; font-weight: 600; }
.experience p { margin: 0 0 20px; color: #4d3032; font-size: 16px; line-height: 1.85; }
.experience p:last-child { margin-bottom: 0; }

/* Sistemas y ejemplos ampliables */
.systems-section { padding-block: var(--section-space); }
.systems-section h2 { margin: 28px 0 42px; font-size: clamp(38px, 5.3vw, 76px); line-height: 1.08; letter-spacing: -.05em; font-weight: 600; }
.systems-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 6%; }
.systems-section p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.systems-intro p + p { margin-top: 24px; }
.clothing-example { margin: 0; padding: 20px; border: 1px solid var(--rule); background: #ead4d044; }
.clothing-example a, .system-example a { display: block; cursor: zoom-in; }
.clothing-example img, .system-example img { width: 100%; height: auto; }
.clothing-example figcaption { margin-top: 18px; font-size: 13px; font-weight: 600; line-height: 1.7; }
.clothing-example figcaption span { display: block; font-weight: 400; color: var(--muted); }
.gastro-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8%; align-items: center; margin-top: 66px; padding-top: 40px; border-top: 1px solid var(--rule); }
.gastro-copy h3 { margin: 0; font-size: clamp(34px, 4.3vw, 62px); line-height: 1.08; letter-spacing: -.045em; font-weight: 600; text-transform: uppercase; }
.system-example { margin: 40px 0 0; }
.system-example img { border: 1px solid var(--rule); }
.system-example figcaption { margin-top: 16px; font-size: 11px; line-height: 1.7; letter-spacing: .06em; }

/* Proyectos web */
.web-portfolio { padding-block: var(--section-space); background: var(--rose); }
.web-portfolio h2 { max-width: 1050px; margin: 28px 0 50px; font-size: clamp(32px, 4.3vw, 62px); line-height: 1.15; letter-spacing: -.045em; font-weight: 600; }
.web-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.web-project { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px; border: 1px solid #b18b92; background: #f4ece344; transition: background .2s; }
.web-preview { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid #b18b9277; }
.web-project-domain { font-size: 12px; line-height: 1.6; letter-spacing: .02em; overflow-wrap: anywhere; }
.web-project strong { font-size: clamp(26px, 3vw, 42px); line-height: 1.15; letter-spacing: -.04em; font-weight: 600; }
.web-project-visit { margin-top: auto; display: flex; align-items: center; gap: 20px; font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.web-project-visit span { font-size: 24px; }

/* Marcas y cierre */
.brands { padding-block: var(--section-space); }
.brand-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 26px; }
.brand-top h2 { margin: 0; font-size: clamp(40px, 5.9vw, 84px); line-height: 1.04; letter-spacing: -.06em; font-weight: 600; }
.brand-top p { max-width: 330px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.brand-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 56px; border-block: 1px solid var(--rule); }
.brand { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 20px; padding: 30px 16px; border-right: 1px solid var(--rule); text-align: center; font-size: 11px; line-height: 1.6; font-weight: 600; letter-spacing: .08em; }
.brand:last-child { border-right: 0; }
.brand-logo-link { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: min(164px, 100%); aspect-ratio: 1; border: 1px solid var(--rule); border-radius: 50%; overflow: hidden; background: #fff; }
.brand-logo-link img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo-link.burger { background: #303323; }
.brand-logo-link.burger img { width: 78%; height: 78%; }
.closing { padding-block: var(--section-space); background: var(--wine); color: #fff8ef; }
.closing .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.closing h2 { margin: 24px 0 0; font-size: clamp(42px, 5.5vw, 80px); line-height: 1.07; letter-spacing: -.055em; font-weight: 600; }
.closing-contact { max-width: 400px; }
.closing p { max-width: 345px; margin: 0; color: #ead4d0; line-height: 1.8; }
.whatsapp-cta { display: inline-flex; align-items: center; justify-content: center; gap: 30px; min-height: 60px; margin-top: 28px; padding: 16px 30px; border: 1px solid var(--paper); background: var(--paper); color: var(--wine); font-size: 13px; font-weight: 700; letter-spacing: .1em; transition: background .2s; }
.whatsapp-cta span { font-size: 22px; }
.whatsapp-cta:hover { background: var(--rose); }
footer { padding-block: 30px; background: #301316; color: #f8e9e3; font-size: 10px; letter-spacing: .1em; line-height: 1.8; text-transform: uppercase; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; }
footer .footer-credit { margin-top: 16px; justify-content: flex-end; }

@media (hover: hover) {
  .service-card summary:hover .service-open { transform: translate(3px, -3px); }
  .service-card[open] summary:hover .service-open { transform: rotate(90deg); }
  .web-project:hover { background: var(--cream); }
  .brand-logo-link:hover { outline: 1px solid var(--wine); outline-offset: 5px; }
}

@media (max-width: 1000px) {
  .links { gap: 8px 18px; }
  .brand { padding-inline: 12px; font-size: 10px; }
  .closing .wrap { gap: 32px; }
}

@media (max-width: 800px) {
  .nav { min-height: 80px; gap: 24px; }
  .logo img { width: 120px; }
  .links { max-width: 440px; font-size: 10px; gap: 0 18px; }
  .hero { min-height: 600px; padding-block: 84px 70px; }
  .hero h1 { font-size: clamp(28px, 5.8vw, 46px); }
  .hero .eyebrow { font-size: 10px; }
  .about { grid-template-columns: 1fr; gap: 0; padding-top: 70px; padding-right: 0; padding-left: var(--gutter); }
  .about-copy { justify-self: start; width: 100%; padding: 0 6vw 20px 0; }
  .about-copy h2 { font-size: clamp(48px, 10vw, 74px); }
  .about-copy p { font-size: 18px; }
  .portrait { min-height: 0; height: clamp(400px, 70vw, 560px); }
  .service-cards, .training-layout, .experience, .systems-overview, .gastro-copy, .web-projects { grid-template-columns: 1fr; }
  .service-cards { gap: 22px; }
  .service-card-inner { min-height: 185px; }
  .service-card-copy strong { font-size: clamp(22px, 4vw, 30px); }
  .training-layout { gap: 32px; }
  .training-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .experience { gap: 28px; }
  .systems-overview { gap: 32px; }
  .systems-section h2 br { display: none; }
  .gastro-copy { gap: 24px; margin-top: 48px; }
  .gastro-copy h3 { font-size: clamp(34px, 7vw, 50px); }
  .web-project { gap: 20px; }
  .brand-top { display: block; }
  .brand-top p { max-width: 480px; margin-top: 24px; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .brand { padding: 28px 16px; font-size: 11px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .brand:nth-child(odd) { border-right: 1px solid var(--rule); }
  .brand:last-child { grid-column: 1 / -1; border: 0; }
  .closing .wrap { flex-direction: column; align-items: flex-start; gap: 32px; }
}

@media (max-width: 480px) {
  .nav { gap: 16px; padding-block: 16px; }
  .links { max-width: 240px; font-size: 9px; letter-spacing: .03em; gap: 0 10px; }
  .links a { min-height: 38px; }
  .logo img { width: 92px; }
  .hero { min-height: 520px; padding-block: 66px 58px; }
  .hero .eyebrow { font-size: clamp(7.5px, 2.2vw, 10px); line-height: 1.9; letter-spacing: .035em; }
  .hero-brand { width: 100%; }
  .hero-bottom p { font-size: 14px; }
  .eyebrow { font-size: 10px; letter-spacing: .12em; }
  .about-copy p { font-size: 17px; }
  .offerings-heading { margin-bottom: 38px; }
  .service-card-inner { min-height: 180px; padding: 26px 22px; }
  .service-card-description { padding: 0 24px 26px; }
  .profile-heading { margin-bottom: 34px; }
  .training-list > div { padding-block: 20px; }
  .clothing-example { padding: 14px; }
  .web-project { padding: 18px; }
  .brand-logo-link { width: 125px; }
  .closing h2 { font-size: clamp(40px, 10vw, 52px); }
  footer .wrap { flex-wrap: wrap; gap: 10px 20px; }
  footer .footer-credit { justify-content: flex-start; }
}

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