/* Browser review: clearer surfaces, studio principles and a readable full hero. */
.page-contacto #datos-contacto {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 26px;
  border-top: 0;
}
.page-contacto .contact-direct,
.page-contacto .contact-form-panel {
  min-width: 0;
  padding: clamp(26px, 3.2vw, 44px);
  border: 1px solid #ccd5e5;
  border-radius: 24px;
  box-shadow: 0 5px 0 #dbe2ef, 0 22px 42px -27px #233f7066;
}
.page-contacto .contact-direct {
  background: linear-gradient(145deg, #203c75, #14264d 60%, #101e3c);
  border-color: #314d7d;
  box-shadow: inset 0 1px #ffffff26, 0 5px 0 #bccbe0, 0 22px 42px -27px #233f7080;
}
.page-contacto .contact-direct h2 { color: #fff; font-size: clamp(32px, 3.3vw, 46px); }
.page-contacto .contact-direct > p { color: #c5d3ef; }
.page-contacto .contact-direct .text-link {
  gap: 28px;
  min-height: 46px;
  margin-top: 32px;
  padding: 10px 16px;
  border: 1px solid #91a9d261;
  border-radius: 12px;
  background: #ffffff0d;
  color: #fff;
  font-size: 17px;
}
.page-contacto .contact-direct .text-link:hover { background: #ffffff1c; border-color: #b1c5ea; }
.page-contacto .contact-phone { margin-block: 24px 10px; color: #fff; font-size: clamp(25px, 2.65vw, 37px); white-space: nowrap; }
.page-contacto .contact-socials { max-width: none; gap: 10px; margin-top: 30px; padding-top: 24px; border-color: #a6bcdf40; }
.page-contacto .contact-socials .social-network-link {
  min-height: 42px;
  padding: 7px 11px;
  border: 1px solid #91a9d247;
  border-radius: 9px;
  background: #ffffff08;
  color: #e8efff;
  font-size: 13px;
}
.page-contacto .contact-socials .social-network-link:hover { background: #ffffff19; color: #fff; border-color: #a6bcdf; }
.page-contacto .contact-socials .social-network-link .arrow { color: #c5d6ff; }
.page-contacto .contact-form-panel { background: #fff; }
.page-contacto .contact-form-panel h2 { font-size: clamp(28px, 3vw, 40px); }
.page-contacto .form-field :is(input, select, textarea) { background: #f6f8fc; border-color: #c5cede; transition: background .18s, border-color .18s; }
.page-contacto .form-field :is(input, select, textarea)::placeholder { color: #67758a; opacity: 1; }
.page-contacto .form-field :is(input, select, textarea):focus { background: #fff; }
.page-contacto .form-field [aria-invalid=true] { background: #fff7f8; border-color: #b1263b; }
.page-contacto .contact-form .button { min-height: 52px; }
.page-contacto .workflow-choices { align-items: stretch; gap: 24px; }
.page-contacto .workflow-choice {
  position: relative;
  gap: 20px;
  padding: 30px;
  border: 1px solid #c8d2e8;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 60%, #f4f7ff);
  box-shadow: inset 0 1px #fff, 0 5px 0 #d9dfee, 0 20px 35px -24px #344d8b70;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.page-contacto .workflow-choice-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #d2dcfa;
  border-radius: 12px;
  background: linear-gradient(145deg, #f3f6ff, #e6edff);
  color: #2849d4;
  font-size: 12px;
  font-weight: 650;
}
.page-contacto .workflow-choice-copy { align-self: stretch; flex: 1; gap: 16px; }
.page-contacto .workflow-choice-copy > strong { font-size: clamp(21px, 2vw, 25px); line-height: 1.2; }
.page-contacto .workflow-choice-copy > span:not(.workflow-choice-action) { color: #58677e; }
.page-contacto .workflow-choice-copy > .workflow-choice-action {
  align-self: stretch;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #e0e6f3;
  color: #2849d4;
  font-weight: 600;
}
.page-contacto .workflow-choice-action > span { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid #d2dcfa; border-radius: 50%; background: #eff3ff; }
.page-contacto .workflow-choice:hover { transform: translateY(-3px); border-color: #8fa7e9; background: #fff; box-shadow: 0 6px 0 #ccd7f0, 0 24px 38px -24px #344d8b80; }
.page-contacto .workflow-choice[aria-pressed=true] { border-color: #3157f5; background: #fff; box-shadow: inset 0 0 0 1px #3157f5, 0 5px 0 #c8d3f5, 0 20px 35px -24px #344d8b70; }
.page-contacto .workflow-choice[aria-pressed=true] .workflow-choice-number { background: #3157f5; border-color: #3157f5; color: #fff; }
.page-contacto .workflow-privacy { margin-top: 25px; }
.page-contacto .workflow-panel { padding: 24px; border: 1px solid #c8d2e8; border-radius: 20px; background: #fff; box-shadow: 0 18px 35px -27px #344d8b70; }

.page-nosotros .principles { gap: 24px; margin-top: 38px; }
.page-nosotros .principle,
.page-nosotros .principle:first-child,
.page-nosotros .principle:last-child {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 32px;
  border: 1px solid #ccd5e5;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff 65%, #f0f4fc);
  box-shadow: inset 0 1px #fff, 0 5px 0 #dce2ed, 0 20px 38px -27px #28416c70;
}
.page-nosotros .principle::before { content: ''; position: absolute; top: 0; left: 32px; width: 44px; height: 3px; border-radius: 0 0 3px 3px; background: #3157f5; }
.page-nosotros .principle svg {
  flex: none;
  width: 74px;
  height: 74px;
  margin: 0 0 28px;
  padding: 17px;
  border: 1px solid #d3ddfa;
  border-radius: 20px;
  background: linear-gradient(145deg, #f5f7ff, #e7edff);
  box-shadow: inset 0 1px #fff, 0 3px 0 #dce3f5;
  stroke-width: 1.5;
  overflow: visible;
}
.page-nosotros .principle-number { position: absolute; top: 35px; right: 28px; color: #6a7891; font-size: 12px; letter-spacing: .06em; }
.page-nosotros .principle h3 { font-size: 26px; }
.page-nosotros .principle p { margin-top: 12px; color: #58677e; font-size: 16px; line-height: 1.65; }

/* The background spans the entire hero; the content determines its minimum height. */
.page-index .home-hero-motion { height: auto; min-height: 0; }
.page-index .home-hero-content { height: auto; min-height: clamp(640px, calc(100svh - var(--header-height)), 920px); padding-block: 64px 104px; align-items: center; }
.page-index .home-hero-content .hero-copy { width: 50%; max-width: 610px; }
.page-index .home-hero-content h1 { font-size: clamp(56px, 5.7vw, 84px); line-height: 1.04; }
.page-index .home-hero-content .lede { max-width: 430px; font-size: 18px; line-height: 1.6; }
.page-index .home-hero-content .actions { gap: 16px 24px; }
.page-index .home-hero-motion .hero-stage { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; aspect-ratio: auto; z-index: -1; }
.page-index .hero-loop-video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-index .home-hero-motion .hero-stage::after { background: linear-gradient(90deg, #f5f4ef 0%, #f5f4ef 34%, #f5f4eff2 41%, #f5f4efaa 48%, #f5f4ef33 59%, transparent 70%), linear-gradient(0deg, #f5f4ef80, transparent 14%); }
.page-index .hero-bottom { position: absolute; bottom: 22px; padding-block: 0; }
@media (min-width: 1200px) and (max-height: 650px) {
  .page-index .home-hero-content { min-height: 560px; padding-block: 36px 88px; }
  .page-index .home-hero-content h1 { font-size: clamp(48px, 5vw, 66px); }
  .page-index .home-hero-content .lede { font-size: 16px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .page-index .home-hero-content { min-height: 650px; padding-block: 60px 100px; }
  .page-index .home-hero-content .hero-copy { width: 53%; }
  .page-index .home-hero-content h1 { font-size: clamp(43px, 5.5vw, 64px); }
  .page-index .home-hero-content .lede { max-width: 355px; font-size: 16px; }
  .page-index .hero-loop-video { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; object-position: center bottom; mask-image: linear-gradient(180deg, transparent, #000 18%); }
  .page-index .home-hero-motion .hero-stage::after { background: linear-gradient(90deg, #f5f4ef 0%, #f5f4ef 31%, #f5f4eff2 40%, #f5f4efaa 51%, #f5f4ef22 68%, transparent 82%); }
}
@media (max-width: 1050px) {
  .page-contacto #datos-contacto { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 22px; }
  .page-contacto .contact-direct, .page-contacto .contact-form-panel { padding: 28px; }
  .page-contacto .contact-phone { font-size: clamp(23px, 3vw, 30px); }
  .page-contacto .workflow-choice { padding: 26px; gap: 16px; }
  .page-nosotros .principles { gap: 18px; }
  .page-nosotros .principle, .page-nosotros .principle:first-child, .page-nosotros .principle:last-child { padding: 27px; }
}
@media (max-width: 767px) {
  .page-contacto #datos-contacto { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .page-contacto .contact-direct, .page-contacto .contact-form-panel { padding: 28px; border-radius: 20px; }
  .page-contacto .contact-direct h2 { font-size: 36px; }
  .page-contacto .contact-phone { font-size: clamp(25px, 7.4vw, 34px); }
  .page-contacto .contact-form-panel h2 { font-size: 30px; }
  .page-contacto .workflow-choices { gap: 23px; }
  .page-contacto .workflow-choice { padding: 24px; gap: 15px; }
  .page-contacto .workflow-choice-number { width: 35px; height: 35px; border-radius: 10px; }
  .page-contacto .workflow-choice-copy > strong { font-size: 22px; }
  .page-contacto .workflow-panel { padding: 18px; }
  .page-nosotros .principles { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .page-nosotros .principle, .page-nosotros .principle:first-child, .page-nosotros .principle:last-child { padding: 28px; }
  .page-nosotros .principle svg { margin-bottom: 24px; }
  .page-index .home-hero-content { min-height: 0; padding-block: 38px clamp(260px, 70vw, 470px); }
  .page-index .home-hero-content .hero-copy { width: 100%; max-width: 560px; }
  .page-index .home-hero-content h1 { font-size: clamp(43px, 10.4vw, 64px); }
  .page-index .home-hero-content .lede { font-size: 17px; max-width: 440px; }
  .page-index .home-hero-content .actions { gap: 16px; }
  .page-index .home-hero-content .actions .button { font-size: 12px; }
  .page-index .hero-loop-video { position: absolute; left: 0; bottom: 24px; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; object-position: center; mask-image: linear-gradient(180deg, transparent, #000 18%); }
  .page-index .home-hero-motion .hero-stage::after { background: linear-gradient(0deg, #f5f4ef 0%, transparent 10%, transparent 32%, #f5f4ef 55%); }
  .page-index .hero-bottom { bottom: 18px; }
  .page-index .hero-disciplines { gap: 18px; }
}
@media (max-width: 374px) {
  .page-contacto .contact-direct, .page-contacto .contact-form-panel, .page-contacto .workflow-choice { padding: 23px; }
  .page-contacto .workflow-choice { gap: 12px; }
  .page-contacto .workflow-choice-copy > strong { font-size: 20px; }
  .page-contacto .workflow-choice-number { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-contacto .workflow-choice, .page-contacto .form-field :is(input, select, textarea) { transition: none; }
  .page-contacto .workflow-choice:hover { transform: none; }
}
