/* =========================================================
   ARojasExtranjería — Design tokens & base styles
   ========================================================= */

:root{
  /* Brand colors (from logo) */
  --navy-900:#0e2438;
  --navy-800:#12314c;
  --navy-700:#1b3a5c;
  --navy-600:#264d73;
  --teal-700:#1f7a72;
  --teal-600:#2b9a90;
  --teal-500:#37ad9f;
  --teal-100:#e6f5f3;
  --teal-50:#f3faf9;
  --gold-500:#c8a24a;

  /* Semantic tokens */
  --color-bg:#ffffff;
  --color-bg-alt:#f6f9fa;
  --color-surface:#ffffff;
  --color-text:#1a2530;
  --color-text-muted:#54636e;
  --color-border:#e2e8ec;
  --color-primary:var(--navy-700);
  --color-primary-hover:var(--navy-800);
  --color-accent:var(--teal-600);
  --color-accent-hover:var(--teal-700);
  --color-link:var(--teal-700);
  --color-on-primary:#ffffff;
  --color-success:#1f9d55;
  --color-danger:#c0392b;

  /* Typography */
  --font-heading:"Fraunces","Georgia",serif;
  --font-body:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;

  /* Spacing (8px rhythm) */
  --space-1:.25rem;
  --space-2:.5rem;
  --space-3:1rem;
  --space-4:1.5rem;
  --space-5:2rem;
  --space-6:3rem;
  --space-7:4rem;
  --space-8:6rem;

  /* Layout */
  --container-max:1180px;
  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:22px;
  --shadow-sm:0 1px 3px rgba(14,36,56,.08);
  --shadow-md:0 8px 24px rgba(14,36,56,.10);
  --shadow-lg:0 20px 48px rgba(14,36,56,.16);
  --header-h:88px;
}

:root{color-scheme:light}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--color-bg);
  color:var(--color-text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block}
a{color:var(--color-link);text-decoration:none}
a:hover{text-decoration:underline}
ul{margin:0;padding:0}
h1,h2,h3,h4{
  font-family:var(--font-heading);
  color:var(--color-text);
  line-height:1.2;
  margin:0 0 var(--space-3);
  font-weight:600;
  letter-spacing:-.01em;
}
h1{font-size:clamp(2.1rem,4.4vw,3.2rem)}
h2{font-size:clamp(1.7rem,3vw,2.35rem)}
h3{font-size:clamp(1.25rem,2vw,1.5rem)}
p{margin:0 0 var(--space-3);color:var(--color-text)}
.text-muted{color:var(--color-text-muted)}
.eyebrow{
  display:inline-flex;align-items:center;gap:.5rem;
  font-family:var(--font-body);font-weight:600;font-size:.8rem;
  letter-spacing:.08em;text-transform:uppercase;color:var(--color-accent);
  margin-bottom:var(--space-3);
}
.eyebrow::before{content:"";width:22px;height:2px;background:var(--color-accent);display:inline-block;border-radius:2px}

/* Focus visibility (accessibility) */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{
  outline:3px solid var(--teal-500);
  outline-offset:2px;
  border-radius:4px;
}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}

.container{max-width:var(--container-max);margin:0 auto;padding:0 var(--space-4)}
.section{padding:var(--space-8) 0}
.section-alt{background:var(--color-bg-alt)}
.section-head{max-width:680px;margin:0 auto var(--space-6);text-align:center}
.section-head.left{margin:0 0 var(--space-6);text-align:left}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-family:var(--font-body);font-weight:600;font-size:1rem;
  padding:.85rem 1.6rem;border-radius:999px;border:2px solid transparent;
  cursor:pointer;transition:transform .15s ease,background-color .2s ease,box-shadow .2s ease,color .2s ease;
  min-height:48px;line-height:1;text-decoration:none;
}
.btn:hover{text-decoration:none}
.btn:active{transform:scale(.98)}
.btn-primary{background:var(--color-primary);color:var(--color-on-primary);box-shadow:var(--shadow-sm)}
.btn-primary:hover{background:var(--color-primary-hover);box-shadow:var(--shadow-md)}
.btn-accent{background:var(--color-accent);color:#fff}
.btn-accent:hover{background:var(--color-accent-hover)}
.btn-outline{background:transparent;border-color:var(--color-border);color:var(--color-text)}
.btn-outline:hover{border-color:var(--color-primary);color:var(--color-primary)}
.btn-lg{padding:1.05rem 2.1rem;font-size:1.05rem}
.btn-whatsapp{background:#25945a;color:#fff}
.btn-whatsapp:hover{background:#1f7c4c}
.btn-block{width:100%}

/* Icon helper */
.icon{width:1em;height:1em;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon-fill{fill:currentColor;stroke:none}

/* Header */
.site-header{
  position:sticky;top:0;z-index:100;background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--color-border);
  height:var(--header-h);
}
.header-inner{
  display:flex;align-items:center;
  height:100%;gap:var(--space-6);
}
.brand{display:flex;align-items:center;gap:.6rem;font-family:var(--font-heading);font-weight:700;font-size:1.15rem;color:var(--navy-700);flex:0 0 auto;min-width:0}
.brand img{height:44px;width:auto;max-width:38vw}
@media (min-width:520px){.brand img{height:52px;max-width:none}}
@media (min-width:900px){.brand img{height:64px}}
.brand-text-accent{color:var(--color-accent)}

.main-nav{display:none}
.main-nav ul{display:flex;gap:var(--space-5);align-items:center}
.main-nav a{color:var(--color-text);font-weight:600;font-size:.96rem}
.main-nav a[aria-current="page"]{color:var(--color-accent)}
.header-actions{display:flex;align-items:center;gap:var(--space-2);margin-left:auto;flex:0 0 auto}
@media (min-width:640px){.header-actions{gap:var(--space-3)}}
@media (max-width:519px){
  .header-actions .btn{padding:.55rem .85rem;font-size:.85rem;min-height:40px}
}
.header-phone{display:none;align-items:center;gap:.4rem;font-weight:700;color:var(--navy-700);white-space:nowrap}

.nav-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;border-radius:10px;border:1px solid var(--color-border);
  background:#fff;cursor:pointer;
}
.mobile-nav{
  display:none;position:fixed;inset:var(--header-h) 0 0 0;background:#fff;z-index:99;
  overflow-y:auto;padding:var(--space-5) var(--space-4) var(--space-8);
}
.mobile-nav.is-open{display:block}
.mobile-nav ul{display:flex;flex-direction:column;gap:var(--space-1);list-style:none;margin:0;padding:0}
.mobile-nav > ul > li > a{
  display:block;padding:var(--space-3) var(--space-2);font-weight:600;font-size:1.05rem;
  color:var(--color-text);border-bottom:1px solid var(--color-border);
}
.mobile-nav .btn{margin-top:var(--space-4)}

.mobile-nav-group{border-bottom:1px solid var(--color-border)}
.mobile-nav-group summary{
  display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);
  padding:var(--space-3) var(--space-2);font-weight:600;font-size:1.05rem;color:var(--color-text);
  cursor:pointer;list-style:none;
}
.mobile-nav-group summary::-webkit-details-marker{display:none}
.mobile-nav-group summary .icon{color:var(--color-accent);transition:transform .2s ease;flex:0 0 auto}
.mobile-nav-group[open] summary .icon{transform:rotate(180deg)}
.mobile-nav-sublist{display:flex;flex-direction:column;gap:0;padding:0 0 var(--space-2) var(--space-3)!important}
.mobile-nav-sublist li a{
  display:block;padding:var(--space-2) var(--space-2);font-weight:500;font-size:.97rem;
  color:var(--color-text-muted);border-bottom:0!important;
}
.mobile-nav-sublist li a:hover{color:var(--color-accent)}

@media (min-width:900px){
  .main-nav{display:block}
  .header-phone{display:inline-flex}
  .nav-toggle{display:none}
  .mobile-nav{display:none!important}
}

/* Hero */
.hero{
  position:relative;overflow:hidden;
  background:linear-gradient(160deg,var(--navy-900) 0%,var(--navy-700) 55%,var(--teal-700) 130%);
  color:#fff;padding:var(--space-8) 0 var(--space-7);
}
.hero-inner{display:grid;gap:var(--space-6);align-items:center}
@media (min-width:960px){.hero-inner{grid-template-columns:1.15fr .85fr}}
.hero h1{color:#fff}
.hero p.lede{color:#dbe7ea;font-size:1.15rem;max-width:540px}
.hero .eyebrow{color:var(--teal-100)}
.hero .eyebrow::before{background:var(--teal-100)}
.hero-ctas{display:flex;flex-wrap:wrap;gap:var(--space-3);margin-top:var(--space-4)}
.hero-badges{display:flex;flex-wrap:wrap;gap:var(--space-4);margin-top:var(--space-6);color:#cfe3e3;font-size:.9rem}
.hero-badge{display:flex;align-items:center;gap:.5rem;font-weight:600}
.hero-badge .icon{color:var(--teal-100)}
.hero-panel{
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.18);
  border-radius:var(--radius-lg);padding:var(--space-5);backdrop-filter:blur(6px);
}
.hero-panel h3{color:#fff}
.hero-panel ul{display:flex;flex-direction:column;gap:var(--space-3)}
.hero-panel li{display:flex;gap:.7rem;align-items:flex-start;color:#e7eff0}
.hero-panel > ul > li > .icon{color:var(--teal-100);margin-top:.2rem}

/* Breadcrumb */
.breadcrumb{background:var(--color-bg-alt);border-bottom:1px solid var(--color-border)}
.breadcrumb ol{display:flex;gap:.4rem;align-items:center;flex-wrap:wrap;padding:var(--space-3) 0;font-size:.9rem;color:var(--color-text-muted);list-style:none}
.breadcrumb a{color:var(--color-text-muted);font-weight:600}
.breadcrumb li:last-child{color:var(--color-text)}

/* Page hero (secondary pages) */
.page-hero{background:var(--navy-800);color:#fff;padding:var(--space-7) 0 var(--space-6)}
.page-hero h1{color:#fff;margin-bottom:var(--space-2)}
.page-hero p{color:#d7e4e5;max-width:640px;margin-bottom:0}

/* Trust bar */
.trust-bar{border-top:1px solid var(--color-border);border-bottom:1px solid var(--color-border);background:var(--color-bg-alt)}
.trust-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-4);padding:var(--space-5) 0;text-align:center}
@media (min-width:720px){.trust-grid{grid-template-columns:repeat(4,1fr)}}
.trust-item .num{font-family:var(--font-heading);font-size:1.9rem;color:var(--navy-700);font-weight:700;display:block}
.trust-item .label{font-size:.85rem;color:var(--color-text-muted);font-weight:600}

/* Cards / grids */
.grid{display:grid;gap:var(--space-4)}
.grid-2{grid-template-columns:1fr}
.grid-3{grid-template-columns:1fr}
.grid-4{grid-template-columns:1fr}
@media (min-width:700px){
  .grid-2{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .grid-4{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:1024px){
  .grid-3{grid-template-columns:repeat(3,1fr)}
  .grid-4{grid-template-columns:repeat(4,1fr)}
}

.card{
  background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);
  padding:var(--space-5);box-shadow:var(--shadow-sm);transition:box-shadow .2s ease,transform .2s ease;
  height:100%;
}
.card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.service-card{display:flex;flex-direction:column;gap:var(--space-3)}
.service-card .icon-wrap{
  width:52px;height:52px;border-radius:14px;background:var(--teal-100);color:var(--teal-700);
  display:flex;align-items:center;justify-content:center;flex:0 0 auto;
}
.service-card .icon-wrap .icon{width:26px;height:26px}
.service-card h3{margin-bottom:.25rem;font-size:1.2rem}
.service-card p{color:var(--color-text-muted);margin-bottom:var(--space-2);flex:1}
.service-card .card-link{font-weight:700;color:var(--color-accent);display:inline-flex;align-items:center;gap:.35rem}

.step{display:flex;gap:var(--space-4);align-items:flex-start}
.step-num{
  width:40px;height:40px;border-radius:50%;background:var(--navy-700);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:700;flex:0 0 auto;font-family:var(--font-heading);
}
.step h3{margin-bottom:.2rem;font-size:1.1rem}
.step p{color:var(--color-text-muted);margin-bottom:0}
.steps-list{display:flex;flex-direction:column;gap:var(--space-5)}

/* Why choose us */
.reason{display:flex;gap:var(--space-3);align-items:flex-start}
.reason .icon-wrap{
  width:44px;height:44px;border-radius:12px;background:var(--navy-700);color:#fff;
  display:flex;align-items:center;justify-content:center;flex:0 0 auto;
}
.reason h3{font-size:1.05rem;margin-bottom:.2rem}
.reason p{color:var(--color-text-muted);margin-bottom:0;font-size:.95rem}

/* Testimonials (placeholder) */
.testimonial{position:relative}
.testimonial blockquote{font-style:italic;color:var(--color-text);margin:0 0 var(--space-3);font-size:1.02rem}
.testimonial .author{display:flex;align-items:center;gap:.6rem;font-weight:700;font-size:.92rem}
.testimonial .stars{color:var(--gold-500);display:flex;gap:2px;margin-bottom:var(--space-2)}
.placeholder-tag{
  display:inline-flex;align-items:center;gap:.4rem;font-size:.72rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.05em;color:var(--color-text-muted);background:var(--color-bg-alt);
  border:1px dashed var(--color-border);padding:.25rem .6rem;border-radius:999px;margin-top:var(--space-3);
}

/* Article cards (Noticias hub + "Artículos relacionados" on service pages) */
.article-card{display:flex;flex-direction:column;gap:var(--space-2)}
.article-card .date{font-size:.82rem;color:var(--color-text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.03em}
.article-card h3{margin-bottom:0;font-size:1.15rem}
.article-card h3 a{color:var(--color-text)}
.article-card h3 a:hover{color:var(--color-accent);text-decoration:none}
.article-card p{color:var(--color-text-muted);flex:1;margin-bottom:0}
.article-card .card-link{margin-top:var(--space-1)}

/* FAQ */
.faq-item{border-bottom:1px solid var(--color-border)}
.faq-q{
  width:100%;text-align:left;background:none;border:none;cursor:pointer;
  display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);
  padding:var(--space-4) 0;font-family:var(--font-heading);font-weight:600;font-size:1.05rem;color:var(--color-text);
}
.faq-q .icon{transition:transform .2s ease;color:var(--color-accent);flex:0 0 auto}
.faq-item[open] .faq-q .icon{transform:rotate(45deg)}
.faq-a{padding:0 0 var(--space-4);color:var(--color-text-muted)}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary{list-style:none}

/* CTA band */
.cta-band{
  background:linear-gradient(135deg,var(--teal-700),var(--navy-800));
  color:#fff;border-radius:var(--radius-lg);padding:var(--space-6);text-align:center;
}
.cta-band h2{color:#fff}
.cta-band p{color:#dbe9e9}
.cta-band .hero-ctas{justify-content:center}

/* Forms */
.form-field{margin-bottom:var(--space-4)}
.form-field label{display:block;font-weight:600;margin-bottom:.4rem;font-size:.95rem}
.form-field .hint{font-size:.82rem;color:var(--color-text-muted);margin-top:.3rem}
.form-field input,.form-field select,.form-field textarea{
  width:100%;padding:.8rem .9rem;border:1px solid var(--color-border);border-radius:var(--radius-sm);
  font-family:var(--font-body);font-size:1rem;background:#fff;color:var(--color-text);min-height:48px;
}
.form-field textarea{min-height:130px;resize:vertical}
.required{color:var(--color-danger)}
.form-consent{display:flex;gap:.6rem;align-items:flex-start;font-size:.9rem;color:var(--color-text-muted)}
.form-consent input{width:auto;min-height:auto;margin-top:.2rem}

/* Contact info list */
.contact-list{display:flex;flex-direction:column;gap:var(--space-4)}
.contact-list li{display:flex;gap:var(--space-3);align-items:flex-start;list-style:none;color:var(--color-text)}
.contact-list .icon-wrap{
  width:44px;height:44px;border-radius:12px;background:var(--teal-100);color:var(--teal-700);
  display:flex;align-items:center;justify-content:center;flex:0 0 auto;
}
.contact-list strong{display:block;font-size:.95rem;color:var(--navy-700);font-weight:700}
.contact-list span,.contact-list a{color:var(--color-text-muted);font-size:.95rem}

.profile-photo-wrap{display:flex;justify-content:center}
.profile-photo{
  width:200px;height:200px;border-radius:50%;object-fit:cover;
  border:4px solid rgba(255,255,255,.3);box-shadow:var(--shadow-lg);flex:0 0 auto;
}
.page-hero .hero-inner{display:flex;flex-direction:column;gap:var(--space-5);align-items:center;text-align:center}
@media (min-width:960px){
  .page-hero .hero-inner{display:grid;grid-template-columns:1fr auto;gap:var(--space-6);align-items:center;text-align:left}
}

.map-embed{border-radius:var(--radius-md);overflow:hidden;border:1px solid var(--color-border);height:320px}
.map-embed iframe{width:100%;height:100%;border:0}

/* Footer */
.site-footer{background:var(--navy-900);color:#c9d6da;padding:var(--space-7) 0 var(--space-4)}
.footer-grid{display:grid;gap:var(--space-6);grid-template-columns:1fr}
@media (min-width:800px){.footer-grid{grid-template-columns:1.4fr 1fr 1fr 1fr}}
.footer-brand{display:flex;align-items:center;gap:.6rem;margin-bottom:var(--space-3)}
.footer-brand img{height:52px}
.site-footer h4{color:#fff;font-family:var(--font-body);font-size:.85rem;text-transform:uppercase;letter-spacing:.06em;margin-bottom:var(--space-3)}
.site-footer ul{display:flex;flex-direction:column;gap:.6rem}
.site-footer a{color:#c9d6da}
.site-footer a:hover{color:#fff}
.footer-bottom{
  margin-top:var(--space-6);padding-top:var(--space-4);border-top:1px solid rgba(255,255,255,.12);
  display:flex;flex-wrap:wrap;gap:var(--space-3);justify-content:space-between;font-size:.85rem;color:#8ea0a6;
}
.footer-bottom ul{flex-direction:row;gap:var(--space-4);flex-wrap:wrap}

.footer-social{display:flex;gap:.6rem;margin-top:var(--space-4)}
.footer-social a{
  width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.08);color:#fff;transition:background .2s ease,transform .2s ease;flex:0 0 auto;
}
.footer-social a:hover{background:var(--teal-600);transform:translateY(-2px);color:#fff}
.footer-social .icon{width:19px;height:19px}

/* Prominent social row for light-background cards (Sobre mí, Contacto) */
.social-prominent{display:flex;flex-direction:column;gap:var(--space-2);margin-top:var(--space-4)}
.social-prominent .social-label{font-weight:700;font-size:.9rem;color:var(--color-text)}
.social-prominent .social-row{display:flex;gap:.6rem}
.social-prominent a{
  width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:var(--teal-100);color:var(--teal-700);transition:background .2s ease,color .2s ease,transform .2s ease;flex:0 0 auto;
}
.social-prominent a:hover{background:var(--teal-600);color:#fff;transform:translateY(-2px)}
.social-prominent .icon{width:22px;height:22px}

/* Floating WhatsApp button */
.float-whatsapp{
  position:fixed;right:var(--space-4);bottom:var(--space-4);z-index:90;
  width:58px;height:58px;border-radius:50%;background:#25945a;color:#fff;
  display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-lg);
  transition:transform .2s ease;
}
.float-whatsapp:hover{transform:scale(1.06)}
.float-whatsapp .icon{width:28px;height:28px}

/* Cookie banner */
.cookie-banner{
  position:fixed;left:var(--space-4);right:var(--space-4);bottom:var(--space-4);z-index:200;
  max-width:640px;margin:0 auto;background:var(--color-surface);border:1px solid var(--color-border);
  border-radius:var(--radius-md);box-shadow:var(--shadow-lg);padding:var(--space-4);
  display:none;
}
.cookie-banner.is-visible{display:block}
.cookie-banner p{font-size:.88rem;color:var(--color-text-muted);margin-bottom:var(--space-3)}
.cookie-actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.cookie-actions .btn{padding:.6rem 1.1rem;font-size:.88rem;min-height:auto}

/* Utilities */
.mt-0{margin-top:0}
.mb-0{margin-bottom:0}
.center{text-align:center}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.skip-link{
  position:absolute;left:-9999px;top:0;background:var(--navy-800);color:#fff;padding:.7rem 1rem;z-index:300;border-radius:0 0 8px 0;
}
.skip-link:focus{left:0}
.badge-list{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-3)}
.badge{
  display:inline-flex;align-items:center;gap:.4rem;background:var(--color-bg-alt);border:1px solid var(--color-border);
  border-radius:999px;padding:.4rem .8rem;font-size:.85rem;font-weight:600;color:var(--color-text);
}
.badge .icon{color:var(--color-accent);width:16px;height:16px}
.divider{height:1px;background:var(--color-border);margin:var(--space-6) 0;border:0}
.table-clean{width:100%;border-collapse:collapse;margin:var(--space-4) 0}
.table-clean th,.table-clean td{text-align:left;padding:.75rem 1rem;border-bottom:1px solid var(--color-border);font-size:.95rem}
.table-clean th{background:var(--color-bg-alt);font-family:var(--font-heading);font-weight:600}
