/* RUBAL Productions & Management */
:root {
  --azul: #4D66C3;
  --naranja: #F48B58;
  --rojo: #C8323A;
  --rosa: #F2B5C8;
  --marron: #74452B;
  --celeste: #8FBCE3;
  --papel: #FFF7EE;
  --beige: #F5EADB;
  --tinta: #2A160C;
  --serif: 'Bodoni Moda', Georgia, serif;
  --sans: 'Syne', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--papel);
  color: var(--marron);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-optical-sizing: none;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.08; font-optical-sizing: none; color: var(--azul); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.55rem; }
.lede { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.35rem; line-height: 1.45; }
p + p { margin-top: 1em; }
.measure { max-width: 62ch; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
section { padding: 96px 0; }
.beige { background: var(--beige); }

/* alignment rhythm */
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-center .measure { margin-inline: auto; }
.align-right { text-align: right; }
.align-right .measure { margin-left: auto; }

/* pattern bands */
.band { height: 34px; }
.band-stripes { background: repeating-linear-gradient(90deg, var(--naranja) 0 34px, var(--papel) 34px 68px); }
.band-checker { background: repeating-conic-gradient(var(--rojo) 0 25%, var(--rosa) 0 50%) 0 0 / 34px 34px; }
.band-dots { background: radial-gradient(circle, var(--marron) 28%, transparent 30%) 0 0 / 22px 22px, var(--celeste); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--papel); border-bottom: 1px solid #EBDDC9; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 8px; list-style: none; }
.nav a {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: 9px 18px; border-radius: 40px; border: 1.5px solid transparent;
}
.nav a:hover { border-color: var(--azul); }
.nav a[aria-current="page"] { background: var(--azul); color: var(--papel); }
.menu-btn { display: none; background: none; border: 1.5px solid var(--azul); color: var(--azul); border-radius: 40px; padding: 8px 16px; font: 600 .95rem var(--sans); cursor: pointer; }

/* buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 13px 28px; border-radius: 40px; background: var(--naranja); color: var(--marron);
  border: 2px solid var(--naranja); cursor: pointer; font-family: var(--sans);
}
.btn:hover { background: transparent; }
.btn-blue { background: var(--azul); border-color: var(--azul); color: var(--papel); }
.btn-blue:hover { color: var(--azul); }

/* hero */
.hero { padding: 80px 0 90px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
.hero-logo { width: min(720px, 100%); }
.hero-tag { margin-top: 34px; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; color: var(--rojo); }
.hero-seal { position: absolute; right: 0; top: -20px; width: clamp(130px, 18vw, 230px); transform: rotate(-10deg); }

/* split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.photo { border-radius: 300px 300px 8px 8px; overflow: hidden; aspect-ratio: 9 / 11; background: var(--rosa); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.role { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--rojo); margin: 6px 0 18px; }
.partner + .partner { margin-top: 96px; }
.partner .btn { margin-top: 26px; }

/* services teaser */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; text-align: left; }
.trio > div { padding: 30px; border-radius: 10px; }
.trio h3 { margin-bottom: 10px; }
.t-azul { background: var(--azul); color: var(--papel); }
.t-rosa { background: var(--rosa); }
.t-rosa h3 { color: var(--rojo); }
.t-celeste { background: var(--celeste); }
.t-celeste h3 { color: var(--marron); }
.t-azul h3 { color: var(--naranja); }

/* artists */
.artist { padding: 88px 0; }
.artist:nth-child(even) { background: var(--beige); }
.artist .meta { font-family: var(--serif); font-style: italic; color: var(--azul); font-size: 1.2rem; margin: 6px 0 18px; }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.works figure { margin: 0; }
.works img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; width: 100%; }
.works figcaption { font-size: .85rem; margin-top: 8px; }
.empty-note { border: 2px dashed var(--naranja); border-radius: 10px; padding: 28px; }

/* productions */
.lines { display: grid; gap: 0; }
.line-item { padding: 64px 0; border-top: 1px solid #E5D6C1; }
.line-item h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; text-align: left; }
.project img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; width: 100%; }
.project h3 { font-size: 1.3rem; margin: 14px 0 4px; }
.project .kind { font-family: var(--serif); font-style: italic; color: var(--rojo); }

/* contact */
.form { display: grid; gap: 20px; max-width: 640px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--marron);
  background: #FFFDF9; border: 1.5px solid #D9C7AE; border-radius: 8px; padding: 13px 15px;
}
.field input:focus, .field textarea:focus { border-color: var(--azul); outline: none; box-shadow: 0 0 0 3px #4D66C333; }
.field textarea { min-height: 200px; resize: vertical; }
.counter { font-size: .85rem; text-align: right; margin-top: 4px; }
.counter.limit { color: var(--rojo); font-weight: 700; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.contact-side { text-align: right; }
.contact-side img { width: 170px; margin-left: auto; margin-bottom: 26px; }
.contact-side a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--naranja); }

/* bio */
.bio-hero { padding: 80px 0; }
.bio-body { max-width: 66ch; }
.bio-body p { margin-top: 1em; }
.quote { font-family: var(--serif); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--azul); line-height: 1.2; }
.back { display: inline-block; margin-top: 40px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--naranja); }

/* footer */
.site-footer { background: var(--azul); color: var(--papel); padding: 70px 0 40px; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: center; }
.site-footer img { width: 92px; }
.foot-tag { font-family: var(--serif); font-weight: 800; font-size: 1.7rem; }
.foot-contact { text-align: right; line-height: 1.9; }
.foot-contact a { text-decoration: none; border-bottom: 2px solid var(--naranja); font-weight: 700; }
.foot-small { grid-column: 1 / -1; font-size: .85rem; border-top: 1px solid #FFF7EE55; padding-top: 22px; margin-top: 10px; }

/* responsive */
@media (max-width: 860px) {
  section { padding: 70px 0; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .trio, .projects { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr 1fr; }
  .align-right, .contact-side, .foot-contact { text-align: left; }
  .contact-side img { margin-left: 0; }
  .hero-seal { position: static; margin-top: 36px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; background: var(--papel); padding: 16px 24px 24px; border-bottom: 1px solid #EBDDC9; }
  .nav.open { display: flex; }
  .site-header .wrap { position: relative; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* photo sizing */
.split .photo { width: 100%; max-width: 440px; }
.split:not(.reverse) .photo { justify-self: start; }
.split.reverse .photo { justify-self: end; }
@media (max-width: 860px) { .split .photo, .split.reverse .photo { justify-self: start; max-width: 360px; } }

/* founders' quotes (first person) */
.fquote { margin: 34px 0 0; }
.fquote p { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.4; color: var(--azul); }
.fquote cite { display: block; margin-top: 14px; font-style: normal; font-family: var(--sans); font-weight: 700; font-size: .95rem; color: var(--rojo); }
.quote + cite { display: block; margin-top: 14px; font-style: normal; font-weight: 700; color: var(--rojo); }

/* language switcher */
.header-right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; list-style: none; border: 1.5px solid var(--naranja); border-radius: 40px; padding: 3px; }
.lang a { display: inline-block; text-decoration: none; font-weight: 700; font-size: .8rem; padding: 5px 10px; border-radius: 40px; color: var(--marron); }
.lang a[aria-current="true"] { background: var(--naranja); color: var(--marron); }
.lang a:hover { text-decoration: underline; }
@media (max-width: 860px) { .header-right { gap: 8px; } .lang a { padding: 5px 8px; } }
@media (max-width: 420px) { .brand img { height: 28px; } .menu-btn { padding: 7px 12px; } .lang a { padding: 4px 7px; font-size: .75rem; } }


/* ===== Reglas de color por pareja =====
   Título naranja -> subtítulo azul; rojo/rosa; marrón/celeste.
   Los textos de cuerpo van siempre en marrón o en azul. */
.hero-tag { color: var(--azul); }
.name, .bio-hero h1, .artist h2 { color: var(--naranja); }
.name { font-size: 2.3rem; }
.role { color: var(--azul); }
.role-lg { font-size: 1.4rem; }
.project h3 { color: var(--naranja); }
.project .kind { color: var(--azul); }
.fquote cite, .quote + cite { color: var(--naranja); }
.t-naranja { background: var(--papel); border: 2px solid var(--naranja); color: var(--marron); }
.t-naranja h3 { color: var(--naranja); }
.t-naranja a { color: var(--azul); }
.t-rosa, .t-celeste { color: var(--marron); }
.site-footer { background: var(--celeste); color: var(--marron); }
.foot-contact a { border-bottom-color: var(--azul); }
.foot-small { border-top-color: var(--marron); }

/* ===== Teléfonos ===== */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  section { padding: 56px 0; }
  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.95rem; }
  h3 { font-size: 1.4rem; }
  .lede { font-size: 1.15rem; }
  .band { height: 22px; background-size: 22px 22px; }
  .band-stripes { background: repeating-linear-gradient(90deg, var(--naranja) 0 22px, var(--papel) 22px 44px); }
  .site-header .wrap { height: 64px; }
  .nav { top: 64px; }
  .nav a { display: block; padding: 14px 6px; font-size: 1.05rem; border-radius: 0; border: 0; border-bottom: 1px solid #EBDDC9; }
  .nav a[aria-current="page"] { background: none; color: var(--azul); font-weight: 800; }
  .hero { padding: 44px 0 52px; }
  .hero-logo { width: 100%; }
  .hero-tag { margin-top: 22px; font-size: 1.35rem; }
  .split { gap: 26px; }
  .split .photo, .split.reverse .photo { max-width: 100%; justify-self: stretch; border-radius: 220px 220px 8px 8px; }
  .partner + .partner { margin-top: 64px; }
  .name { font-size: 1.9rem; }
  .role-lg { font-size: 1.15rem; }
  .btn { display: block; text-align: center; width: 100%; }
  .partner .btn { margin-top: 22px; }
  .trio { margin-top: 28px; gap: 16px; }
  .trio > div { padding: 24px; }
  .fquote p { font-size: 1.2rem; }
  .quote { font-size: 1.55rem; }
  .artist { padding: 56px 0; }
  .works { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  .works figcaption { font-size: .78rem; }
  .line-item { padding: 40px 0; }
  .projects { gap: 34px; margin-top: 28px; }
  .contact-side { border-top: 1px solid #EBDDC9; padding-top: 28px; }
  .contact-side img { width: 96px; }
  .field textarea { min-height: 170px; }
  .bio-hero { padding: 40px 0 56px; }
  .site-footer { padding: 48px 0 32px; }
  .site-footer .wrap { gap: 20px; }
  .site-footer img { width: 70px; }
  .foot-tag { font-size: 1.45rem; }
}
