/*
Theme Name: NuBanca Corporativo
Theme URI: https://nubanca.com/
Author: Sibaruc
Description: Tema corporativo editable de una sola página con navegación por secciones para NuBanca.
Version: 1.1.1
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: nubanca
*/

:root {
  --nb-blue: #073b98;
  --nb-deep: #062c78;
  --nb-navy: #061d58;
  --nb-orange: #ff7900;
  --nb-sky: #6fa9ff;
  --nb-ink: #111827;
  --nb-muted: #596579;
  --nb-line: #dce4f0;
  --nb-bg: #f5f8fc;
  --nb-white: #fff;
  --nb-shadow: 0 12px 30px rgba(6, 43, 111, .08);
  --nb-radius: 15px;
  --nb-container: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--nb-ink);
  background: radial-gradient(circle at 50% 18%, #fff 0, #f7faff 56%, #eef4fb 100%);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.nb-container { width: min(calc(100% - 64px), var(--nb-container)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 98px;
  color: #fff;
  background: linear-gradient(116deg, #073d9d 0%, #062b76 100%);
  box-shadow: 0 5px 20px rgba(0, 24, 80, .17);
}
.header-inner { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-branding img { width: 290px; max-height: 58px; object-fit: contain; object-position: left center; }
.site-branding .custom-logo-link img { width: auto; }
.nb-logo-text { color: #fff; font-size: 38px; letter-spacing: .08em; font-weight: 300; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(30px, 4.2vw, 68px); margin: 0; padding: 0; list-style: none; }
.primary-nav a { position: relative; display: block; padding: 35px 0 32px; font-size: 19px; font-weight: 500; }
.primary-nav a::after { content: ""; position: absolute; right: 0; bottom: 23px; left: 0; height: 3px; transform: scaleX(0); background: var(--nb-orange); transition: transform .2s ease; }
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }
.menu-toggle { display: none; padding: 8px; color: #fff; border: 0; background: transparent; font-size: 28px; cursor: pointer; }

.nb-hero { position: relative; min-height: calc(100vh - 98px); overflow: hidden; background: #041b49; }
.nb-hero-grid { position: absolute; inset: 0; display: grid; grid-template-columns: 31.1% 34.7% 34.2%; }
.nb-city { position: relative; min-height: 100%; overflow: hidden; border-right: 2px solid rgba(255,255,255,.72); }
.nb-city:last-child { border-right: 0; }
.nb-city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(3,25,66,.03), rgba(1,13,37,.1) 50%, rgba(0,9,26,.62)); }
.nb-city img { width: 100%; height: 100%; object-fit: cover; }
.nb-city-name { position: absolute; z-index: 2; bottom: 8%; width: 100%; color: #fff; text-align: center; font-size: clamp(20px, 1.8vw, 29px); font-weight: 800; letter-spacing: .26em; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.nb-hero-overlay { position: relative; z-index: 4; display: grid; min-height: calc(100vh - 98px); place-items: center; padding: 80px 24px 140px; }
.nb-hero h1 { width: min(960px, 83vw); margin: 0; color: #fff; text-align: center; text-wrap: balance; font-size: clamp(36px, 4vw, 63px); line-height: 1.13; letter-spacing: -.025em; text-shadow: 0 4px 18px rgba(0,0,0,.35); }

.nb-one-page-section { scroll-margin-top: 98px; }
.nb-one-page-section:nth-of-type(odd) { background: rgba(255,255,255,.28); }
.nb-one-page-section + .nb-one-page-section { border-top: 1px solid rgba(7,59,152,.08); }

.nb-page { min-height: calc(100vh - 98px); padding: 50px 0 64px; }
.nb-page-head { margin: 0 auto 34px; text-align: center; }
.nb-page-title { margin: 0; color: var(--nb-blue); font-size: clamp(38px, 4vw, 55px); line-height: 1.1; letter-spacing: -.025em; }
.nb-page-title::after, .nb-section-title::after { content: ""; display: block; width: 54px; height: 3px; margin: 15px auto 0; border-radius: 3px; background: #6d9eea; }
.nb-section-title { margin: 0; color: var(--nb-blue); font-size: clamp(30px, 3vw, 43px); line-height: 1.15; text-align: center; }
.nb-kicker { margin: 14px 0 4px; color: #6b7280; font-size: 18px; font-weight: 700; text-transform: uppercase; }
.nb-lead { width: min(700px, 100%); margin: 8px auto 0; font-size: 16px; line-height: 1.6; }
.entry-content p { margin: 0 0 20px; }

.firm-layout { display: grid; grid-template-columns: 43% 57%; align-items: start; gap: 32px; }
.firm-copy .nb-page-title { text-align: left; }
.firm-copy .nb-page-title::after { margin-left: 0; }
.firm-copy .entry-content strong { color: var(--nb-blue); font-size: 18px; }
.firm-visual { position: relative; min-height: 490px; background: radial-gradient(circle, rgba(255,255,255,.95), rgba(238,245,254,.45) 48%, transparent 70%); }
.orbit { position: absolute; inset: 35px 9% 40px; border: 2px dashed #5d92e8; border-radius: 50%; }
.orbit-center { position: absolute; z-index: 3; top: 50%; left: 50%; display: grid; width: 210px; height: 210px; transform: translate(-50%,-50%); place-items: center; border: 8px solid var(--nb-blue); border-radius: 50%; background: #fff; box-shadow: 0 10px 35px rgba(6,43,111,.12); }
.orbit-center img { width: 155px; }
.orbit-item { position: absolute; z-index: 4; width: 180px; text-align: center; }
.orbit-item .nb-icon-circle { margin-inline: auto; }
.orbit-item h3 { margin: 8px 0 3px; color: var(--nb-blue); font-size: 16px; text-transform: uppercase; }
.orbit-item p { margin: 0; font-size: 14px; }
.orbit-item.growth { top: 9%; left: 0; }
.orbit-item.investors { top: 9%; right: 0; }
.orbit-item.markets { right: 50%; bottom: -4%; width: 360px; transform: translateX(50%); }
.nb-icon-circle { display: grid; width: 94px; height: 94px; color: var(--nb-blue); place-items: center; border: 2px solid var(--nb-blue); border-radius: 50%; background: #fff; }
.nb-icon-circle svg { width: 54px; height: 54px; }

.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 54px; }
.metric-card { min-height: 295px; padding: 26px 22px; text-align: center; border: 1px solid var(--nb-line); border-radius: var(--nb-radius); background: rgba(255,255,255,.9); box-shadow: var(--nb-shadow); }
.metric-card svg { width: 69px; height: 69px; margin: 0 auto 16px; color: var(--nb-blue); }
.metric-card h3 { min-height: 55px; margin: 0; color: var(--nb-blue); font-size: 18px; line-height: 1.35; }
.metric-card h3::after, .service-card h2::after { content: ""; display: block; width: 44px; height: 3px; margin: 15px auto; background: #68a1ee; }
.metric-card p { margin: 0; font-size: 15px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 38px; }
.service-card { padding: 0 48px; border-right: 1px solid #cddcf0; }
.service-card:first-child { padding-left: 18px; }
.service-card:last-child { padding-right: 18px; border-right: 0; }
.service-icon { height: 105px; color: var(--nb-orange); }
.service-icon svg { width: 92px; height: 92px; margin: auto; stroke-width: 1.7; }
.service-card h2 { min-height: 72px; margin: 6px 0 0; color: var(--nb-blue); text-align: center; font-size: 24px; line-height: 1.25; }
.service-card .entry-content { font-size: 15px; }
.service-card ul { margin: 16px 0 0; padding-left: 19px; }
.service-card li { margin-bottom: 8px; }
.service-card li::marker { color: var(--nb-orange); }

.team-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px 30px; width: min(1260px, 100%); margin: 28px auto 0; }
.team-card { grid-column: span 3; overflow: hidden; padding: 14px 10px 20px; text-align: center; border: 1px solid #e0e4ea; border-radius: var(--nb-radius); background: #fff; box-shadow: 0 5px 20px rgba(6,43,111,.05); }
.team-card:nth-child(5) { grid-column: 4 / span 3; }
.team-card:nth-child(6) { grid-column: 7 / span 3; }
.team-photo { width: min(175px, 78%); aspect-ratio: 1 / 1.05; margin: 0 auto 12px; object-fit: cover; filter: grayscale(1); }
.team-card h2 { margin: 0; color: var(--nb-navy); font-size: 20px; line-height: 1.2; }
.team-role { margin: 5px 0 8px; color: var(--nb-orange); font-weight: 700; }
.team-bio { margin: 0; font-size: 14px; line-height: 1.52; }

.contact-top { display: grid; grid-template-columns: .82fr 1.7fr; gap: 48px; width: min(1100px, 100%); margin: 0 auto; }
.contact-copy .nb-page-title { text-align: left; }
.contact-copy .nb-page-title::after { margin-left: 0; }
.contact-list { display: grid; gap: 24px; margin-top: 28px; }
.contact-item { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 18px; }
.contact-item svg { width: 52px; height: 52px; padding: 12px; color: var(--nb-orange); border: 1px solid var(--nb-line); border-radius: 50%; background: #fff; }
.contact-item strong { display: block; color: var(--nb-blue); }
.contact-item span, .contact-item a { font-size: 18px; }
.contact-form { padding: 24px; border: 1px solid var(--nb-line); border-radius: var(--nb-radius); background: rgba(255,255,255,.94); box-shadow: var(--nb-shadow); }
.contact-form h2 { margin: 0 0 12px; color: var(--nb-blue); font-size: 23px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 5px; font-size: 14px; }
.form-field input, .form-field textarea { width: 100%; padding: 12px 14px; border: 1px solid #ccd5e1; border-radius: 4px; background: #fff; font: inherit; }
.form-field textarea { min-height: 92px; resize: vertical; }
.nb-button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 10px 24px; color: #fff; border: 0; border-radius: 4px; background: linear-gradient(135deg, #0b43ad, #062b7f); box-shadow: 0 5px 15px rgba(5,49,137,.23); font-weight: 700; cursor: pointer; }
.nb-button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.form-notice { margin: 0 0 15px; padding: 10px 14px; border-radius: 5px; background: #e7f7ed; color: #146b35; }
.form-notice.error { background: #ffeded; color: #9f2727; }

.offices-section { margin-top: 40px; padding: 30px 0 12px; background: rgba(237,244,253,.72); }
.offices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: min(1075px, 100%); margin: 22px auto 0; }
.office-card { display: grid; grid-template-columns: 85px 1fr; align-items: center; min-height: 165px; padding: 20px; border: 1px solid var(--nb-line); border-radius: var(--nb-radius); background: #fff; }
.office-card svg { width: 64px; height: 64px; color: var(--nb-orange); }
.office-card h3 { margin: 0; color: var(--nb-blue); font-size: 19px; }
.office-card strong { display: block; margin: 2px 0 7px; }
.office-card p { margin: 0; font-size: 14px; line-height: 1.45; }
.meeting-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1075px, 100%); margin: 20px auto 0; padding: 20px 28px; color: #fff; border-radius: 10px; background: linear-gradient(120deg, #073d9b, #06256f); }
.meeting-copy { display: flex; align-items: center; gap: 18px; }
.meeting-copy svg { width: 48px; height: 48px; color: #ff9a00; }
.meeting-copy strong { display: block; font-size: 17px; }
.meeting-copy p { margin: 0; font-size: 14px; }
.meeting-bar .nb-button { border: 1px solid rgba(255,255,255,.85); box-shadow: none; }

.site-footer { padding: 20px 0; color: rgba(255,255,255,.8); background: var(--nb-navy); text-align: center; font-size: 13px; }
.site-footer p { margin: 0; }

@media (max-width: 1100px) {
  .firm-layout { grid-template-columns: 1fr; }
  .firm-visual { width: min(760px, 100%); margin-inline: auto; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { gap: 28px; }
  .service-card { padding: 0 20px; }
  .team-card { grid-column: span 4; }
  .team-card:nth-child(5), .team-card:nth-child(6) { grid-column: span 4; }
}

@media (max-width: 820px) {
  .nb-container { width: min(calc(100% - 36px), var(--nb-container)); }
  .site-header, .header-inner { min-height: 78px; }
  .site-branding img { width: 230px; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; top: 78px; right: 0; left: 0; display: none; padding: 8px 22px 20px; background: #062b76; box-shadow: 0 12px 20px rgba(0,0,0,.15); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav a { padding: 13px 4px; }
  .primary-nav a::after { bottom: 7px; right: auto; width: 60px; }
  .nb-hero, .nb-hero-overlay { min-height: calc(100vh - 78px); }
  .nb-one-page-section { scroll-margin-top: 78px; }
  .nb-hero-grid { grid-template-columns: 1fr; }
  .nb-city { position: absolute; inset: 0; opacity: 0; animation: cityCycle 18s infinite; border: 0; }
  .nb-city:nth-child(1) { opacity: 1; animation-delay: 0s; }
  .nb-city:nth-child(2) { animation-delay: 6s; }
  .nb-city:nth-child(3) { animation-delay: 12s; }
  .nb-city-name { bottom: 8%; }
  .nb-hero h1 { width: min(650px, 92vw); font-size: clamp(34px, 8vw, 52px); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-card, .service-card:first-child, .service-card:last-child { max-width: 650px; margin-inline: auto; padding: 0; border: 0; }
  .team-card { grid-column: span 6; }
  .team-card:nth-child(5), .team-card:nth-child(6) { grid-column: span 6; }
  .contact-top { grid-template-columns: 1fr; }
  .offices-grid { grid-template-columns: 1fr; }
}

@keyframes cityCycle {
  0%, 27% { opacity: 1; }
  34%, 93% { opacity: 0; }
  100% { opacity: 1; }
}

@media (max-width: 600px) {
  .nb-page { padding-top: 34px; }
  .site-branding img { width: 205px; }
  .metric-grid, .form-grid { grid-template-columns: 1fr; }
  .firm-visual { min-height: 620px; }
  .orbit { inset: 72px 8% 100px; }
  .orbit-center { width: 165px; height: 165px; border-width: 6px; }
  .orbit-center img { width: 125px; }
  .orbit-item { width: 145px; }
  .orbit-item.growth { top: 0; left: -4px; }
  .orbit-item.investors { top: 0; right: -4px; }
  .orbit-item.markets { bottom: -2%; width: 280px; }
  .orbit-item p { font-size: 12px; }
  .nb-icon-circle { width: 72px; height: 72px; }
  .nb-icon-circle svg { width: 40px; height: 40px; }
  .team-grid { display: block; }
  .team-card { max-width: 380px; margin: 0 auto 18px; }
  .contact-form { padding: 18px; }
  .form-field.full { grid-column: auto; }
  .office-card { grid-template-columns: 62px 1fr; padding: 16px; }
  .office-card svg { width: 48px; height: 48px; }
  .meeting-bar { align-items: stretch; flex-direction: column; }
  .meeting-bar .nb-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nb-city { animation: none; }
  .nb-city:first-child { opacity: 1; }
}
