/* ============================================
   FLIA MASSACESI — Hoja de estilos principal
   ============================================ */

/* ============================================
   HERO CON IMAGEN DE FONDO
   ============================================ */
/* La imagen se define inline en index.html para facilitar el reemplazo */
.hero-img {
  background-image:
    linear-gradient(135deg, rgba(20,32,60,0.75) 0%, rgba(44,62,107,0.60) 100%),
    var(--hero-bg, none);
  background-size: 100% 100%, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--border);
}
.stat {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-number span { color: var(--accent); }
.stat-label {
  display: block;
  font-size: 0.78rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

/* ============================================
   FEATURE CARDS COLOREADAS
   ============================================ */
.feature-card.color-gold  { border-top: 4px solid #C9A84C; }
.feature-card.color-blue  { border-top: 4px solid #4A90C4; }
.feature-card.color-green { border-top: 4px solid #4CAF7D; }
.feature-card.color-purple{ border-top: 4px solid #9B6BC4; }

.feature-card.color-gold  .feature-icon { background: rgba(201,168,76,0.12); }
.feature-card.color-blue  .feature-icon { background: rgba(74,144,196,0.12); }
.feature-card.color-green .feature-icon { background: rgba(76,175,125,0.12); }
.feature-card.color-purple .feature-icon { background: rgba(155,107,196,0.12); }

.feature-card.color-gold  a { color: #a8893d; }
.feature-card.color-blue  a { color: #3a78a8; }
.feature-card.color-green a { color: #3a8f65; }
.feature-card.color-purple a { color: #7d4fa8; }

/* ============================================
   SECCIÓN "EN LA PRENSA"
   ============================================ */
.press-section { background: var(--gray-light); padding: 4rem 0; }
.press-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 820px;
  margin: 0 auto;
  transition: var(--transition);
}
.press-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.press-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.press-content h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.press-content p  { color: var(--text-light); font-size: 0.875rem; margin: 0; }
.press-arrow {
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--text-light);
  flex-shrink: 0;
  transition: var(--transition);
}
.press-card:hover .press-arrow { color: var(--primary); transform: translateX(4px); }

/* ============================================
   TIMELINE — Historia / Migraciones
   ============================================ */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin-top: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(201,168,76,0.15));
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.05rem;
  top: 0.2rem;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--accent);
  flex-shrink: 0;
}
.timeline-arrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.timeline-flags {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.timeline-flags span { font-size: 1rem; color: var(--text-light); }
.timeline-item h3 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.timeline-item p   { color: var(--text-light); font-size: 0.9rem; margin: 0; }
.timeline-date {
  display: inline-block;
  background: rgba(44,62,107,0.08);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}

/* ============================================
   RAMAS — Cards por país
   ============================================ */
.rama-card.ar { border-left: 5px solid #74b2e0; }
.rama-card.br { border-left: 5px solid #4CAF7D; }
.rama-card.it { border-left: 5px solid #e05c5c; }
.rama-card.hr { border-left: 5px solid #4A90C4; }
.rama-card.us { border-left: 5px solid #9B6BC4; }

.rama-card.ar .rama-flag-bg { background: rgba(116,178,224,0.12); }
.rama-card.br .rama-flag-bg { background: rgba(76,175,125,0.12); }
.rama-card.it .rama-flag-bg { background: rgba(224,92,92,0.12); }
.rama-card.hr .rama-flag-bg { background: rgba(74,144,196,0.12); }
.rama-card.us .rama-flag-bg { background: rgba(155,107,196,0.12); }

.rama-flag-bg {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

/* ============================================
   IMAGEN DECORATIVA / FIGURA
   ============================================ */
.img-figura {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.img-figura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-placeholder {
  width: 100%;
  min-height: 260px;
  background: linear-gradient(135deg, var(--primary) 0%, #3d5491 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}
.img-placeholder .img-icon { font-size: 2.5rem; opacity: 0.6; }

/* Layout 2 columnas texto + imagen */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

/* ============================================
   PAÍS CARDS MEJORADAS
   ============================================ */
.country-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.country-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.country-card-banner {
  height: 110px;
  overflow: hidden;
}
.country-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
}
.country-card-body { padding: 1.25rem 1.5rem; }
.country-card-body h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.country-card-body p  { font-size: 0.82rem; color: var(--text-light); margin: 0 0 0.75rem; }

.banner-ar, .banner-br, .banner-it, .banner-hr, .banner-us { background: none; }

/* ============================================
   RESPONSIVE NUEVOS COMPONENTES
   ============================================ */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--border); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }

  .press-card { flex-direction: column; text-align: center; }
  .press-logo { align-self: center; }
  .press-arrow { display: none; }

  .split-section { grid-template-columns: 1fr; gap: 2rem; }
  .split-section.reverse { direction: ltr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Variables --- */
:root {
  --primary:       #2C3E6B;
  --primary-dark:  #1e2d4f;
  --accent:        #C9A84C;
  --accent-dark:   #a8893d;
  --bg:            #F8F9FA;
  --white:         #FFFFFF;
  --text:          #2D2D2D;
  --text-light:    #6C757D;
  --border:        #DEE2E6;
  --gray-light:    #F1F3F5;

  --font-heading:  'Montserrat', sans-serif;
  --font-body:     'Open Sans', sans-serif;

  --shadow-sm:     0 2px 8px rgba(0,0,0,0.06);
  --shadow:        0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.14);

  --radius:        8px;
  --radius-lg:     16px;
  --transition:    0.3s ease;
  --container:     1160px;
  --header-h:      68px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Tipografía --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--primary); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}
.btn-secondary {
  background: var(--primary);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  height: var(--header-h);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  height: var(--header-h);
}
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--white);
  line-height: 1.2;
}
.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.nav-tagline {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: rgba(255,255,255,0.88);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: rgba(255,255,255,0.08);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 200;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: var(--transition);
}
.dropdown li a:hover {
  background: var(--gray-light);
  color: var(--primary);
  padding-left: 1.5rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO — Inicio
   ============================================ */
.hero {
  background-color: var(--primary-dark);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  color: var(--white);
  max-width: 700px;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(201, 168, 76, 0.2);
  color: var(--accent);
  border: 1px solid rgba(201, 168, 76, 0.4);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--accent); }
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  animation: bounce 2s infinite;
}
.hero-scroll::after {
  content: '↓';
  font-size: 1.2rem;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   PAGE HERO — páginas internas
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 3.5rem 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.6rem, 4vw, 2.4rem); }
.page-hero p { color: rgba(255,255,255,0.7); margin-top: 0.5rem; font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span::before { content: '/'; margin-right: 0.5rem; }

/* ============================================
   FEATURES GRID — Inicio
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(44, 62, 107, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.feature-card h3 { margin-bottom: 0.25rem; }
.feature-card p { color: var(--text-light); font-size: 0.9rem; flex: 1; }
.feature-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  transition: var(--transition);
}
.feature-card a:hover { color: var(--accent); gap: 0.6rem; }

/* ============================================
   QUOTE / HIGHLIGHT
   ============================================ */
.quote-section {
  background: var(--primary);
  padding: 4rem 0;
  text-align: center;
}
.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.4;
}
.quote-text em { color: var(--accent); font-style: normal; }
.quote-sub { color: rgba(255,255,255,0.55); font-size: 0.9rem; }

/* ============================================
   PAÍSES
   ============================================ */
.countries-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.country-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.country-chip:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.country-flag { font-size: 1.4rem; }

/* ============================================
   CARDS GENÉRICAS
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Badge "En construcción" */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-pending {
  background: rgba(201, 168, 76, 0.15);
  color: var(--accent-dark);
  border: 1px solid rgba(201, 168, 76, 0.4);
}
.badge-active {
  background: rgba(40, 167, 69, 0.12);
  color: #198754;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

/* ============================================
   SECCIONES DE CONTENIDO (quienes-somos, historia)
   ============================================ */
.content-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.content-section:last-child { border-bottom: none; }
.content-section h2 {
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 1.25rem;
}
.content-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 1em;
  background: var(--accent);
  border-radius: 2px;
}
.placeholder-box {
  background: var(--gray-light);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  color: var(--text-light);
}
.placeholder-box .placeholder-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.placeholder-box p { margin: 0; font-size: 0.95rem; }

/* ============================================
   MAPA
   ============================================ */
#map {
  height: 460px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ============================================
   RAMAS
   ============================================ */
.rama-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.rama-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(44, 62, 107, 0.3);
}
.rama-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.rama-flag { font-size: 2.5rem; }
.rama-card h3 { margin-bottom: 0.25rem; }
.rama-card .meta {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}
.rama-card .meta strong { color: var(--text); }

/* ============================================
   REDES
   ============================================ */
.red-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.red-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.red-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.red-icon.facebook  { background: #e8f0fe; }
.red-icon.instagram { background: #fce4ec; }
.red-icon.web       { background: #e8f5e9; }
.red-info h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.red-info p  { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.red-link {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}
.red-link:hover { background: var(--primary); color: var(--white); }

/* ============================================
   INTEGRANTES
   ============================================ */
.filter-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.filter-bar input,
.filter-bar select {
  flex: 1;
  min-width: 160px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
}
.filter-bar input:focus,
.filter-bar select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 62, 107, 0.1);
}
.filter-bar button {
  padding: 0.6rem 1.25rem;
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition);
}
.filter-bar button:hover { background: var(--border); color: var(--text); }

.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.875rem;
}
thead th {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem 1.25rem;
  text-align: left;
  white-space: nowrap;
}
tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--gray-light); }
tbody td { padding: 0.9rem 1.25rem; color: var(--text); vertical-align: middle; }
tbody tr.hidden { display: none; }
.table-count {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}
.table-count strong { color: var(--primary); }

/* ============================================
   FORMULARIO DE CONTACTO
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { color: var(--text-light); }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail:first-of-type { border-top: 1px solid var(--border); margin-top: 1.5rem; }
.contact-detail-icon {
  width: 36px;
  height: 36px;
  background: rgba(44, 62, 107, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-detail-text strong { display: block; font-family: var(--font-heading); font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.1rem; }
.contact-detail-text a { color: var(--primary); font-weight: 600; }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 62, 107, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: var(--transition);
}
.form-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.form-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 0; }
.footer-brand .accent-line {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 1rem 0;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #3d5491 100%);
  padding: 5rem 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto 2rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 0.75rem 1rem; border-radius: var(--radius); }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 0.25rem 0;
    margin: 0.25rem 0;
    display: none;
  }
  .dropdown.open { display: block; }
  .dropdown li a { color: rgba(255,255,255,0.7); padding: 0.6rem 1.5rem; }
  .dropdown li a:hover { background: rgba(255,255,255,0.08); color: var(--accent); }

  .hero { min-height: 85vh; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .features-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .filter-bar { flex-direction: column; }
  .filter-bar input, .filter-bar select { min-width: unset; }

  #map { height: 300px; }
}

@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  .container { padding: 0 1rem; }
  .btn { padding: 0.7rem 1.25rem; font-size: 0.85rem; }
}

/* ============================================
   GOOGLE TRANSLATE
   ============================================ */
#google_translate_element {
  margin-left: 1.25rem;
  flex-shrink: 0;
}
#google_translate_element .goog-te-gadget {
  font-family: var(--font-heading) !important;
  font-size: 0 !important;
}
#google_translate_element .goog-te-gadget select {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  border-radius: var(--radius) !important;
  color: var(--white) !important;
  font-family: var(--font-heading) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  padding: 0.3rem 0.5rem !important;
  cursor: pointer !important;
  outline: none !important;
}
#google_translate_element .goog-te-gadget select option {
  background: var(--primary) !important;
  color: var(--white) !important;
}
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
@media (max-width: 768px) {
  #google_translate_element { margin-left: 0.6rem; }
}

/* ============================================
   SELECTOR DE IDIOMA
   ============================================ */
.lang-selector {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 1.25rem;
  flex-shrink: 0;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--transition);
  white-space: nowrap;
}
.lang-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: var(--accent);
  color: var(--accent);
}
.lang-flag-img {
  width: 20px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.lang-chevron {
  font-size: 0.6rem;
  opacity: 0.7;
  transition: transform 0.2s;
  line-height: 1;
}
.lang-selector.open .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  list-style: none;
  padding: 0.35rem;
  margin: 0;
  min-width: 155px;
  z-index: 300;
  animation: langIn 0.15s ease;
}
@keyframes langIn {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}
.lang-selector.open .lang-menu { display: block; }
.lang-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.45rem 0.7rem;
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  text-align: left;
  transition: background 0.12s;
}
.lang-opt:hover { background: var(--gray-light); color: var(--primary); }
.lang-opt.active { background: rgba(201,168,76,0.12); color: var(--primary); font-weight: 600; }
.lang-opt img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .lang-selector { margin-left: 0.6rem; }
  .lang-menu { right: 0; }
}
