/* Shared internal pages */
.inner-page { background: #fff; }
.inner-hero { padding: 28px 0 52px; }
.inner-hero-card { min-height: 270px; padding: 52px 58px; border-radius: 24px; display: flex; align-items: center; position: relative; overflow: hidden; color: #fff; background: linear-gradient(90deg, rgba(0,55,111,.96), rgba(7,86,166,.88) 55%, rgba(7,86,166,.55)), url('../assets/hero.jpg') center 54% / cover no-repeat; }
.inner-hero-card::after { content: ""; position: absolute; right: -90px; top: -130px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 58px rgba(255,255,255,.035), 0 0 0 118px rgba(255,255,255,.025); }
.inner-hero-copy { position: relative; z-index: 1; max-width: 700px; }
.inner-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; font-size: 12px; opacity: .86; }
.inner-breadcrumbs strong { font-weight: 700; }
.inner-hero h1 { margin: 0 0 14px; font-size: 42px; line-height: 1.08; letter-spacing: -.02em; }
.inner-hero p { max-width: 650px; margin: 0; font-size: 17px; line-height: 1.55; opacity: .92; }
.page-section { padding: 66px 0 82px; }
.page-section--soft { background: #f8fafc; }
.page-section-heading { margin-bottom: 30px; }
.page-kicker { margin: 0 0 8px; color: var(--blue); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.page-section-heading h2 { margin: 0; font-size: 30px; line-height: 1.15; }
.page-section-heading p { max-width: 720px; margin: 12px 0 0; color: #6b7580; font-size: 14px; line-height: 1.6; }

/* Forms */
.form-shell { padding: 36px; border: 1px solid #dfe6ec; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(25,49,72,.055); }
.form-section + .form-section { margin-top: 42px; padding-top: 38px; border-top: 1px solid #e5eaee; }
.form-section-title { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.form-step { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #edf5fc; color: var(--blue); font-size: 12px; font-weight: 700; }
.form-section-title h3 { margin: 0 0 4px; font-size: 20px; }
.form-section-title p { margin: 0; color: #7b848c; font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 20px; }
.field { grid-column: span 4; display: grid; gap: 8px; }
.field--half { grid-column: span 6; }
.field--wide { grid-column: span 8; }
.field--full { grid-column: 1 / -1; }
.field label, .field > span { font-size: 12px; font-weight: 700; color: #28323b; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cfd8df; border-radius: 7px; background: #fff; color: #4f5a64; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.field input, .field select { height: 49px; padding: 0 14px; }
.field textarea { min-height: 145px; padding: 14px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #6aa4d9; box-shadow: 0 0 0 3px rgba(7,86,166,.08); }
.field input[type="file"] { padding: 10px 12px; height: auto; min-height: 49px; }
.check-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.check-option { min-height: 46px; padding: 10px 12px; display: flex; gap: 9px; align-items: center; border: 1px solid #dde4e9; border-radius: 7px; color: #59636d; font-size: 12px; }
.check-option input { accent-color: var(--blue); }
.form-note { margin: 13px 0 0; color: #8a9299; font-size: 11px; line-height: 1.5; }
.form-actions { margin-top: 30px; display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.form-consent { display: flex; gap: 8px; align-items: flex-start; margin-right: auto; color: #6e7780; font-size: 11px; line-height: 1.5; }
.form-consent input { margin-top: 2px; accent-color: var(--blue); }
.submit-button { min-height: 52px; padding: 0 30px; border: 0; border-radius: 7px; background: var(--blue); color: #fff; font-weight: 700; cursor: pointer; }
.submit-button:hover { background: var(--blue-dark); }

/* Evaluation page */
.evaluation-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 30px; align-items: start; }
.evaluation-aside { position: sticky; top: 20px; padding: 28px; border-radius: 16px; color: #fff; background: var(--blue); }
.evaluation-aside h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.2; }
.evaluation-aside p { margin: 0 0 22px; font-size: 13px; line-height: 1.6; opacity: .9; }
.evaluation-aside ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.evaluation-aside li { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.45; }
.evaluation-aside li::before { content: "✓"; flex: 0 0 23px; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); font-weight: 700; }

/* Videos page */
.featured-video-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); gap: 30px; align-items: stretch; }
.youtube-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #111; }
.youtube-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.featured-video-copy { padding: 34px; border-radius: 16px; background: #f3f8fd; display: flex; flex-direction: column; justify-content: center; }
.featured-video-copy span { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.featured-video-copy h2 { margin: 10px 0 14px; font-size: 28px; line-height: 1.2; }
.featured-video-copy p { margin: 0; color: #66717a; font-size: 13px; line-height: 1.65; }
.youtube-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.youtube-card { overflow: hidden; border: 1px solid #dfe6ec; border-radius: 15px; background: #fff; box-shadow: 0 8px 22px rgba(25,49,72,.05); }
.youtube-card .youtube-frame { border-radius: 0; }
.youtube-card-copy { padding: 18px 20px 21px; }
.youtube-card-copy h3 { margin: 0 0 7px; font-size: 16px; }
.youtube-card-copy p { margin: 0; color: #7a838b; font-size: 12px; line-height: 1.5; }
.youtube-demo-note { margin-top: 22px; color: #8a9299; font-size: 11px; line-height: 1.5; }

/* Contact page */
.contact-page-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 38px; align-items: stretch; }
.contact-page-info { padding: 36px; border-radius: 18px; background: var(--blue); color: #fff; }
.contact-page-info h2 { margin: 0 0 12px; font-size: 28px; }
.contact-page-info > p { margin: 0 0 30px; font-size: 13px; line-height: 1.6; opacity: .9; }
.contact-methods { display: grid; gap: 10px; }
.contact-method { padding: 15px 0; border-top: 1px solid rgba(255,255,255,.16); display: grid; grid-template-columns: 40px 1fr; gap: 13px; align-items: center; }
.contact-method:first-child { border-top: 0; }
.contact-method-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); font-weight: 700; }
.contact-method small { display: block; margin-bottom: 3px; font-size: 10px; opacity: .72; text-transform: uppercase; letter-spacing: .08em; }
.contact-method strong { font-size: 13px; line-height: 1.4; }
.contact-page-form .form-shell { height: 100%; }
.contact-page-form .form-grid { gap: 20px; }
.contact-page-form .field { grid-column: span 6; }
.contact-page-form .field--full { grid-column: 1 / -1; }
.contact-page-form textarea { min-height: 175px; }
.contact-page-form .form-actions { margin-top: 22px; }
.contact-page-form .submit-button { min-width: 210px; }

/* Shared CTA */
.page-cta { padding: 0 0 78px; }
.page-cta-card { min-height: 130px; padding: 26px 42px; border-radius: 14px; display: flex; justify-content: space-between; align-items: center; gap: 28px; background: #f2f7fb; border: 1px solid #dae6ef; }
.page-cta-card h2 { margin: 0 0 6px; color: var(--blue); font-size: 24px; }
.page-cta-card p { margin: 0; color: #6f7881; font-size: 13px; }
.page-cta-card a { flex: 0 0 auto; min-height: 50px; padding: 0 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; }

@media (max-width: 1000px) {
  .inner-hero-card { min-height: 245px; padding: 42px; }
  .evaluation-layout { grid-template-columns: 1fr; }
  .evaluation-aside { position: static; }
  .check-grid { grid-template-columns: repeat(3, 1fr); }
  .youtube-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-video-layout { grid-template-columns: 1fr; }
  .contact-page-layout { grid-template-columns: 300px 1fr; gap: 28px; }
}

@media (max-width: 820px) {
  .inner-hero { padding-top: 18px; }
  .inner-hero-card { min-height: 225px; border-radius: 18px; }
  .inner-hero h1 { font-size: 36px; }
  .page-section { padding: 52px 0 64px; }
  .form-shell { padding: 28px; }
  .field, .field--wide { grid-column: span 6; }
  .field--full { grid-column: 1 / -1; }
  .check-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-page-layout { grid-template-columns: 1fr; }
  .contact-page-info { order: 2; }
  .contact-page-form { order: 1; }
  .page-cta-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .inner-hero { padding: 10px 0 36px; }
  .inner-hero-card { min-height: 230px; padding: 30px 24px; border-radius: 14px; }
  .inner-breadcrumbs { margin-bottom: 17px; }
  .inner-hero h1 { font-size: 30px; }
  .inner-hero p { font-size: 14px; }
  .page-section-heading h2 { font-size: 25px; }
  .form-shell { padding: 22px 18px; border-radius: 14px; }
  .form-section + .form-section { margin-top: 34px; padding-top: 32px; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .field, .field--half, .field--wide, .field--full, .contact-page-form .field, .contact-page-form .field--full { grid-column: 1; }
  .check-grid { grid-column: 1; grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-consent { margin-right: 0; }
  .submit-button { width: 100%; }
  .evaluation-aside { padding: 25px 22px; }
  .youtube-grid { grid-template-columns: 1fr; }
  .featured-video-copy { padding: 25px 22px; }
  .featured-video-copy h2 { font-size: 24px; }
  .contact-page-info { padding: 28px 23px; }
  .page-cta { padding-bottom: 56px; }
  .page-cta-card { padding: 25px 22px; }
  .page-cta-card a { width: 100%; }
}

/* YouTube local preview and resilient embeds */
.youtube-poster { position: absolute; inset: 0; display: block; color: #fff; background: #111; }
.youtube-poster img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .82; transition: transform .25s ease, opacity .25s ease; }
.youtube-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.28)); }
.youtube-poster:hover img { transform: scale(1.02); opacity: .9; }
.youtube-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 66px; height: 46px; border-radius: 12px; transform: translate(-50%, -50%); display: grid; place-items: center; padding-left: 3px; background: #ff0033; color: #fff; font-size: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.24); }
.youtube-poster-label { position: absolute; z-index: 2; left: 18px; bottom: 16px; padding: 7px 10px; border-radius: 6px; background: rgba(0,0,0,.68); font-size: 11px; font-weight: 700; }
.youtube-local-preview .youtube-demo-note { padding: 13px 15px; border: 1px solid #dce6ee; border-radius: 8px; background: #fff; color: #6f7881; }
.youtube-embed-enabled .youtube-local-note { display: none; }

/* Interactive YouTube gallery */
.featured-video-poster,
.youtube-card-trigger {
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.featured-video-poster {
  width: 100%;
  height: 100%;
}

.youtube-card-trigger {
  width: 100%;
  height: 100%;
  display: block;
  background: #fff;
  color: inherit;
}

.youtube-thumbnail {
  border-radius: 0;
}

.youtube-thumbnail > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .86;
  transition: transform .25s ease, opacity .25s ease;
}

.youtube-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.22));
  pointer-events: none;
}

.youtube-card:hover .youtube-thumbnail > img,
.youtube-card-trigger:focus-visible .youtube-thumbnail > img {
  transform: scale(1.025);
  opacity: .96;
}

.youtube-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.youtube-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 28px rgba(25,49,72,.09);
}

.youtube-card.is-active {
  border-color: rgba(7,86,166,.48);
  box-shadow: 0 0 0 2px rgba(7,86,166,.08), 0 13px 28px rgba(25,49,72,.08);
}

.youtube-card.is-active .youtube-card-copy h3 {
  color: var(--blue);
}

.youtube-card-trigger:focus-visible,
.featured-video-poster:focus-visible {
  outline: 3px solid rgba(7,86,166,.28);
  outline-offset: -3px;
}

.featured-youtube-player.is-playing {
  box-shadow: 0 12px 30px rgba(25,49,72,.12);
}

.youtube-local-warning {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #d9e5ee;
  border-radius: 9px;
  background: #f7fafc;
  color: #68737c;
  font-size: 12px;
  line-height: 1.55;
}

.youtube-local-warning[hidden] {
  display: none;
}


/* Institutional pages: Administradora / Advocacia */
.institutional-container { max-width: 960px; }
.institutional-lead { padding: 4px 0; }
.institutional-lead h2, .legal-copy h2 { margin: 0 0 24px; font-size: 34px; line-height: 1.18; letter-spacing: -.02em; color: #17212a; }
.institutional-lead > p:not(.page-kicker), .legal-copy > p:not(.page-kicker) { margin: 0 0 18px; color: #5f6b75; font-size: 15px; line-height: 1.85; }
.institutional-lead strong, .legal-copy strong { color: #27323c; }
.institutional-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.institutional-service { min-height: 250px; padding: 30px 30px 32px; border: 1px solid #dde5eb; border-radius: 16px; background: #fff; box-shadow: 0 9px 24px rgba(25,49,72,.045); }
.institutional-service > span { width: 38px; height: 38px; margin-bottom: 22px; border-radius: 50%; display: grid; place-items: center; background: #edf5fc; color: var(--blue); font-size: 11px; font-weight: 700; }
.institutional-service h3 { margin: 0 0 12px; color: var(--blue); font-size: 20px; line-height: 1.25; }
.institutional-service p { margin: 0; color: #68737c; font-size: 13px; line-height: 1.7; }
.commitment-section { padding-top: 72px; }
.commitment-card { padding: 46px 50px; border-radius: 20px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 56px; align-items: center; background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.commitment-card::after { content: ""; position: absolute; right: -80px; top: -90px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 55px rgba(255,255,255,.03), 0 0 0 110px rgba(255,255,255,.025); }
.commitment-card > * { position: relative; z-index: 1; }
.commitment-card .page-kicker { color: #fff; opacity: .72; }
.commitment-card h2 { margin: 0; font-size: 29px; line-height: 1.3; }
.commitment-copy { padding-left: 34px; border-left: 1px solid rgba(255,255,255,.22); }
.commitment-copy p { margin: 0 0 20px; font-size: 13px; line-height: 1.7; opacity: .88; }
.commitment-copy strong, .commitment-copy em { display: block; }
.commitment-copy strong { margin-bottom: 4px; font-size: 14px; }
.commitment-copy em { font-size: 12px; opacity: .78; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; align-items: start; }
.legal-copy { padding-right: 20px; }
.legal-values { padding: 32px; border-radius: 18px; color: #fff; background: var(--blue); position: sticky; top: 24px; }
.legal-symbol { width: 58px; height: 58px; margin-bottom: 24px; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; display: grid; place-items: center; font-family: Georgia, serif; font-size: 30px; }
.legal-values h3 { margin: 0 0 22px; font-size: 22px; line-height: 1.25; }
.legal-values ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.legal-values li { padding: 13px 0; border-top: 1px solid rgba(255,255,255,.17); font-size: 13px; font-weight: 700; }
.legal-values li:first-child { border-top: 0; }
.legal-closing { max-width: 860px; margin: 0 auto; padding: 45px 50px; text-align: center; border: 1px solid #dce7ef; border-radius: 18px; background: #fff; }
.legal-closing p { margin: 0 0 10px; color: var(--blue); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.legal-closing h2 { margin: 0; color: #17212a; font-size: 30px; line-height: 1.3; }

@media (max-width: 900px) {
  .institutional-services { grid-template-columns: 1fr; }
  .commitment-card { grid-template-columns: 1fr; gap: 30px; }
  .commitment-copy { padding-left: 0; padding-top: 26px; border-left: 0; border-top: 1px solid rgba(255,255,255,.22); }
  .legal-layout { grid-template-columns: 1fr; gap: 30px; }
  .legal-values { position: static; }
}

@media (max-width: 560px) {
  .institutional-lead h2, .legal-copy h2 { font-size: 28px; }
  .institutional-lead > p:not(.page-kicker), .legal-copy > p:not(.page-kicker) { font-size: 14px; line-height: 1.75; }
  .institutional-service { min-height: 0; padding: 25px 22px 27px; }
  .commitment-section { padding-top: 52px; }
  .commitment-card { padding: 30px 23px; border-radius: 16px; }
  .commitment-card h2 { font-size: 24px; }
  .legal-values { padding: 26px 23px; }
  .legal-closing { padding: 32px 22px; }
  .legal-closing h2 { font-size: 24px; }
}

/* Automatic YouTube channel gallery */
.youtube-gallery-status {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid #dce7ef;
  border-radius: 9px;
  background: #fff;
  color: #6f7881;
  font-size: 12px;
  line-height: 1.5;
}

.youtube-gallery-status[hidden] { display: none; }
.youtube-gallery-status[data-state="error"] { border-color: #ead8d8; background: #fffafa; color: #8a5d5d; }
.youtube-channel-link { margin-top: 28px; text-align: center; }
.youtube-channel-link a { display: inline-flex; min-height: 46px; padding: 0 20px; border-radius: 7px; align-items: center; justify-content: center; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; }
#youtube-player, #youtube-player iframe { width: 100%; height: 100%; }
