/* Servicios Bravo · Refinamiento visual 2
   El logo original se presenta en una tinta; las imágenes conservan sus colores.
   El fondo animado usa únicamente transformaciones y respeta movimiento reducido. */
:root {
  color-scheme: dark;
  --bg: #0b121b;
  --text: #edf3f8;
  --muted: #a7b6c5;
  --accent: #a0c5e5;
  --action: #2864d8;
  --line: rgba(172,197,221,.15);
  --shell: 1220px;
  font-family: 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 12pt;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}
/* Soft ambient light sits behind all text and controls. */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(125deg,#101e30 0%,#0b121b 48%,#0b1724 100%);
}
.ambient::before {
  content: '';
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(ellipse at 23% 30%,rgba(53,103,171,.22),transparent 47%),
    radial-gradient(ellipse at 83% 75%,rgba(43,83,139,.17),transparent 45%);
  animation: ambient-drift 32s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes ambient-drift {
  from { transform: translate3d(-3%,-2%,0) scale(1); }
  to { transform: translate3d(4%,3%,0) scale(1.07); }
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
img { display: block; max-width: 100%; }
p,h1,h2,h3,figure { margin: 0; }
.shell { width: min(var(--shell),calc(100% - 88px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 20px; z-index: 30; background: white; color: #102638; padding: 10px; }
.skip:focus { top: 10px; }
.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 106px; display: flex; align-items: center; gap: 44px; }
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 166px;
  min-height: 72px;
  padding: 9px 13px;
  flex-shrink: 0;
  border: 1px solid rgba(180,209,235,.12);
  border-radius: 14px;
  background: linear-gradient(145deg,rgba(173,201,230,.10),rgba(119,161,201,.025));
  box-shadow: inset 0 1px 0 rgba(225,238,250,.045);
}
.brand img { width: 100%; height: auto; filter: brightness(0) invert(.93); }
.header nav { display: flex; gap: 34px; margin-left: auto; }
.header nav a { position: relative; color: var(--muted); font-size: 12pt; padding: 15px 0; }
.header nav a:hover,.header nav a[aria-current=page] { color: var(--text); }
.header nav a[aria-current=page]::after { content: ''; position: absolute; bottom: 6px; left: 0; height: 2px; width: 24px; border-radius: 2px; background: var(--accent); }
.header-contact { font-size: 12pt; color: #c0cfdd; border: 1px solid rgba(178,201,224,.25); padding: 11px 20px; border-radius: 8px; }
.header-contact:hover { border-color: var(--accent); color: white; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 76px; align-items: center; padding: 52px 0 46px; }
.hero-copy { padding-block: 10px; }
.eyebrow { font-size: 12pt; letter-spacing: .14em; color: #a5b8ca; font-weight: 500; margin-bottom: 25px; }
h1 { font-size: 20pt; line-height: 1.18; font-weight: 400; letter-spacing: -.025em; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 16pt; line-height: 1.65; color: #b5c3d1; max-width: 410px; margin-top: 25px; }
.actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 8px; font-size: 12pt; font-weight: 600; transition: background .18s,border-color .18s,box-shadow .18s; }
.button-primary { background: var(--action); color: white; border: 1px solid #3a75e5; box-shadow: 0 5px 20px rgba(10,52,129,.20); }
.button-primary:hover { background: #2c69df; border-color: #5b91f5; box-shadow: 0 6px 24px rgba(24,76,166,.28); }
.button-secondary { color: #dae4ee; border: 1px solid rgba(174,198,222,.30); background: rgba(13,25,39,.20); }
.button-secondary:hover { border-color: #8da9c2; background: rgba(83,120,160,.10); }
.hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #1a2530;
  border: 1px solid rgba(186,210,232,.16);
  box-shadow: 0 24px 70px -24px rgba(0,0,0,.45);
}
.hero-visual img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }
.hero-visual figcaption { position: absolute; inset: auto 0 0; padding: 46px 25px 22px; font-size: 12pt; color: #e1eaf2; background: linear-gradient(transparent,rgba(7,16,26,.86)); letter-spacing: .015em; }
.services { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; padding: 27px 0 30px; border-top: 1px solid var(--line); }
.feature { padding-left: 30px; border-left: 1px solid var(--line); }
.feature:first-child { padding-left: 0; border: 0; }
.feature h2 { font-size: 16pt; font-weight: 500; margin-bottom: 5px; }
.feature p { color: #9fb0c1; font-size: 12pt; }
.footer { border-top: 1px solid var(--line); padding-top: 23px; padding-bottom: 32px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-right: 74px; font-size: 12pt; }
.footer-top p { color: #a0b0c0; }
.footer-top p span { padding-inline: 6px; }
.codex-link { color: #c4d8ea; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(173,203,231,.40); }
.codex-link:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 36px; margin-top: 19px; padding-right: 74px; color: #93a3b3; font-size: 12pt; line-height: 1.65; }
.footer-bottom p { max-width: 760px; }
.footer-bottom>span { white-space: nowrap; }
.whatsapp { position: fixed; z-index: 20; right: 24px; bottom: 22px; display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; color: #061a0e; background: #28c36b; border-radius: 50%; border: 1px solid rgba(144,247,182,.4); box-shadow: 0 5px 24px rgba(0,0,0,.25); }
.whatsapp svg { width: 29px; height: 29px; }
.whatsapp:hover { background: #5ee197; }
.wa-label { position: absolute; right: 66px; white-space: nowrap; color: #e5f3eb; background: #193326; font-size: 12pt; padding: 5px 10px; border-radius: 5px; opacity: 0; pointer-events: none; }
.whatsapp:hover .wa-label,.whatsapp:focus-visible .wa-label { opacity: 1; }
@media(min-width:1600px) { .hero { padding: 64px 0 52px; } }
@media(max-width:1080px) {
  .shell { width: calc(100% - 56px); }
  .hero { gap: 38px; padding-top: 38px; }
  h1 { font-size: 20pt; }
  .lead { font-size: 16pt; }
  .button { padding-inline: 19px; }
  .header-inner { gap: 28px; }
  .header nav { gap: 26px; }
}
@media(max-width:760px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { min-height: 91px; gap: 22px; }
  .brand { width: 130px; min-height: 59px; padding: 8px 11px; border-radius: 12px; }
  .header nav { gap: 22px; }
  .header nav a { font-size: 12pt; min-height: 44px; }
  .header-contact { display: none; }
  .hero { grid-template-columns: 1fr; gap: 29px; padding: 29px 0 28px; }
  .hero-copy { padding: 0; }
  .eyebrow { font-size: 12pt; letter-spacing: .12em; margin-bottom: 20px; }
  h1 { font-size: 20pt; line-height: 1.18; max-width: 570px; }
  .lead { font-size: 16pt; line-height: 1.6; max-width: 430px; margin-top: 21px; }
  .actions { gap: 11px; margin-top: 25px; }
  .button { padding: 13px 21px; min-height: 53px; }
  .hero-visual { width: 100%; border-radius: 14px; }
  .hero-visual img { aspect-ratio: 1.13/1; }
  .hero-visual figcaption { font-size: 12pt; padding: 30px 18px 17px; }
  .services { grid-template-columns: 1fr; gap: 0; padding: 0 0 5px; }
  .feature,.feature:first-child { padding: 16px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border: 0; border-bottom: 1px solid var(--line); }
  .feature:last-child { border: 0; }
  .feature h2 { margin: 0; font-size: 16pt; flex-shrink: 0; }
  .feature p { max-width: 200px; text-align: right; font-size: 12pt; }
  .footer { padding: 21px 0 98px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 14px; padding-right: 0; font-size: 12pt; }
  .footer-bottom { flex-direction: column; gap: 12px; padding-right: 0; font-size: 12pt; }
  .whatsapp { right: 18px; bottom: 18px; width: 53px; height: 53px; }
}
@media(max-width:370px) {
  .header-inner { gap: 12px; }
  .header nav { gap: 17px; }
  .header nav a { font-size: 12pt; }
  .brand { width: 96px; min-height: 54px; padding: 8px; }
  h1 { font-size: 20pt; }
  .button { padding-inline: 16px; font-size: 12pt; }
  .feature,.feature:first-child { display: block; }
  .feature p { margin-top: 3px; max-width: none; text-align: left; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .ambient::before { animation: none; will-change: auto; }
  * { transition: none !important; }
}

/* Message and purchase dialogs: the same 12 / 16 / 20 pt typography. */
button,input,textarea { font-family: inherit; }
button { cursor: pointer; }
.header-contact { background: transparent; }
.contact-open { overflow: hidden; }
.contact-dialog {
  width: min(540px,calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 28px;
  color: var(--text);
  background: linear-gradient(145deg,#17283b,#101c2a);
  border: 1px solid rgba(178,207,233,.25);
  border-radius: 18px;
  box-shadow: 0 24px 90px rgba(0,0,0,.5);
  font-size: 12pt;
}
.contact-dialog::backdrop { background: rgba(3,9,16,.78); backdrop-filter: blur(6px); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.contact-dialog { scroll-padding-top: 180px; }
.dialog-header {
  position: sticky;
  top: -28px;
  z-index: 2;
  margin: -28px -28px 23px;
  padding: 28px;
  background: linear-gradient(145deg,#17283b,#142234);
  border-bottom: 1px solid var(--line);
}
.dialog-header h2 { font-size: 20pt; line-height: 1.2; font-weight: 400; letter-spacing: -.025em; }
.dialog-intro .recipient-name { margin-top: 12px; font-size: 16pt; color: var(--text); }
.dialog-intro .recipient-phone { display: inline-block; margin-top: 2px; font-size: 12pt; color: var(--accent); }
.dialog-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: transparent; font-size: 20pt; line-height: 1; }
.dialog-close:hover { color: white; border-color: var(--accent); }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: block; color: #d7e3ee; font-size: 12pt; }
.contact-form input,.contact-form textarea { display: block; width: 100%; margin-top: 7px; padding: 12px 13px; color: var(--text); background: #0c1724; border: 1px solid #41546a; border-radius: 8px; font-size: 12pt; line-height: 1.5; }
.contact-form textarea { min-height: 128px; resize: vertical; }
.contact-form textarea::placeholder { color: #93a7bb; }
.contact-form input:focus-visible,.contact-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-form input[aria-invalid=true] { border-color: #f3aaa8; }
.contact-form .optional { color: var(--muted); }
.form-note { color: var(--muted); font-size: 12pt; line-height: 1.5; }
.field-error { color: #ffb6b4; font-size: 12pt; line-height: 1.45; margin-top: -7px; }
.field-error[hidden] { display: none; }
.form-status { font-size: 12pt; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status[data-state=success] { color: #a8e5c3; }
.form-status[data-state=error] { color: #ffb6b4; }
.form-submit { width: 100%; margin-top: 3px; font-size: 12pt; }
.form-submit:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media(max-width:480px) { .contact-dialog { padding: 21px; border-radius: 14px; } }
@media(max-width:480px) { .dialog-header { top: -21px; margin: -21px -21px 23px; padding: 21px; } }

/* Three images from the new-equipment section of Bravo Codex. */
.services--illustrated { gap: 28px; padding-top: 29px; }
.services--illustrated .feature { min-width: 0; padding-left: 0; border-left: 0; }
.service-image { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: center; margin-bottom: 18px; border: 1px solid rgba(182,207,230,.18); border-radius: 10px; background: #e9eff4; opacity: .75; }
@media(max-width:760px) {
  .services--illustrated { gap: 0; padding-top: 0; }
  .services--illustrated .feature { display: grid; grid-template-columns: 110px minmax(0,1fr); column-gap: 18px; row-gap: 4px; align-items: center; padding: 20px 0; }
  .services--illustrated .service-image { grid-column: 1; grid-row: 1 / span 2; width: 110px; height: 110px; aspect-ratio: 1; margin: 0; border-radius: 8px; }
  .services--illustrated .feature h2 { grid-column: 2; grid-row: 1; align-self: end; margin: 0; }
  .services--illustrated .feature p { grid-column: 2; grid-row: 2; align-self: start; max-width: none; text-align: left; margin: 0; }
  .services--illustrated .feature:last-child p { padding-right: 52px; }
}
@media(max-width:370px) {
  .services--illustrated .feature { grid-template-columns: 84px minmax(0,1fr); column-gap: 14px; }
  .services--illustrated .service-image { width: 84px; height: 100px; }
}

/* Main actions: a small lift, a single light sweep and a clear pressed state. */
.actions .button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.actions .button::before {
  content: '';
  position: absolute;
  inset: -35% -50%;
  pointer-events: none;
  background: linear-gradient(110deg,transparent 40%,rgba(255,255,255,.15) 50%,transparent 60%);
  transform: translateX(-120%);
  transition: transform .65s ease;
}
.actions .button-primary {
  background: linear-gradient(135deg,#2864d8,#1c4eb5);
  border-color: #4c84ec;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12),0 6px 20px rgba(14,61,147,.25);
}
.actions .button-secondary {
  background: linear-gradient(135deg,rgba(69,104,145,.15),rgba(13,25,39,.4));
  border-color: #586f87;
}
@media(hover:hover) and (pointer:fine) {
  .actions .button:not(:disabled):hover { transform: translateY(-3px); }
  .actions .button:not(:disabled):hover::before { transform: translateX(120%); }
  .actions .button-primary:hover {
    background: linear-gradient(135deg,#2c69df,#2458bd);
    border-color: #9ac2ff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.17),0 10px 28px rgba(32,94,208,.35);
  }
  .actions .button-secondary:hover {
    background: rgba(71,108,149,.22);
    border-color: #a0c5e5;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06),0 8px 24px rgba(0,0,0,.2);
  }
}
.actions .button:not(:disabled):active { transform: translateY(0) scale(.98); box-shadow: inset 0 2px 7px rgba(0,0,0,.22); }
@media(prefers-reduced-motion:reduce) {
  .actions .button,.actions .button::before { transition: none !important; transform: none !important; }
  .actions .button::before { display: none; }
}

/* Larger brand and navigation, within the approved three type sizes. */
.header-inner { min-height: 132px; }
.brand { width: 220px; min-height: 94px; padding: 11px 16px; border-radius: 17px; }
.header nav a,.header-contact { font-size: 16pt; }
.header-contact { padding: 12px 23px; }
@media(max-width:1080px) {
  .header-inner { gap: 22px; }
  .header nav { gap: 26px; }
}
@media(max-width:760px) {
  .header-inner { display: grid; grid-template-columns: 1fr; justify-items: center; min-height: 0; gap: 10px; padding-block: 16px 10px; }
  .brand { width: 190px; min-height: 82px; padding: 10px 14px; border-radius: 15px; }
  .header nav { margin-left: 0; justify-content: center; gap: 34px; }
  .header nav a { font-size: 16pt; padding: 10px 0; min-height: 48px; }
}
@media(max-width:370px) {
  .brand { width: 180px; min-height: 78px; }
  .header nav { gap: 28px; }
}

/* Optional privacy information, using the approved 12 pt size. */
.privacy-note { margin-top: 18px; max-width: 900px; color: #9db0c3; font-size: 12pt; }
.privacy-note summary { width: fit-content; cursor: pointer; font-size: 12pt; }
.privacy-note p { margin: 12px 0 0; font-size: 12pt; line-height: 1.6; }
.privacy-note a { overflow-wrap: anywhere; }

/* Link to the Bravo Codex equipment catalog, below the contact actions. */
.actions.equipment-actions { margin-top: 13px; }
.equipment-actions .button { width: min(100%, 340px); }

/* Broad glass reflection: one second per pass, alternating left and right. */
.equipment-actions .button {
  background: linear-gradient(145deg,rgba(177,214,248,.18),rgba(72,113,155,.08) 52%,rgba(132,175,217,.14));
  border-color: rgba(182,215,245,.48);
  box-shadow: inset 0 1px 0 rgba(241,249,255,.25),inset 0 -1px 0 rgba(159,199,235,.08),0 7px 22px rgba(0,0,0,.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.equipment-actions .button::before {
  inset: -45% auto -45% 0;
  width: 80%;
  z-index: -1;
  background: linear-gradient(90deg,transparent,rgba(229,245,255,.06) 15%,rgba(240,249,255,.20) 35%,rgba(255,255,255,.30) 50%,rgba(240,249,255,.20) 65%,rgba(229,245,255,.06) 85%,transparent);
  filter: blur(10px);
  animation: equipment-glass-reflection 1s ease-in-out infinite alternate;
  transition: none;
}
.equipment-actions .button::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg,rgba(239,248,255,.09),transparent 52%);
}
@keyframes equipment-glass-reflection {
  0% { transform: translateX(-115%) skewX(-12deg); opacity: 0; }
  12% { opacity: .8; }
  88% { opacity: .8; }
  100% { transform: translateX(140%) skewX(-12deg); opacity: 0; }
}
@media(prefers-reduced-motion:reduce) {
  .equipment-actions .button::before { animation: none; display: none; }
}
