/* Paleta de colores elegante y formal */
:root {
  --color-white: #ffffff;
  --color-light-gray: #f5f5f5;
  --color-dark-gray: #333333;
  --color-primary: #FF5722;
  --color-secondary: #BF360C;
  --color-accent: #FFA726;
  --color-gray: #666; /* Definida para uso en footer */
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Importa las fuentes para títulos y textos */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

/* Tipografía */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

.global-stats, .global-stats .stat-number, .global-stats h4, .global-stats p {
  font-family: 'Roboto Slab', serif;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--color-dark-gray);
  background-color: var(--color-white);
  line-height: 1.6;
}

/* NAVBAR GENERAL */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: transparent;
  position: relative;
  z-index: 10;
}

/* LOGO */
.logo img {
  max-block-size: 65px;
}

/* MENÚ PRINCIPAL */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding-inline-start: 0;
  margin: 0;
}

.nav-item {
  position: relative;
  color: #000;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-item::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  block-size: 2px;
  inline-size: 0%;
  background-color: var(--color-primary, orange);
  transition: width 0.3s ease;
}

.nav-item:hover {
  color: var(--color-primary, orange);
}

.nav-item:hover::after {
  inline-size: 100%;
}

.nav-item.active {
  color: var(--color-primary, orange);
  border-block-end: 2px solid var(--color-primary, orange);
}

/* IDIOMA */
.lang-switch {
  display: flex;
  gap: 10px;
}

.lang-switch div {
  text-align: center;
  font-size: 0.8rem;
}

.lang-switch button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.lang-switch img {
  inline-size: 30px;
  block-size: auto;
  border: none;
  outline: none;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.lang-switch img:hover {
  transform: scale(1.1);
}

/* HERO */
.hero {
  background: url("../Imagenes/thor\ calidad\ 1.jpeg") no-repeat center center/cover;
  min-block-size: 100vh;
  position: relative;
  text-align: center;
  color: var(--color-white);
}

.hero p {
  margin: 0;
}

.hero p + p {
  margin-block-start: 10px;
}

.hero .highlight {
  font-weight: 600;
  color: #ff7a00;
}

.hero::before {
  content: "";
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  inset-block-start: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  inset-block-end: 0;
}

.hero-content {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-inline-size: 800px;
  inline-size: 100%;
  padding: 0 1rem;
}

.hero-content h2 {
  font-size: 3rem;
  margin-block-end: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.3rem;
  margin-block-end: 1.5rem;
  font-weight: 400;
}

#heroSubtitle {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 400;
}

.highlight {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #ff7a00;
  letter-spacing: 0.3px;
}

/* SECCIONES GENERALES */
section {
  padding: 3rem 2rem;
}

.container {
  max-inline-size: 1200px;
  margin: 0 auto;
}

/* BOTONES */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: #ff7a00;
  color: #ffffff;
  border: 2px solid #ff7a00;
}

.btn-primary:hover {
  background: transparent;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.3);
}

.btn-secondary {
  border: 2px solid #ff7a00;
  color: #ff7a00;
  background: transparent;
}

.btn-secondary:hover {
  background: #ff7a00;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.3);
}

/* ABOUT */
.about {
  position: relative;
  background-color: #f2f2f2;
  padding: 120px 0;
  background-image: url("../Imagenes/logo3.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.about h2 {
  border-inline-start: 5px solid #ff7a00;
  padding-inline-start: 15px;
}

#nosotros {
  position: relative;
  background: linear-gradient(rgba(245, 245, 245, 0.034), rgba(245, 245, 245, 0.377)), url("../Imagenes/logo3.webp");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 100px 0;
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 2rem;
  padding: 2rem;
}

.about-text {
  flex: 1 1 60%;
  text-align: justify;
  margin-inline-end: 2rem;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-block-end: 1rem;
  text-align: center;
  color: var(--color-dark-gray);
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-image {
  flex: 0 0 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  inline-size: 100%;
  max-inline-size: 250px;
  block-size: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* MISIÓN, VISIÓN, VALORES */
.mvv {
  background: #ffffff;
  padding: 3.5rem 2rem;
}

.mvv-container {
  max-inline-size: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.mvv-card {
  padding: 0;
  background: none;
  border: none;
}

.mvv-icon {
  font-size: 1.6rem;
  color: #999;
  margin-block-end: 1.5rem;
  display: block;
}

.mvv-card h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin-block-end: 1.5rem;
  letter-spacing: -0.5px;
}

.mvv-card p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
  max-inline-size: 95%;
}

.mvv-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mvv-card ul li {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
  margin-block-end: 1.2rem;
}

/* SERVICES */
.services {
  background: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-block-start: 3rem;
}

.service-card {
  perspective: 1200px;
}

.service-tag {
  margin-block-start: 0.6rem;
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

.service-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-benefits li {
  font-size: 0.95rem;
  margin-block-end: 0.6rem;
  text-align: justify;
  position: relative;
  padding-inline-start: 1.2rem;
}

.service-benefits li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: #ff7a00;
  font-weight: bold;
}

.services-note {
  margin-block-start: 3rem;
  text-align: center;
  font-size: 0.95rem;
  color: #666;
}

.card-inner {
  position: relative;
  inline-size: 100%;
  block-size: 320px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 18px;
}

.service-card:hover .card-inner,
.service-card:active .card-inner,
.service-card:focus-within .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  border: none;
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-front {
  background: #ffffff;
  box-shadow: none;
}

.card-front h3 {
  margin-block-start: 1rem;
  font-size: 1.4rem;
  text-align: center;
}

.card-back {
  transform: rotateY(180deg);
  color: #333;
}

.card-back p {
  text-align: justify;
  line-height: 1.6;
  font-size: 0.95rem;
}

.service-1 .card-front { background: #f5f5f5; }
.service-2 .card-front { background: #ffffff; }
.service-3 .card-front { background: #f1f1f1; }
.service-1 .card-back { background: #f5f5f5; }
.service-2 .card-back { background: #ffffff; }
.service-3 .card-back { background: #f1f1f1; }

.service-icon {
  inline-size: 64px;
  block-size: 64px;
  opacity: 0.9;
}

/* CLIENTS (Carrusel) */
.clients-slider {
  overflow: hidden;
  position: relative;
  block-size: 100px;
  margin-block-start: 2rem;
}

.slide-track {
  display: flex;
  inline-size: calc(250px * 12);
  animation: scroll 50s linear infinite;
}

.slide {
  inline-size: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  max-inline-size: 150px;
  max-block-size: 80px;
  filter: grayscale(50%);
  transition: filter 0.3s ease;
}

.slide img:hover {
  filter: grayscale(0%);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* MAPA */
.map-container {
  position: relative;
  inline-size: 100%;
  padding-block-end: 56.25%;
  block-size: 0;
  overflow: hidden;
  margin-block-start: 2rem;
}

.map-container iframe {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  block-size: 100%;
  border: none;
}

.map-right { position: relative; }

.map-pin {
  position: absolute;
  background-color: #fff;
  color: #FFA500;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transform: translate(-50%, -50%);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s;
}

.map-pin i { color: #FFA500; }
.map-pin:hover { transform: translate(-50%, -50%) scale(1.3); }

.mapa-imagen {
  margin-block-start: 2rem;
  position: relative;
}

.map-marker {
  position: absolute;
  inline-size: 12px;
  block-size: 12px;
  background-color: #FF5722;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.map-marker:hover { background-color: #FFA726; }

/* ===== SECCIÓN CONTACTO MEJORADA ===== */
.contact {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #f7f9fc 0%, #eef2f7 100%);
}

.contact-container {
  max-inline-size: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Texto izquierdo - sin card */
.contact-text {
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.contact-text h2 {
  color: #1a365d;
  font-size: 2rem;
  margin-block-end: 1rem;
  font-family: 'Merriweather', serif;
}

.contact-text p {
  color: #4a5568;
  margin-block-end: 2rem;
  font-size: 1.1rem;
}

.contact-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-steps li {
  display: flex;
  align-items: center;
  margin-block-end: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  transition: background 0.3s ease;
  border-inline-start: 4px solid #1a6fb3;
}

.contact-steps li:hover {
  background: #e2e8f0;
}

.contact-steps img {
  inline-size: 40px;
  block-size: 40px;
  margin-inline-end: 1rem;
}

.contact-steps span {
  color: #1a365d;
  font-weight: 500;
  font-size: 1rem;
}

/* Imagen central - simple, sin efectos */
.contact-image {
  text-align: center;
  padding: 1rem;
}

.contact-image img {
  max-inline-size: 100%;
  block-size: auto;
  border-radius: 4px;
}

/* Formulario derecho */
.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form input,
.contact-form textarea {
  inline-size: 100%;
  padding: 1rem;
  margin-block-end: 1.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Lora', serif;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #1a6fb3;
}

/* BOTÓN CORREGIDO - visible y con buen contraste */
.contact-form button {
  inline-size: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #1a6fb3 0%, #1a365d 100%);
  color: white !important;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Roboto Slab', serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 107, 179, 0.4);
  background: linear-gradient(135deg, #1a7fd9 0%, #1a4270 100%);
}

/* Asegurar que el texto del botón sea visible */
.btn-primary, 
.contact-form button[type="submit"] {
  color: white !important;
}

/* NEWSLETTER */
.newsletter {
  background-color: var(--color-dark-gray);
  color: var(--color-white);
  text-align: center;
  padding: 2rem 1rem;
}

.newsletter h2 {
  font-size: 1.5rem;
  margin-block-end: 1rem;
}

.newsletter p { margin-block-end: 1.5rem; }

.newsletter-form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.newsletter-form input {
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  min-inline-size: 250px;
}

.newsletter-form input:focus {
  outline: 2px solid var(--color-primary);
}

.newsletter-form button {
  padding: 0.8rem 1.5rem;
}

.newsletter-socials {
  margin-block-start: 1rem;
}

.newsletter-socials a {
  color: var(--color-white);
  margin: 0 0.5rem;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.newsletter-socials a:hover {
  color: var(--color-primary);
}

/* FOOTER */
footer {
  background: var(--color-gray);
  padding: 2rem;
  color: var(--color-dark-gray);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-inline-size: 1200px;
  margin: 0 auto;
}

.footer-brand h3 {
  color: var(--color-primary);
  margin-block-end: 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
}

.footer-brand p { font-size: 0.9rem; }

.footer-nav h4,
.footer-links h4,
.footer-hours h4 {
  margin-block-end: 1rem;
  color: var(--color-dark-gray);
  font-size: 1.1rem;
  font-weight: 600;
}

/* CAMBIO: Título "Estadísticas del Sitio" a color naranja */
.visit-stats h4 {
  margin-block-end: 1rem;
  color: #ff7a00; /* Color naranja */
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-nav ul,
.footer-links ul {
  list-style: none;
  padding-inline-start: 0;
}

.footer-nav ul li,
.footer-links ul li { margin-block-end: 0.5rem; }

.footer-nav ul li a,
.footer-links ul li a {
  color: var(--color-dark-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover,
.footer-links ul li a:hover {
  color: var(--color-accent);
}

.footer-hours p { font-size: 0.9rem; }

.footer-hours a {
  color: var(--color-dark-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-hours a:hover { color: var(--color-accent); }

/* SECCIÓN "Más de Nosotros" */
.social-links {
  text-align: center;
  padding: 2rem 0;
  background-color: var(--color-gray);
  margin-block-start: 2rem;
}

.social-links h2 {
  margin-block-end: 1rem;
  color: var(--color-dark-gray);
  font-size: 1.8rem;
}

.social-buttons {
  display: inline-flex;
  gap: 1rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 50px;
  block-size: 50px;
  border: 2px solid var(--color-dark-gray);
  border-radius: 50%;
  background-color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.social-btn img {
  inline-size: 24px;
  block-size: 24px;
  transition: transform 0.3s ease;
}

.social-btn:hover { transform: scale(1.05); }

.social-btn.facebook:hover {
  background-color: #1877F2;
  border-color: #1877F2;
}

.social-btn.linkedin:hover {
  background-color: #0077B5;
  border-color: #0077B5;
}

.social-btn.phone:hover {
  background-color: #34B7F1;
  border-color: #34B7F1;
}

/* Back to Top */
#back-to-top {
  position: fixed;
  inset-block-end: 30px;
  inset-inline-end: 30px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  inline-size: 50px;
  block-size: 50px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: opacity 0.3s ease;
}

#back-to-top.show { display: flex; }

/* Contador */
.counter {
  inline-size: 150px;
  block-size: 150px;
  border: 10px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-light-gray);
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  margin: 20px auto;
  position: relative;
}

.counter-digits {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--secondary);
}

.counter-label {
  font-size: 1rem;
  color: var(--color-dark-gray);
}

.cta-post-stats {
  position: relative;
  z-index: 1;
}

.cta-post-stats .btn-primary {
  background: #FF7A00;
  color: #fff;
  border: 2px solid #FF7A00;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.cta-post-stats .btn-primary:hover {
  background: transparent;
  color: #FF7A00;
  transform: translateY(-3px);
}

/* Sección de estadísticas globales */
.global-stats {
  background-color: var(--color-white);
  padding: 4rem 1rem;
  text-align: center;
}

.stats-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-block-end: 2rem;
}

.stat-box { flex: 1 1 200px; }

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #FF9800;
  display: block;
}

.stat-box h4 {
  margin-block-start: 0.5rem;
  font-size: 1rem;
  color: var(--color-dark-gray);
}

.global-countries {
  max-inline-size: 900px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--color-dark-gray);
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  inline-size: 28px;
  block-size: 3px;
  margin: 6px 0;
  background: #fff;
  transition: 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Social Container */
.social-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFA500;
  color: #fff;
  padding: 50px 20px;
  flex-wrap: wrap;
  border-radius: 12px;
  gap: 30px;
}

.social-left h2 {
  font-size: 2rem;
  margin-block-end: 10px;
}

.social-left p { font-size: 1.1rem; }

.social-right {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  background: #fff;
  color: #FFA500;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.social-btn img {
  inline-size: 30px;
  block-size: 30px;
  margin-inline-end: 10px;
}

.social-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Footer mejorado */
.footer {
  background: rgba(14, 13, 13, 0.781);
  color: #fff;
  padding: 60px 20px;
  font-family: 'Arial', sans-serif;
}

.footer-container {
  max-inline-size: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-left h3 {
  font-size: 1.8rem;
  margin-block-end: 5px;
}

.footer-subtitle {
  font-size: 1rem;
  margin-block-end: 20px;
  color: #FFA500;
}

.footer-social a {
  display: inline-block;
  margin-inline-end: 15px;
  transition: transform 0.3s;
}

.footer-social a img {
  inline-size: 30px;
  block-size: 30px;
}

.footer-social a:hover { transform: translateY(-5px); }

.footer-quick-links ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.footer-quick-links ul li { margin-block-end: 8px; }

.footer-quick-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-quick-links a:hover { color: #FFA500; }

.footer-copy {
  font-size: 0.9rem;
  color: #bbb;
}

.footer-right h4 {
  font-size: 1.2rem;
  margin-block-end: 15px;
}

.footer-right ul {
  list-style: none;
  padding: 0;
}

.footer-right ul li { margin-block-end: 10px; }

.footer-right a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-right a:hover { color: #FFA500; }

/* VALORES DINÁMICOS (SLIDER) */
.values-dynamic {
  margin-block-start: 4rem;
  max-inline-size: 520px;
}

.values-fixed-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-block-end: 2rem;
}

.values-slider {
  position: relative;
  min-block-size: 180px;
}

.value-slide {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.value-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.value-slide h4 {
  font-size: 1.3rem;
  margin-block-end: 0.8rem;
  font-weight: 600;
}

.value-slide p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}

/* ROTADOR MISIÓN / VISIÓN / VALORES */
.values-rotator {
  max-inline-size: 650px;
  margin: 0 auto;
  text-align: center;
}

.values-main-title {
  font-size: 2rem;
  font-weight: 600;
  margin-block-end: 2.5rem;
  text-align: center;
}

.values-slides {
  position: relative;
  min-block-size: 150px;
  touch-action: pan-y;
}

.values-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.values-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.values-slide h3 {
  font-size: 1.4rem;
  margin-block-end: 1rem;
  text-align: center;
}

.values-slide p,
.values-slide li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}

.values-slide ul {
  padding-inline-start: 0;
  list-style-position: inside;
}

/* Ajustes de servicios */

/* Clase para cuando la carta está girada */
.card-inner.flipped {
  transform: rotateY(180deg);
}

/* Indicador táctil para móviles */
@media (max-width: 768px) {
  .service-card {
    cursor: pointer;
  }
  
  .service-card .card-front::before {
    content: "👆";
    position: absolute;
    inset-block-end: 10px;
    inset-inline-end: 10px;
    font-size: 1.2rem;
    opacity: 0.7;
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
  }
  
  .card-back .flip-back {
    display: block;
    position: absolute;
    inset-block-end: 15px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    background: #ff7a00;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
  }
}

/* Mejorar accesibilidad */
.service-card:focus {
  outline: 2px solid #ff7a00;
  outline-offset: 4px;
}

/* ================================
   HEADER MÓVIL
================================ */

@media (max-width: 768px) {
  /* 1. CAMBIAR COLOR DE FONDO */
  .mobile-header {
    position: fixed;
    inset-block-start: 0;
    inline-size: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95); 
    border-block-end: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  }

  /* 2. REORGANIZAR ELEMENTOS EN LA BARRA */
  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    block-size: 65px; /* Un poco menos alto */
    inline-size: 100%;
    position: relative;
  }

  /* 3. LOGO A LA IZQUIERDA */
  .mobile-bar .logo {
    order: 1;
    flex: 0 0 auto;
    margin-inline-end: auto; /* Empuja el logo a la izquierda */
  }

  .mobile-bar .logo img {
    max-block-size: 45px; /* Más pequeño */
    inline-size: auto;
  }

  /* 4. SWITCH DE IDIOMA CENTRADO */
  .mobile-bar .lang-switch {
    display: flex;
    gap: 6px; /* Menos espacio entre banderas */
    order: 2;
    position: absolute;
    inset-inline-start: 50%;
    transform: translateX(-50%); /* Centrado horizontal */
    top: 50%;
    transform: translate(-50%, -50%); /* Centrado vertical también */
    z-index: 1; /* Asegurar que esté sobre el fondo */
  }

  .mobile-bar .lang-switch button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
  }

  .mobile-bar .lang-switch img {
    inline-size: 26px; /* Más pequeño */
    block-size: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
  }

  .mobile-bar .lang-switch img:hover {
    border-color: #ff7a00;
    transform: scale(1.1);
  }

  /* 5. BOTÓN HAMBURGUESA A LA DERECHA */
  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    inline-size: 38px;
    block-size: 38px;
    background: rgba(255, 122, 0, 0.9); /* Naranja más sólido */
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    order: 3;
    margin-inline-start: auto; /* Empuja a la derecha */
    transition: all 0.3s ease;
  }

  .menu-toggle:hover {
    background: #ff7a00;
    transform: scale(1.05);
  }

  .menu-toggle span {
    display: block;
    inline-size: 22px; /* Más pequeño */
    block-size: 2px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* 6. Ajuste para el contenido principal */
  main {
    margin-block-start: 65px; /* Ajustar según la altura de la barra */
  }
}

/* ===============================
   HEADER DESKTOP (768px+)
================================ */
@media (min-width: 769px) {
  /* Ocultar menú móvil en desktop */
  .mobile-nav {
    display: none !important;
  }

  .menu-toggle {
    display: none !important;
  }

  /* Header desktop transparente */
  .mobile-header {
    position: fixed;
    inset-block-start: 0;
    inline-size: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.3s ease;
  }

  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 60px;
    block-size: 80px;
  }

  .mobile-bar .logo img {
    max-block-size: 60px;
    transition: transform 0.3s ease;
  }

  .mobile-bar .logo img:hover {
    transform: scale(1.05);
  }

  /* Navegación desktop */
  .desktop-nav {
    display: block !important;
    position: absolute;
    inset-inline-start: 50%;
    transform: translateX(-50%);
  }

  .desktop-nav .nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .desktop-nav .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
  }

  .desktop-nav .nav-links a::after {
    content: '';
    position: absolute;
    inset-block-end: -5px;
    inset-inline-start: 0;
    inline-size: 0;
    block-size: 2px;
    background: #ff7a00;
    transition: width 0.3s ease;
  }

  .desktop-nav .nav-links a:hover::after {
    inline-size: 100%;
  }

  .desktop-nav .nav-links a:hover,
  .desktop-nav .nav-links a.active {
    color: #ff7a00;
  }

  /* Idioma en desktop */
  .mobile-bar .lang-switch {
    display: flex;
    gap: 10px;
    order: 3;
  }

  .mobile-bar .lang-switch button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  .mobile-bar .lang-switch button:hover {
    transform: scale(1.1);
  }

  .mobile-bar .lang-switch img {
    inline-size: 32px;
    block-size: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
  }

  .mobile-bar .lang-switch img:hover {
    border-color: #ff7a00;
  }
}

/* ===============================
   HEADER MÓVIL (< 768px)
================================ */
@media (max-width: 768px) {
  /* Ocultar menú desktop en móvil */
  .desktop-nav {
    display: none !important;
  }

  /* Mostrar botón hamburguesa */
  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    inline-size: 40px;
    block-size: 40px;
    background: rgba(255, 122, 0, 0.8);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    order: 3;
  }

  .menu-toggle span {
    display: block;
    inline-size: 24px;
    block-size: 2px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
  }

  /* Resto de estilos móviles que ya tenías */
  .mobile-header {
    position: fixed;
    inset-block-start: 0;
    inline-size: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  }

  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    block-size: 70px;
    inline-size: 100%;
  }

  .mobile-bar .logo img {
    max-block-size: 50px;
    inline-size: auto;
  }

  /* Idioma en móvil */
  .mobile-bar .lang-switch {
    display: flex;
    gap: 8px;
    order: 2;
  }

  .mobile-bar .lang-switch img {
    inline-size: 28px;
    block-size: 28px;
  }

  /* Menú móvil */
  .mobile-nav {
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: 100%;
    block-size: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
    inline-size: 100%;
  }

  .mobile-menu a {
    color: white;
    font-size: 1.3rem;
    padding: 12px 0;
    inline-size: 100%;
    text-align: center;
  }

  /* Ajuste para el contenido */
  main {
    margin-block-start: 70px;
  }
}

/* ===============================
   ESTILOS BASE PARA HEADER
================================ */
.mobile-header {
  inline-size: 100%;
}

.mobile-bar {
  display: flex;
  align-items: center;
}

/* Logo base */
.logo img {
  max-block-size: 60px;
  inline-size: auto;
  transition: transform 0.3s ease;
}

/* Ajuste del hero para header fijo */
.hero {
  min-block-size: 100vh;
  padding-block-start: 0;
}

@media (max-width: 768px) {
  .hero {
    margin-block-start: 0;
    padding-block-start: 0;
  }
  
  .hero-content {
    padding-block-start: 70px;
  }
}

/* ===============================
   SECCIÓN MAPA GLOBAL - NUEVO DISEÑO
================================ */

#mapa {
  background: #FFA726; /* Color naranja sólido */
  color: white;
  padding: 4rem 2rem; /* Un poco menos de padding */
  position: relative;
  overflow: hidden;
}

/* Contenedor principal */
#mapa .container {
  position: relative;
  z-index: 1;
  max-inline-size: 1400px;
}

/* Título principal - Blanco con sombra para legibilidad */
#mapa .values-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  text-align: center;
  margin-block-end: 1rem;
  color: white;
  position: relative;
  padding-block-end: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#mapa .values-section-title::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  inline-size: 100px;
  block-size: 3px;
  background: white;
  border-radius: 2px;
  opacity: 0.8;
}

/* Subtítulo */
#mapa .section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  margin-block-end: 3rem; /* Menos espacio */
  max-inline-size: 700px;
  margin-inline-start: auto;
  margin-inline-end: auto;
  line-height: 1.6;
  font-weight: 300;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Separador */
#mapa .section-divider {
  block-size: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.5), 
    transparent
  );
  inline-size: 60%;
  max-inline-size: 400px;
  margin: 1.5rem auto 2.5rem; /* Menos margen */
}

/* Layout principal: lista izquierda, mapa derecha */
.map-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem; /* Menos gap */
  align-items: start;
  margin-block-start: 2rem; /* Menos margen superior */
}

/* Lista de países - Izquierda (más compacta) */
.map-country-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.5rem; /* Más compacto */
  column-gap: 1.5rem;
  row-gap: 0.6rem;
}

.map-country-list li {
  color: white;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  padding: 0.15rem 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: color 0.2s ease;
}

/* Hover muy sutil */
.map-country-list li:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* WRAPPER PARA EL MAPA - MÁS PEQUEÑO */
.map-wrapper {
  inline-size: 100%;
  block-size: 450px; /* Más pequeño que antes (era 500px) */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

#map {
  inline-size: 100%;
  block-size: 100%;
  border-radius: 16px;
}

.map-wrapper:hover {
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Estilo para los marcadores del mapa */
.leaflet-marker-icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.leaflet-popup-content {
  font-family: 'Roboto Slab', serif;
  font-size: 0.9rem;
  color: #333;
  padding: 10px;
}

.leaflet-popup-content strong {
  color: #FFA726;
}

/* ===== SECCIÓN VALORES ===== */
.values-section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #5d411a;
  margin-block-end: 1rem;
  font-family: 'Merriweather', serif;
  font-weight: 700;
}

.values-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.values-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-block-start: 4px solid #1a6fb3;
}

.values-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.values-card h3 {
  color: #1a365d;
  font-size: 1.5rem;
  margin-block-end: 1rem;
  font-family: 'Roboto Slab', serif;
}

.values-card p {
  color: #4a5568;
  line-height: 1.6;
  font-size: 1rem;
}

.values-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-card li {
  padding: 0.5rem 0;
  color: #4a5568;
  line-height: 1.6;
  position: relative;
  padding-inline-start: 1.5rem;
}

.values-card li::before {
  content: "✓";
  color: #1a6fb3;
  font-weight: bold;
  position: absolute;
  inset-inline-start: 0;
}

.values-card li strong {
  color: #1a365d;
}

/* ÍCONOS ANIMADOS */
.fa-spin {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .stat-card {
    padding: 10px;
  }
  
  .stat-number {
    font-size: 1.3rem;
  }
}

/* ESTADOS DE CARGA */
.stat-number:empty::before {
  content: '···';
  color: #bdc3c7;
}

/* TOOLTIPS MEJORADOS */
[title] {
  position: relative;
  cursor: help;
}

[title]:hover::after {
  content: attr(title);
  position: absolute;
  inset-block-end: 100%;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: #f27712;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
}

/* Estilo específico para tu footer actual */
.visit-stats {
  margin-block-start: 30px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.visit-stats h4 {
  color: #ff7a00; /* Color naranja - YA APLICADO ARRIBA */
  margin-block-end: 15px;
  font-size: 1.2rem;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
}

.stat-card {
  flex: 1;
  min-inline-size: 120px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 12px;
  text-align: center;
}

.stat-icon {
  display: none; /* Ocultar íconos si no los quieres */
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  margin-block-end: 8px;
}

.stat-number {
  color: #ff7a00;
  font-size: 1.5rem;
  font-weight: bold;
}

.stats-footer {
  display: none; /* Ocultar pie si no lo necesitas */
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
  /* ABOUT responsive */
  .about-container {
    flex-wrap: wrap;
    flex-direction: column;
    padding: 1rem;
  }

  .about-text {
    margin-inline-end: 0;
    flex: 1 1 100%;
    text-align: justify;
  }

  .about-text h2 { text-align: center; }

  .about-image {
    flex: 1 1 100%;
    margin-block-start: 1.5rem;
    justify-content: center;
  }

  .about-image img {
    max-inline-size: 200px;
    margin: 0 auto;
  }

  /* MVV responsive */
  .mvv-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .mvv-card h3 { font-size: 1.8rem; }

  /* Contact responsive */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-text h2 { text-align: center; }

  .contact-text ul {
    text-align: center;
    padding-inline-start: 0;
    list-style: none;
  }

  /* Header móvil */
  .menu-toggle {
    display: block;
    position: fixed;
    inset-block-start: 18px;
    inset-inline-end: 18px;
    z-index: 10001;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    padding: 10px;
    border-radius: 10px;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    z-index: 10000;
  }

  .nav-links.active { transform: translateY(0); }

  .nav-links a {
    color: #fff;
    font-size: 1.2rem;
  }

  .nav-right { display: none; }

  .lang-switch {
    flex-direction: row;
    gap: 12px;
    margin-inline-start: auto;
  }

  .lang-switch img { inline-size: 26px; }

  .navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    inline-size: 100%;
    justify-content: space-between;
  }

  /* Footer responsive */
  .footer-container {
    grid-template-columns: 1fr;
  }

  /* Ajustes para mapa global */
  .map-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .map-country-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .map-wrapper {
    block-size: 350px;
  }
  
  /* Ajustes para contacto */
  .contact-image {
    order: -1;
    max-inline-size: 300px;
    margin: 0 auto;
  }
  
  .contact-steps li {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-steps img {
    margin-inline-end: 0;
    margin-block-end: 0.5rem;
  }
  
  .contact-image img {
    max-inline-size: 250px;
  }
}

@media (min-width: 769px) {
  /* DESKTOP HEADER + HERO OVERLAY */
  .mobile-header {
    position: fixed;
    inset-block-start: 0;
    inline-size: 100%;
    z-index: 999;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px;
    position: relative;
  }

  .logo img { max-block-size: 70px; }

  .nav-links {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 36px;
    background: transparent;
  }

  .nav-links li a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
  }

  .nav-links li a::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: -6px;
    inline-size: 0%;
    block-size: 2px;
    background: #ff7a00;
    transition: width 0.3s ease;
  }

  .nav-links li a:hover::after { inline-size: 100%; }

  .menu-toggle { display: none; }

  .hero {
    min-block-size: 100vh;
    padding-block-start: 0;
  }
}

/* ================================
   RESPONSIVE PARA MAPA GLOBAL
================================ */

@media (max-width: 768px) {
  /* Ajustes específicos para la sección mapa */
  #mapa {
    padding: 2.5rem 1rem; /* Menos padding en móvil */
  }
  
  #mapa .values-section-title {
    font-size: 2rem; /* Título más pequeño */
    padding-block-end: 1rem;
  }
  
  #mapa .section-subtitle {
    font-size: 1rem; /* Subtítulo más pequeño */
    margin-block-end: 2rem;
  }
  
  /* Cambiar orden: mapa arriba, lista abajo */
  .map-layout {
    grid-template-columns: 1fr; /* Una sola columna */
    gap: 2rem;
    display: flex;
    flex-direction: column; /* Columna vertical */
  }
  
  /* Forzar que el mapa esté primero en el orden visual */
  .map-wrapper {
    order: -1; /* Esto coloca el mapa primero */
    block-size: 350px; /* Altura más pequeña para móvil */
    margin-block-end: 1.5rem;
  }
  
  /* Ajustar lista de países para móvil */
  .map-country-list {
    grid-template-columns: repeat(2, 1fr); /* Mantener 2 columnas */
    gap: 0.5rem 1rem; /* Espaciado más compacto */
    font-size: 0.9rem; /* Texto más pequeño */
    order: 2; /* Lista después del mapa */
  }
  
  /* Asegurar que el mapa sea visible */
  #map {
    min-block-size: 300px; /* Altura mínima */
  }
  
  /* Reducir el hover effect en móvil */
  .map-wrapper:hover {
    transform: translateY(-2px);
  }
}

/* Para pantallas muy pequeñas (menos de 480px) */
@media (max-width: 480px) {
 .map-wrapper {
    block-size: 300px; /* Aún más pequeño */
  }
  
  .map-country-list {
    grid-template-columns: repeat(2, 1fr); /* ← MANTENER 2 COLUMNAS */
    font-size: 0.85rem;
    gap: 0.4rem 1rem; /* Más compacto */
  }
  
  #mapa .values-section-title {
    font-size: 1.7rem;
  }
}

/* ==============================
   BOTÓN DE WHATSAPP FLOTANTE
   ============================== */

/* Botón principal de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-whatsapp 2.5s infinite;
    border: 3px solid white;
    overflow: hidden;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.12) rotate(5deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* Animación de pulso para llamar la atención */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Badge de notificación (opcional) */
.whatsapp-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #FF3B30;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Estilos para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
    
    /* En móviles, asegurar que esté por encima de otros elementos */
    .whatsapp-float {
        z-index: 9999;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
        font-size: 26px;
    }
}

/* Asegurar que no interfiera con otros elementos */
.whatsapp-float {
    pointer-events: auto;
}

/* Efecto de onda al hacer hover */
.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #25D366;
    animation: wave 1.5s infinite;
    opacity: 0;
}

@keyframes wave {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.whatsapp-float:hover::after {
    animation: wave 1s infinite;
}