/* ============================================
   PROXARIO.NET — Global Stylesheet
   Professional IP Law Firm — Caribbean & LATAM
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --navy:       #0B1D3A;
  --navy-light: #132B50;
  --navy-dark:  #060F1F;
  --gold:       #C4963C;
  --gold-light: #E2B96A;
  --gold-pale:  #F5ECD7;
  --white:      #FFFFFF;
  --off-white:  #F7F8FA;
  --gray-50:    #F9FAFB;
  --gray-100:   #F3F4F6;
  --gray-200:   #E5E7EB;
  --gray-300:   #D1D5DB;
  --gray-400:   #9CA3AF;
  --gray-500:   #6B7280;
  --gray-600:   #4B5563;
  --gray-700:   #374151;
  --gray-800:   #1F2937;
  --gray-900:   #111827;
  --red:        #DC2626;
  --green:      #16A34A;
  --blue-link:  #2563EB;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.12);
  --shadow-xl:  0 20px 50px rgba(0,0,0,.18);
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --max-width:  1200px;
  --transition: .3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; color: var(--gray-600); }

/* ---------- Utility ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--off-white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,.75); }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .95rem; font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.btn--primary {
  background: var(--gold); color: var(--navy-dark); border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-dark);
  box-shadow: 0 4px 16px rgba(196,150,60,.35);
}
.btn--outline {
  background: transparent; color: var(--white); border-color: var(--gold);
}
.btn--outline:hover {
  background: var(--gold); color: var(--navy-dark);
}
.btn--dark {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.btn--dark:hover {
  background: var(--navy-light); border-color: var(--navy-light);
}
.btn--sm { padding: .55rem 1.2rem; font-size: .85rem; }
.btn--lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(11,29,58,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196,150,60,.15);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.25); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: .6rem 1.5rem;
}
.header__logo { display: flex; align-items: center; gap: .6rem; }
.header__logo img { height: 42px; width: auto; }
.header__logo-text {
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem;
  font-weight: 700; color: var(--white); letter-spacing: .02em;
}
.header__logo-text span { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 0; }
.nav a {
  color: rgba(255,255,255,.85); font-size: .88rem;
  font-weight: 600; padding: .5rem 1rem;
  letter-spacing: .04em; text-transform: uppercase;
  position: relative; transition: color var(--transition);
}
.nav a::after {
  content: ''; position: absolute; bottom: 0; left: 1rem; right: 1rem;
  height: 2px; background: var(--gold); transform: scaleX(0);
  transition: transform var(--transition);
}
.nav a:hover, .nav a.active { color: var(--gold); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .btn { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  margin: 5px 0; transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  overflow: hidden; padding-top: 70px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='rgba(196,150,60,.04)' stroke-width='.5'/%3E%3C/svg%3E") repeat;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(196,150,60,.12); border: 1px solid rgba(196,150,60,.25);
  border-radius: 50px; padding: .35rem 1rem; margin-bottom: 1.5rem;
  font-size: .8rem; color: var(--gold-light); font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
}
.hero__badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{ opacity:1; } 50%{ opacity:.4; } }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__sub {
  font-size: 1.15rem; color: rgba(255,255,255,.7);
  line-height: 1.8; margin-bottom: 2.5rem; max-width: 540px;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem;
  margin-top: 3rem;
}
.hero__stat { text-align: center; }
.hero__stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; font-weight: 700; color: var(--gold);
}
.hero__stat-label { font-size: .82rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .05em; }
.hero__form-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2.5rem; box-shadow: var(--shadow-xl);
  position: relative; overflow: hidden;
}
.hero__form-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.hero__form-card h3 {
  font-size: 1.35rem; margin-bottom: .4rem; color: var(--navy);
}
.hero__form-card .subtitle {
  font-size: .9rem; color: var(--gray-500); margin-bottom: 1.5rem;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--gray-700); margin-bottom: .3rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; color: var(--gray-800);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,150,60,.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { width: 100%; justify-content: center; margin-top: .5rem; }
.form-note { font-size: .78rem; color: var(--gray-400); margin-top: .75rem; text-align: center; }

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem 0; position: relative; z-index: 3;
}
.trust-bar__inner {
  display: flex; justify-content: center; align-items: center;
  gap: 3rem; flex-wrap: wrap;
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
}
.trust-bar__item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .88rem; color: var(--gray-600); font-weight: 500;
}
.trust-bar__icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-pale); display: flex; align-items: center;
  justify-content: center; color: var(--gold); font-size: 1rem;
  flex-shrink: 0;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; border: 1px solid var(--gray-200);
  transition: all var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 0; background: var(--gold);
  transition: height var(--transition);
}
.service-card:hover {
  border-color: var(--gold); box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-card:hover::before { height: 100%; }
.service-card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--gold-pale); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; margin-bottom: 1rem;
}
.service-card h4 { margin-bottom: .5rem; }
.service-card p { font-size: .92rem; color: var(--gray-500); margin-bottom: 1rem; }
.service-card__link {
  font-size: .85rem; font-weight: 600; color: var(--gold);
  display: inline-flex; align-items: center; gap: .3rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.service-card__link:hover { gap: .6rem; }

/* ---------- Section Headers ---------- */
.section-header { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-header .overline {
  font-size: .78rem; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: .5rem;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--gray-500); }

/* ---------- Countries Grid ---------- */
.countries-section { padding: 5rem 0; }
.countries-tabs {
  display: flex; gap: .5rem; justify-content: center;
  margin-bottom: 2rem; flex-wrap: wrap;
}
.countries-tabs button {
  padding: .5rem 1.5rem; border: 1px solid var(--gray-300);
  border-radius: 50px; background: var(--white); cursor: pointer;
  font-size: .88rem; font-weight: 600; color: var(--gray-600);
  transition: all var(--transition);
}
.countries-tabs button.active, .countries-tabs button:hover {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.countries-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
}
.country-link {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200); background: var(--white);
  transition: all var(--transition); font-size: .9rem;
  color: var(--gray-700); font-weight: 500;
}
.country-link:hover {
  border-color: var(--gold); background: var(--gold-pale);
  color: var(--navy); transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.country-link img { width: 24px; height: 24px; border-radius: 2px; flex-shrink: 0; }

/* ---------- Why Choose / Benefits ---------- */
.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.benefit-item { text-align: center; padding: 1.5rem; }
.benefit-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-pale), rgba(196,150,60,.2));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.6rem;
}
.benefit-item h4 { margin-bottom: .4rem; }
.benefit-item p { font-size: .9rem; color: var(--gray-500); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-xl); padding: 3.5rem;
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(196,150,60,.06);
}
.cta-banner h2 { color: var(--white); margin-bottom: .75rem; position: relative; }
.cta-banner p { color: rgba(255,255,255,.7); margin-bottom: 2rem; max-width: 550px; margin-left: auto; margin-right: auto; position: relative; }
.cta-banner .btn { position: relative; }

/* ---------- Testimonial / Process ---------- */
.process-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; counter-reset: step;
}
.process-step { text-align: center; position: relative; counter-increment: step; }
.process-step::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 700;
  margin: 0 auto 1rem;
}
.process-step h4 { margin-bottom: .4rem; }
.process-step p { font-size: .88rem; color: var(--gray-500); }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-dark); color: rgba(255,255,255,.6);
  padding: 4rem 0 0;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 3rem;
}
.footer__brand p { font-size: .9rem; line-height: 1.7; margin-top: .75rem; }
.footer h5 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold); margin-bottom: 1rem;
}
.footer ul li { margin-bottom: .5rem; }
.footer ul a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer ul a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0; text-align: center;
  font-size: .82rem; color: rgba(255,255,255,.35);
}
.footer__location { font-size: .85rem; color: rgba(255,255,255,.5); }
.footer__location strong { color: var(--gold-light); }

/* ---------- Country Page Specific ---------- */
.country-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 7rem 0 3rem; text-align: center;
}
.country-hero h1 { color: var(--white); }
.country-hero p { color: rgba(255,255,255,.7); max-width: 600px; margin: .75rem auto 0; }
.country-flag { width: 60px; height: auto; margin: 0 auto 1rem; border-radius: 4px; box-shadow: var(--shadow-md); }

.country-content {
  display: grid; grid-template-columns: 1fr 340px; gap: 3rem;
  padding: 3rem 0;
}
.country-main { }
.country-main h2 { margin-top: 2rem; margin-bottom: .75rem; font-size: 1.4rem; }
.country-main h3 { margin-top: 1.5rem; margin-bottom: .5rem; font-size: 1.15rem; }
.country-main ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.country-main ul li {
  position: relative; padding-left: 1rem; margin-bottom: .5rem;
  color: var(--gray-600); font-size: .95rem;
}
.country-main ul li::before {
  content: ''; position: absolute; left: 0; top: .6em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.country-sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar-form {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-md);
}
.sidebar-form::before {
  content: ''; display: block;
  height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px; margin-bottom: 1.5rem;
}
.sidebar-form h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.sidebar-form .subtitle { font-size: .85rem; color: var(--gray-500); margin-bottom: 1.2rem; }
.sidebar-nav {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 1.5rem;
}
.sidebar-nav h4 { font-size: 1rem; margin-bottom: .75rem; }
.sidebar-nav a {
  display: flex; align-items: center; gap: .5rem;
  padding: .4rem 0; font-size: .88rem; color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}
.sidebar-nav a:last-child { border-bottom: none; }
.sidebar-nav a:hover { color: var(--gold); }
.sidebar-nav a img { width: 20px; height: 20px; }

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.contact-info-card {
  display: flex; gap: 1rem; padding: 1.5rem;
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  margin-bottom: 1rem;
}
.contact-info-card .icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold-pale); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 1.2rem;
}
.contact-info-card h4 { font-size: 1rem; margin-bottom: .2rem; }
.contact-info-card p { font-size: .9rem; margin-bottom: 0; }
.contact-info-card a { color: var(--blue-link); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: .75rem 0; font-size: .82rem; color: var(--gray-400);
}
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 .3rem; }

/* ---------- Success / Error Messages ---------- */
.alert { padding: 1rem 1.5rem; border-radius: var(--radius-md); margin-bottom: 1rem; font-size: .9rem; }
.alert--success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.alert--error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ---------- Internal Page Header ---------- */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 7rem 0 3rem; text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: .5rem; }
.page-header p { color: rgba(255,255,255,.65); max-width: 600px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__form-card { max-width: 480px; margin: 2rem auto 0; }
  .hero__stats { max-width: 400px; margin: 2rem auto 0; }
  .country-content { grid-template-columns: 1fr; }
  .country-sidebar { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav { 
    display: none; position: fixed; top: 62px; left: 0; right: 0;
    background: var(--navy-dark); flex-direction: column;
    padding: 1rem; gap: 0; border-bottom: 2px solid var(--gold);
  }
  .nav.open { display: flex; }
  .nav a { padding: .75rem 1rem; width: 100%; text-align: left; }
  .nav a::after { display: none; }
  .nav .btn { margin-left: 0; margin-top: .5rem; width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
  .hero { min-height: auto; padding: 6rem 0 3rem; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
  .hero__stat-num { font-size: 1.6rem; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .trust-bar__inner { gap: 1.5rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .countries-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
