/* Página de diseño de marca e identidad visual. */
.brands-page { background: #f2f3f4; }
.brand-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 355px;
  padding: 20px 0 18px;
  color: #fff;
  background: radial-gradient(ellipse 48% 85% at 78% 44%, rgba(255,202,0,.12), transparent 72%), radial-gradient(ellipse 45% 80% at 94% 40%, rgba(45,184,183,.1), transparent 70%), #081318;
}
.brand-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .32;
  background-image: linear-gradient(rgba(138,198,200,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(138,198,200,.08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent 4%, #000 56%, #000 100%);
}
.brand-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 760px;
  height: 760px;
  top: -180px;
  right: -360px;
  border: 1px solid rgba(101,214,209,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 58px rgba(101,214,209,.035), 0 0 0 126px rgba(101,214,209,.025), 0 0 0 205px rgba(255,202,0,.025);
  pointer-events: none;
}
.brand-hero-grid {
  display: grid;
  width: min(1180px, calc(100% - clamp(80px, 18.3vw, 260px)));
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5.5vw, 76px);
  min-height: 315px;
}
.brand-hero-copy { position: relative; z-index: 2; padding-block: 10px; }
.brand-hero-copy .eyebrow { margin-bottom: 16px; }
.brand-hero h1 {
  max-width: 600px;
  margin: 0;
  font: 680 clamp(43px, 4.65vw, 66px)/1.02 var(--display);
  letter-spacing: -.065em;
}
.brand-hero h1 em { color: var(--yellow); font-style: normal; }
.brand-hero-intro { max-width: 530px; margin: 16px 0 18px; color: #c5d0d4; font-size: 15px; line-height: 1.58; }
.brand-hero-copy .button { min-height: 38px; padding: 9px 17px; border-radius: 8px; font-size: 12px; }
.brand-hero-copy .button { background: var(--yellow); color: var(--ink); box-shadow: 0 9px 30px rgba(255,202,0,.18); }
.brand-hero-copy .button:hover { background: #ffda38; }
.brand-hero-art { position: relative; display: grid; min-height: 320px; place-items: center; isolation: isolate; }
.brand-hero-orbit { position: absolute; width: 330px; height: 330px; border: 1px solid rgba(255,202,0,.2); border-radius: 50%; transform: scaleX(1.08); }
.brand-hero-orbit--two { width: 430px; height: 430px; border-color: rgba(101,214,209,.13); transform: scaleX(1.03) rotate(-22deg); }
.brand-hero-mark {
  position: relative;
  left: 5px;
  z-index: 1;
  display: grid;
  width: min(100%, clamp(252px, 18.75vw, 300px));
  aspect-ratio: 1 / .91;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,224,80,.6);
  border-radius: 19px;
  background: radial-gradient(ellipse at 50% 48%, rgba(255,202,0,.18), transparent 63%), linear-gradient(145deg, rgba(15,37,42,.94), rgba(8,17,21,.94));
  box-shadow: 0 0 0 1px rgba(255,202,0,.08), 0 26px 70px rgba(0,0,0,.34), 0 0 65px rgba(255,202,0,.16);
  transform: perspective(1000px) rotateY(-7deg) rotateX(2deg);
  transition: transform .35s ease, box-shadow .35s ease;
}
.brand-hero-mark:hover { transform: perspective(1000px) rotateY(0) translateY(-4px); box-shadow: 0 30px 80px rgba(0,0,0,.42), 0 0 76px rgba(255,202,0,.22); }
.brand-hero-mark > img { position: relative; z-index: 1; width: min(74%, 220px); height: auto; object-fit: contain; }
.brand-hero-mark-light { position: absolute; inset: 0; background: radial-gradient(ellipse 200px 180px at 50% 46%, rgba(255,202,0,.18), transparent 74%); animation: brand-mark-breathe 6.5s ease-in-out infinite; }
.brand-hero-mark-caption { position: absolute; z-index: 2; bottom: 18px; color: #cbd4d5; font-size: 9px; letter-spacing: .24em; }
.brand-hero-mark-caption i { display: inline-block; width: 15px; height: 1px; margin: 0 5px 3px; background: var(--yellow); }
.brand-portfolio { padding: clamp(38px, 4vw, 56px) 0 clamp(34px, 4vw, 50px); background: #f2f3f4; }
.brand-portfolio-heading { display: grid; grid-template-columns: 1fr; align-items: end; gap: 20px; margin-bottom: 32px; padding-inline: clamp(0px, 3.4vw, 35px); }
.brand-portfolio-heading .eyebrow { margin-bottom: 16px; }
.brand-section-rule { display: inline-block; width: 36px; height: 3px; margin-right: 11px; border-radius: 3px; background: var(--yellow); box-shadow: 0 0 16px rgba(255,202,0,.4); vertical-align: middle; }
.brand-portfolio-heading h2 { max-width: none; margin: 0; color: #13191d; font: 680 clamp(35px, 3.8vw, 56px)/1.05 var(--display); letter-spacing: -.06em; }
.brand-portfolio-heading h2 em { color: #a37400; font-style: normal; }
.brand-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(270px, 23.3vw, 318px); gap: clamp(34px, 2.5vw, 40px); }
.brand-card {
  --brand-accent: #ffca00;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(155px, .76fr);
  align-items: center;
  gap: 20px;
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: clamp(25px, 2.8vw, 38px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 19px;
  background: #11191d;
  color: #fff;
  box-shadow: 0 15px 38px rgba(12,23,28,.12);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.brand-card::before, .brand-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.brand-card::before { z-index: -2; background: var(--brand-background) center / cover no-repeat; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.brand-card::after {
  z-index: -1;
  opacity: .9;
  background: linear-gradient(90deg, rgba(3,9,12,.03) 22%, rgba(3,9,12,.22) 47%, rgba(3,9,12,.88) 100%), radial-gradient(ellipse 220px 180px at var(--field-x, 75%) var(--field-y, 50%), var(--brand-glow, rgba(255,202,0,.2)), transparent 76%);
  transition: opacity .28s ease;
}
.brand-card:hover { z-index: 2; transform: translateY(-5px); border-color: var(--brand-edge, rgba(255,202,0,.72)); box-shadow: 0 22px 48px rgba(12,23,28,.2), 0 0 26px var(--brand-shadow, rgba(255,202,0,.16)); }
.brand-card:hover::before { transform: scale(1.045); }
.brand-card:hover::after { opacity: 1; }
.brand-card--chilakil { --brand-accent: #ffb000; --brand-glow: rgba(255,176,0,.22); --brand-edge: rgba(255,176,0,.78); --brand-shadow: rgba(255,176,0,.17); --brand-background: url("../img/brand-backgrounds/rey-chilakil.jpg"); }
.brand-card--ritmos { --brand-accent: #ff304d; --brand-glow: rgba(255,48,77,.24); --brand-edge: rgba(255,48,77,.76); --brand-shadow: rgba(255,48,77,.18); --brand-background: url("../img/brand-backgrounds/ritmos-de-esperanza.jpg"); }
.brand-card--galaxia { --brand-accent: #25baff; --brand-glow: rgba(37,186,255,.24); --brand-edge: rgba(37,186,255,.76); --brand-shadow: rgba(37,186,255,.17); --brand-background: url("../img/brand-backgrounds/la-galaxia.jpg"); }
.brand-card--charly { --brand-accent: #ff5529; --brand-glow: rgba(255,85,41,.22); --brand-edge: rgba(255,85,41,.76); --brand-shadow: rgba(255,85,41,.18); --brand-background: url("../img/brand-backgrounds/charly-llamas.jpg"); background: #100806; }
.brand-card-art { position: relative; z-index: 0; display: grid; align-self: stretch; min-width: 0; min-height: 0; place-items: center; }
.brand-card-art img { display: block; width: 100%; max-width: 100%; max-height: 208px; object-fit: contain; }
.brand-card--chilakil .brand-card-art img { width: min(100%, 320px); max-height: 290px; }
.brand-card--ritmos .brand-card-art img { width: min(100%, 405px); max-height: 150px; }
.brand-card--galaxia .brand-card-art img { width: min(100%, 420px); max-height: 140px; }
.brand-card--charly .brand-card-art img { width: min(100%, 300px); max-height: 200px; }
.brand-card--chilakil { padding-block: 12px; }
.brand-card--chilakil::after { background: linear-gradient(90deg, rgba(24,9,0,.01) 38%, rgba(35,12,0,.24) 68%, rgba(35,12,0,.52) 100%), radial-gradient(ellipse 220px 190px at 76% 50%, rgba(255,176,0,.12), transparent 76%); opacity: 1; }
.brand-card.brand-card--charly { grid-template-columns: minmax(0, 1.65fr) minmax(155px, .72fr); padding: 18px clamp(18px, 2vw, 28px); }
.brand-card--charly .brand-card-art img { width: min(100%, 350px); max-height: 225px; filter: sepia(.45) saturate(.62) brightness(.9); }
.brand-card--charly .brand-card-copy { padding-left: clamp(16px, 1.7vw, 22px); }
.brand-card--charly .brand-card-copy h3 { font-size: clamp(21px, 1.85vw, 25px); overflow-wrap: normal; }
.brand-card--charly::after { background: linear-gradient(90deg, rgba(3,9,12,.01) 34%, rgba(3,9,12,.16) 65%, rgba(3,9,12,.68) 100%), radial-gradient(ellipse 220px 180px at 77% 50%, rgba(255,85,41,.12), transparent 76%); opacity: .8; }
.brand-card.brand-card--ritmos { grid-template-columns: minmax(0, 1.65fr) minmax(130px, .65fr); padding-inline: clamp(22px, 2.5vw, 32px); }
.brand-card--ritmos .brand-card-art img { width: min(100%, 440px); max-height: 155px; }
.brand-card--ritmos .brand-card-copy h3 { font-size: clamp(21px, 1.8vw, 26px); }
.brand-card--ritmos::before { background-size: 98% 96%; }
.brand-card--ritmos::after { background: linear-gradient(90deg, rgba(3,9,12,.01) 28%, rgba(3,9,12,.1) 66%, rgba(3,9,12,.58) 100%), radial-gradient(ellipse 220px 180px at 76% 50%, rgba(255,48,77,.1), transparent 76%); opacity: .58; }
.brand-card.brand-card--galaxia { grid-template-columns: minmax(0, 1.3fr) minmax(155px, .76fr); }
.brand-card--galaxia .brand-card-copy h3 { font-size: clamp(20px, 1.9vw, 25px); }
.brand-card-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 0; padding: 8px 0 8px clamp(18px, 2vw, 28px); border-left: 1px solid rgba(255,255,255,.65); }
.brand-card-copy h3 { margin: 0; font: 660 clamp(20px, 2vw, 28px)/1.08 var(--display); letter-spacing: -.04em; overflow-wrap: anywhere; }
.brand-card-view { display: inline-flex; align-items: center; gap: 8px; width: max-content; margin-top: 14px; padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,.72); color: #fff; font-size: 12px; font-weight: 620; line-height: 1.2; }
.brand-card-view span { font-size: 14px; line-height: 1; }

.brand-method { position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 2.5vw, 36px) 0; color: #fff; background: radial-gradient(ellipse 55% 110% at 81% 45%, rgba(101,214,209,.1), transparent 70%), #0c171b; }
.brand-method::before { content: ""; position: absolute; z-index: -1; width: 510px; height: 510px; left: -320px; top: -180px; border: 1px solid rgba(101,214,209,.12); border-radius: 50%; box-shadow: 0 0 0 55px rgba(101,214,209,.035), 0 0 0 118px rgba(101,214,209,.025); }
.brand-method-layout { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 1.5fr); align-items: center; gap: clamp(28px, 3.8vw, 52px); }
.brand-method-intro .brand-section-rule { display: block; margin: 0 0 16px; }
.brand-method-intro h2 { max-width: 440px; margin: 0; font: 680 clamp(30px, 3.1vw, 42px)/1.06 var(--display); letter-spacing: -.06em; }
.brand-method-intro h2 em { color: var(--yellow); font-style: normal; }
.brand-method-intro > p { max-width: 420px; margin: 13px 0 0; color: #bdc9cc; font-size: 13px; line-height: 1.62; }
.brand-method-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: start; gap: 0; }
.brand-method-step { position: relative; z-index: 1; min-width: 0; min-height: 0; padding: 3px 8px; transition: filter .25s ease; }
.brand-method-step:hover { filter: drop-shadow(0 0 12px rgba(255,202,0,.12)); }
.brand-method-icon { --flow-color: var(--yellow); --flow-glow: rgba(255,202,0,.42); --flow-tint: rgba(255,202,0,.08); --flow-border-rest: rgba(255,202,0,.65); --flow-shadow-rest: inset 0 0 18px rgba(255,202,0,.08), 0 0 18px rgba(255,202,0,.06); --flow-shadow-active: 0 0 19px rgba(255,202,0,.34), inset 0 0 20px rgba(255,202,0,.16); --flow-bg-rest: #0c171b; --flow-bg-active: #162322; position: relative; z-index: 1; display: grid; width: 45px; height: 45px; margin-bottom: 10px; padding: 10px; place-items: center; border: 1px solid rgba(255,202,0,.65); border-radius: 12px; color: var(--yellow); background: #0c171b; box-shadow: inset 0 0 18px rgba(255,202,0,.08), 0 0 18px rgba(255,202,0,.06); }
.brand-method-icon svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.65; }
.brand-method-step-title { display: block; color: var(--yellow); font-size: 8px; font-weight: 750; letter-spacing: .13em; }
.brand-method-step h3 { margin: 5px 0 4px; font: 650 18px/1.2 var(--display); }
.brand-method-step p { margin: 0; color: #b9c5c8; font-size: 11px; line-height: 1.5; }
.brand-method-link { --flow-glow: rgba(255,202,0,.74); position: absolute; z-index: 0; top: 25px; height: 1px; margin: 0; opacity: .34; background: linear-gradient(90deg, rgba(255,202,0,.44), rgba(101,214,209,.48)); }
.brand-method-link:nth-of-type(1) { left: 53px; width: calc(33.333333% - 45px); }
.brand-method-link:nth-of-type(2) { left: calc(33.333333% + 53px); width: calc(33.333333% - 45px); --flow-glow: rgba(101,214,209,.78); }
.brand-method-link::before { content: ""; position: absolute; top: -3px; right: -1px; border: 3px solid transparent; border-left-color: rgba(180,205,204,.7); }

.brand-contact { position: relative; isolation: isolate; overflow: hidden; padding: clamp(38px, 5vw, 62px) 0; background: radial-gradient(ellipse 40% 160% at 78% 50%, rgba(255,255,255,.25), transparent 70%), #ffca00; }
.brand-contact::before { content: ""; position: absolute; z-index: -1; width: 430px; height: 430px; top: -210px; right: 9%; border: 1px solid rgba(80,59,0,.18); border-radius: 50%; box-shadow: 0 0 0 38px rgba(80,59,0,.06), 0 0 0 88px rgba(80,59,0,.04); }
.brand-contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.brand-contact .eyebrow { margin-bottom: 12px; color: #4f3d00; }
.brand-contact h2 { max-width: 520px; margin: 0; color: #111719; font: 700 clamp(32px, 4vw, 47px)/1.08 var(--display); letter-spacing: -.06em; }
.brand-contact h2 em { color: #614b00; font-style: normal; }
.brand-contact .button { flex: none; min-width: 225px; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 10px 27px rgba(33,28,4,.18); }
.brand-contact .button:hover { background: #262a2d; }

@keyframes brand-mark-breathe { 0%,100% { opacity: .42; transform: scale(.96); } 50% { opacity: .95; transform: scale(1.04); } }
@media (max-width: 1050px) {
  .brand-hero-grid { grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: 24px; min-height: 300px; }
  .brand-hero h1 { max-width: 390px; }
  .brand-hero-art { min-height: 300px; }
  .brand-hero-orbit { width: 300px; height: 300px; }
  .brand-hero-orbit--two { width: 390px; height: 390px; }
  .brand-portfolio-heading { gap: 25px; }
  .brand-card { grid-template-columns: minmax(0, 1.2fr) minmax(145px, .78fr); }
  .brand-card-copy h3 { font-size: clamp(19px, 2.3vw, 25px); }
  .brand-method-layout { grid-template-columns: minmax(300px, 1fr) minmax(0, 1.5fr); gap: 28px; }
  .brand-method-steps { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .brand-method-intro > p { max-width: 600px; }
}
@media (max-width: 900px) {
  .brand-card-grid { grid-template-columns: 1fr; grid-auto-rows: clamp(300px, 42vw, 380px); gap: 34px; }
  .brand-card { grid-template-columns: minmax(0, 1.3fr) minmax(180px, .76fr); }
  .brand-method-layout { grid-template-columns: 1fr; gap: 20px; }
  .brand-method-intro > p { max-width: 620px; }
}
@media (max-width: 760px) {
  .brand-hero { min-height: 0; padding: 38px 0 20px; }
  .brand-hero-grid { grid-template-columns: 1fr; gap: 2px; min-height: 0; }
  .brand-hero-copy { padding: 18px 0 0; }
  .brand-hero h1 { max-width: 700px; font-size: clamp(45px, 9vw, 68px); }
  .brand-hero-intro { max-width: 610px; margin-top: 18px; font-size: 16px; }
  .brand-hero-art { min-height: 315px; }
  .brand-hero-mark { width: min(72vw, 280px); }
  .brand-hero-orbit { width: 270px; height: 270px; }
  .brand-hero-orbit--two { width: 350px; height: 350px; }
  .brand-portfolio-heading { grid-template-columns: 1fr; gap: 13px; margin-bottom: 28px; }
  .brand-card-grid { grid-template-columns: 1fr; grid-auto-rows: clamp(255px, 42vw, 330px); gap: 28px; }
  .brand-card { grid-template-columns: minmax(0,1.25fr) minmax(145px,.78fr); padding: clamp(21px, 4vw, 30px); }
  .brand-card.brand-card--charly,
  .brand-card.brand-card--ritmos,
  .brand-card.brand-card--galaxia { grid-template-columns: minmax(0, 1.2fr) minmax(145px, .82fr); padding: 18px clamp(17px, 3vw, 26px); }
  .brand-card--chilakil { padding-block: 14px; }
  .brand-card--chilakil .brand-card-art img { max-height: clamp(210px, 37vw, 280px); }
  .brand-card--charly .brand-card-copy { padding-left: clamp(15px, 2vw, 22px); }
  .brand-card-copy h3 { font-size: clamp(23px, 5vw, 29px); }
  .brand-card--ritmos .brand-card-copy h3 { font-size: clamp(20px, 4vw, 26px); }
  .brand-card--galaxia .brand-card-copy h3 { font-size: clamp(18px, 3.3vw, 24px); }
  .brand-method-layout { grid-template-columns: 1fr; gap: 24px; }
  .brand-method-steps { grid-template-columns: 1fr; grid-template-rows: repeat(3, 110px); gap: 0; }
  .brand-method-step { height: 110px; min-height: 110px; display: grid; grid-template-columns: 45px 1fr; grid-template-rows: auto auto auto; column-gap: 13px; padding: 12px 0; border-bottom: 1px solid rgba(101,214,209,.12); }
  .brand-method-icon { grid-column: 1; grid-row: 1 / span 3; align-self: center; margin: 0; }
  .brand-method-step-title { grid-column: 2; grid-row: 1; }
  .brand-method-step h3 { grid-column: 2; grid-row: 2; margin: 2px 0 3px; }
  .brand-method-step p { grid-column: 2; grid-row: 3; }
  .brand-method-link { top: 77.5px; left: 22.5px; width: 1px; height: 65px; margin: 0; background: linear-gradient(180deg, rgba(255,202,0,.42), rgba(101,214,209,.48)); }
  .brand-method-link:nth-of-type(1), .brand-method-link:nth-of-type(2) { left: 22.5px; width: 1px; height: 65px; }
  .brand-method-link:nth-of-type(2) { top: 187.5px; }
  .brand-method-link::before { top: auto; right: -3px; bottom: -1px; border: 3px solid transparent; border-top-color: rgba(180,205,204,.7); border-left-color: transparent; }
  .brand-contact-inner { align-items: flex-start; flex-direction: column; gap: 24px; }
  .brand-contact .button { width: min(100%, 360px); justify-content: space-between; }
}
@media (max-width: 420px) {
  .brand-hero .eyebrow { font-size: 9px; letter-spacing: .11em; }
  .brand-hero h1 { font-size: clamp(40px, 11vw, 48px); }
  .brand-hero-art { min-height: 315px; }
  .brand-hero-orbit { width: 260px; height: 260px; }
  .brand-hero-orbit--two { width: 340px; height: 340px; }
  .brand-card { grid-template-columns: minmax(0,1fr) minmax(112px,.82fr); gap: 12px; padding: 17px; border-radius: 15px; }
  .brand-card.brand-card--charly,
  .brand-card.brand-card--ritmos,
  .brand-card.brand-card--galaxia { grid-template-columns: minmax(0, 1.2fr) minmax(112px, .82fr); gap: 12px; padding: 17px; }
  .brand-card--chilakil { padding-block: 14px; }
  .brand-card--chilakil .brand-card-art img { max-height: 190px; }
  .brand-card--charly .brand-card-copy { padding-left: 13px; }
  .brand-card--charly .brand-card-copy h3 { font-size: 20px; }
  .brand-card--ritmos .brand-card-copy h3 { font-size: 18px; }
  .brand-card-copy { padding-left: 13px; }
  .brand-card-copy h3 { margin-top: 0; font-size: 21px; }
  .brand-card--galaxia .brand-card-copy h3 { font-size: 16px; }
  .brand-method-steps { grid-template-columns: 1fr; grid-template-rows: repeat(3, 110px); gap: 0; }
  .brand-method-step { height: 110px; min-height: 110px; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto auto; column-gap: 13px; padding: 11px 0; }
  .brand-method-icon { grid-column: 1; grid-row: 1 / span 3; align-self: center; width: 40px; height: 40px; margin: 0; }
  .brand-method-step-title { grid-column: 2; grid-row: 1; }
  .brand-method-step h3 { grid-column: 2; grid-row: 2; margin: 2px 0 4px; font-size: 17px; }
  .brand-method-step p { grid-column: 2; grid-row: 3; font-size: 11px; }
  .brand-method-link { top: 75px; left: 20px; width: 1px; height: 70px; }
  .brand-method-link:nth-of-type(1), .brand-method-link:nth-of-type(2) { left: 20px; width: 1px; height: 70px; }
  .brand-method-link:nth-of-type(2) { top: 185px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-hero-mark, .brand-card, .brand-card::before, .brand-card::after, .brand-method-step { transition: none; }
  .brand-hero-mark-light { animation: none; }
}
