/* ==========================================================================
   style-shell.css — Estilos FDR para el shell visual independiente (S3.1 + S4.5 Rich Design)
   Marca: oro #e6ac34, topbar negro, footer #2e2e30, tipografía Roboto.
   Responsive: grid + menú móvil CSS puro (checkbox) — sin JavaScript.
   ========================================================================== */

:root {
  --gold: #e6ac34;
  --gold-hover: #cc8b09;
  --gold-light: #fed750;
  --link: #8a5f00;   /* oro/bronce accesible: 5.65:1 sobre blanco (WCAG AA) */
  --gray: #e1e1e1;
  --dark: #1e1e20;
  --black: #111112;
  --white: #ffffff;
  --bg-soft: #f8f9fa;
  --text: #222222;
  --muted: #555555;
  --site-width: 1160px;
  --radius: 6px;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.14);
}

/* ==========================================================================
   Tipografía local (Roboto auto-alojada)
   ========================================================================== */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/roboto-v30-latin-400.woff2) format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/roboto-v30-latin-500.woff2) format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/roboto-v30-latin-700.woff2) format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(fonts/roboto-v30-latin-900.woff2) format("woff2");
}

*, *:before, *:after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { max-width: 100vw; overflow-x: hidden; }

body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--gold-hover); text-decoration: underline; }

.wrap {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--gold);
  color: var(--black);
  padding: 10px 18px;
  font-weight: 700;
  z-index: 1000;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.topbar {
  background: var(--black);
  color: #c9c9c9;
  font-size: 13.5px;
  padding: 6px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-contact { display: flex; gap: 18px; }
.topbar-contact a { color: #c9c9c9; text-decoration: none; }
.topbar-contact a:hover { color: var(--gold); }

.main-header {
  padding: 12px 0;
}
.main-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.logo img { height: 44px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}
.nav-item { position: relative; }
.nav-item > a {
  color: var(--text);
  font-weight: 500;
  font-size: 15.5px;
  padding: 8px 4px;
  display: inline-block;
}
.nav-item > a:hover,
.nav-item.active > a {
  color: var(--gold-hover);
  text-decoration: none;
}
.nav-item.has-dropdown > a .caret { font-size: 10px; margin-left: 2px; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  z-index: 100;
  border-top: 3px solid var(--gold);
}
.dropdown li a {
  display: block;
  padding: 8px 18px;
  font-size: 14.5px;
  color: var(--text);
  font-weight: 400;
}
.dropdown li a:hover {
  background: var(--bg-soft);
  color: var(--gold-hover);
  text-decoration: none;
}
.nav-item.has-dropdown:hover .dropdown { display: block; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switch {
  display: flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  gap: 4px;
  background: var(--bg-soft);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--gray);
}
.lang-link { color: var(--muted); text-decoration: none; }
.lang-link.active { color: var(--black); }
.lang-sep { color: #aaa; }

.btn-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn-cta:hover {
  background: var(--gold-hover);
  color: var(--black);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--black);
  text-decoration: none;
}
.btn-cta-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
}
.btn-cta-gold:hover {
  background: var(--gold-light);
  color: var(--black);
  text-decoration: none;
}

.nav-toggle, .nav-toggle-label { display: none; }

/* ==========================================================================
   Hero Sections
   ========================================================================== */
.hero-home {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding: 100px 0 110px;
  overflow: hidden;
}
.hero-home .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-home .hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 20px;
}
.hero-home h1 {
  font-size: 46px;
  line-height: 1.15;
  font-weight: 900;
  margin: 0 0 16px;
  max-width: 800px;
}
.hero-home .lead {
  font-size: 20px;
  line-height: 1.5;
  max-width: 680px;
  opacity: 0.92;
  margin: 0 0 28px;
}
.hero-cta-group { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero {
  background: #18181a;
  color: var(--white);
  padding: 56px 0 52px;
  border-bottom: 4px solid var(--gold);
}
.page-hero h1 {
  font-size: 34px;
  font-weight: 900;
  margin: 0 0 10px;
}
.page-hero .lead {
  font-size: 17.5px;
  opacity: 0.9;
  max-width: 760px;
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   Content Sections & Common UI
   ========================================================================== */
.content-section { padding: 60px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-dark { background: var(--dark); }
.text-white { color: #eaeaea; }
.text-white h2, .text-white h3, .text-white strong { color: var(--white); }
.text-gold { color: var(--gold) !important; }
.text-center { text-align: center; }

.section-header { margin-bottom: 40px; }
.section-header h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--black);
  margin: 0 0 10px;
}
.section-header.text-center h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--black);
  margin: 36px 0 16px;
}
.content-section h2:first-child { margin-top: 0; }
.content-section h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--gold);
  margin-top: 8px;
  border-radius: 2px;
}
.content-section h3 { font-size: 21px; font-weight: 700; color: var(--black); margin: 26px 0 10px; }
.content-section h4 { font-size: 18px; font-weight: 700; color: var(--black); margin: 20px 0 8px; }
.content-section p { margin: 0 0 18px; }
.content-section ul, .content-section ol { padding-left: 24px; margin: 0 0 20px; }
.content-section li { margin-bottom: 8px; }
.content-section strong { color: var(--black); }
.content-section blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  border-left: 4px solid var(--gold);
  background: var(--bg-soft);
  color: var(--muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ==========================================================================
   Home Components (Rich Grids, Showcases, Stats)
   ========================================================================== */
.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.home-service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--text);
  text-decoration: none;
}
.home-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  text-decoration: none;
}
.service-card-img {
  height: 160px;
  overflow: hidden;
  background: #eee;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.home-service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 10px;
}
.service-card-content p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}
.service-card-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--link);
}
.home-service-card:hover .service-card-link { color: var(--gold-hover); }

.two-col-showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.showcase-media img {
  width: 100%;
  border-radius: var(--radius);
}
.shadow-lg { box-shadow: var(--shadow-lg); }
.map-img { max-height: 340px; width: auto; margin: 0 auto 20px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 12px;
  padding: 16px 0;
  border-top: 1px solid var(--gray);
  border-bottom: 1px solid var(--gray);
}
.stat-item { text-align: left; }
.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
}
.stat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.countries-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.country-pill {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.principle-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 30px 24px;
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
.principle-number {
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 8px;
}
.principle-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 10px;
}
.principle-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Team Grid & Member Cards (Nuestro Equipo)
   ========================================================================== */
.team-category-header {
  margin: 40px 0 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
.team-category-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--black);
  margin: 0;
}
.team-category-header h2::after { display: none; }

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.team-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  align-items: start;
}
.team-card-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-avatar {
  width: 220px;
  height: 270px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background: #eee;
}
.team-card-body { min-width: 0; }
.team-name {
  font-size: 23px;
  font-weight: 800;
  color: var(--black);
  margin: 0 0 6px;
}
.team-name::after { display: none; }
.team-role {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-hover);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.team-bio {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}
.team-bio h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin: 18px 0 6px;
}
.team-bio ul { padding-left: 20px; margin: 0 0 14px; }
.team-bio li { margin-bottom: 4px; }

/* ==========================================================================
   Services Grid (Hub de servicios)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.service-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--black);
}
.service-card h3 { margin: 0 0 10px; font-size: 19px; color: var(--black); }
.service-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ==========================================================================
   Tables & Data
   ========================================================================== */
.table-responsive {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}
.data-table th {
  background: #222;
  color: var(--white);
  padding: 12px 16px;
  font-weight: 700;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray);
  color: var(--text);
}
.data-table tr:nth-child(even) { background: var(--bg-soft); }

/* ==========================================================================
   Blog Components
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.blog-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: all 0.15s ease;
}
.blog-card:hover {
  text-decoration: none;
  color: var(--black);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.blog-card h2 { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--black); }
.blog-card h2::after { display: none; }
.post-meta { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }

/* ==========================================================================
   Contact Block
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
}
.contact-info-card {
  background: var(--bg-soft);
  padding: 28px;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}
.contact-item { margin-bottom: 16px; }
.contact-label { font-weight: 700; font-size: 13.5px; text-transform: uppercase; color: var(--muted); display: block; }
.contact-val { font-size: 16px; color: var(--black); font-weight: 500; }

.contact-form {
  background: var(--white);
  padding: 28px;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dark);
  color: #d7d7d7;
  margin-top: 40px;
}
.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 60px 20px 48px;
}
.footer-col { min-width: 0; }
.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #d7d7d7; font-size: 14.5px; }
.footer-col a:hover { color: var(--gold); text-decoration: none; }
.footer-brand img { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: #b0b0b0; }
.footer-social { margin-top: 16px; display: flex; gap: 16px; }
.footer-social a { font-size: 14px; font-weight: 700; color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13.5px;
  color: #999;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .home-services-grid { grid-template-columns: repeat(2, 1fr); }
  .principles-grid { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card { grid-template-columns: 1fr; }
  .team-avatar { width: 100%; max-width: 260px; height: auto; }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    border-top: 1px solid var(--gray);
  }
  .nav-list { flex-direction: column; gap: 12px; }
  .dropdown { position: static; box-shadow: none; border: none; padding-left: 14px; display: block; }
  
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
  }
  .nav-toggle-label span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--black);
    border-radius: 2px;
  }
  .nav-toggle:checked ~ .main-nav { display: block; }
  
  .two-col-showcase { grid-template-columns: 1fr; gap: 32px; }
  .reverse-mobile { display: flex; flex-direction: column-reverse; }
  .hero-home h1 { font-size: 34px; }
  .hero-home { padding: 60px 0; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .home-services-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .form-row { grid-template-columns: 1fr; }
}

/* Social Icons Button Bar */
.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff !important;
  transition: all 0.2s ease;
  text-decoration: none !important;
}
.social-icon-btn:hover {
  background: var(--gold);
  color: #101114 !important;
  border-color: var(--gold);
  transform: translateY(-2px);
}
