/* 
 * =======================
 * GRAFITECK - LAYOUT GLOBAL
 * =======================
 * Estilos para el layout global con máximo ancho adaptable
 * Versión: 2.0
 * Fecha: Junio 2025
 */

/* Variables globales con modo automático */
:root {
  --yellow: #fff91d;
  --yellow-dark: #fff91d;
  --dark-blue: #4e555a;
  --darker-blue: #2c3133;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #66696b;
  --white: #ffffff;
  --black: #28282D;
  --transition-speed: 0.3s;
  
  /* Fuentes */
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-secondary: 'Funnel Display', sans-serif;
  --font-tertiary: 'Plus Jakarta Sans', sans-serif;
  
  /* Tamaños de contenedor */
  --container-width: 80%;
  --container-max-width: 1600px;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 18px;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Modo oscuro */
body.dark-mode {
  background-color: var(--darker-blue);
  color: var(--white);
}

/* Contenedor principal */
.container {
  width: var(--container-width);
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0;
}

/* Secciones */
.section {
  position: relative;
  padding: 100px 0;
  background-color: var(--light-gray);
}

/* Encabezados de sección */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-secondary);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  color: var(--darker-blue);
}

.dark-mode .section-title {
  color: var(--white);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--yellow);
}

.section-title-about {
  font-family: var(--font-secondary);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1;
  position: relative;
  display: inline-block;
  color: var(--darker-blue);
}

.section-title-about::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 4px;
  background-color: var(--yellow);
}

.section-subtitle {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto;
  color: var(--dark-gray);
}

.dark-mode .section-subtitle {
  color: var(--light-gray);
}

/* Header y navegación */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(78, 85, 90, 0.0);
  padding: 20px 0;
  z-index: 100;
  transition: background-color var(--transition-speed), padding var(--transition-speed);
}

#header.scrolled {
  background-color: rgba(78, 85, 90, 0.4);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dark-mode #header.scrolled {
  background-color: var(--black);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 55px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: color var(--transition-speed);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--yellow);
  transition: width var(--transition-speed);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--yellow);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: flex;
  position: fixed;
  top: 20px;
  right: 15px;
  z-index: 1002;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--dark-blue);
  margin: 3px 0;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Boton Whatsapp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}

.whatsapp-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background-color: var(--yellow);
  color: var(--dark-blue);
  border-radius: 3rem;
  border: none;              
  outline: none;            
  padding: 0.8rem 0.6rem 0.7rem 0.4rem;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-secondary, sans-serif);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.whatsapp-link img {
  width: 32px;
  height: 32px;
}

.whatsapp-message {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.whatsapp-link:hover .whatsapp-message {
  opacity: 1;
  max-width: 250px;
}

@media (max-width: 768px) {
  .whatsapp-message {
    display: none;
  }

  .whatsapp-link {
    padding: 0.6rem; /* botón circular */
    border-radius: 50%;
  }
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--yellow);
  color: var(--dark-blue);
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all var(--transition-speed);
}

.btn:hover {
  background-color: transparent;
  color: var(--yellow);
}

.dark-mode .btn:hover {
  color: var(--yellow);
}

.btn-outline {
  background-color: transparent;
  color: var(--dark-blue);
  border: 2px solid var(--dark-blue);
}

.dark-mode .btn-outline {
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background-color: var(--yellow);
  border-color: var(--yellow);
  color: var(--dark-blue);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--yellow);
  color: var(--yellow);
}

.btn-secondary:hover {
  background-color: var(--yellow);
  color: var(--dark-blue);
}

/* Responsive Styles */
@media (max-width: 1400px) {
  :root {
    --container-width: 95%;
  }
  
  .section-title {
    font-size: 2.8rem;
  }

}

@media (max-width: 1200px) {
  .section-title {
    font-size: 2.5rem;
  }
  
  .nav-menu li {
    margin-left: 20px;
  }
}

@media (max-width: 992px) {
  .section {
    padding: 80px 0;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--dark-blue);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right var(--transition-speed);
    z-index: 101;
  }
  
  .dark-mode .nav-menu {
    background-color: var(--black);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    margin: 15px 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
  justify-content: center;
  }

  .logo {
  height: 40px;
  width: auto;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 50px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .logo {
  height: 40px;
  width: auto;
  }
}

/* Oculta el botón de menú móvil en pantallas grandes */
@media screen and (min-width: 992px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

/* 
 * =======================
 * ESTILOS ADICIONALES - MEJORAS
 * =======================
 */

/* Sección Nosotros Mejorada */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
  padding: 40px 0;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--light-gray);
  border-radius: 15px;
  transition: transform var(--transition-speed);
}

.dark-mode .stat-item {
  background: var(--dark-blue);
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-number {
  font-family: var(--font-tertiary);
  font-size: 3rem;
  font-weight: 700;
  color: var(--yellow);
  display: block;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dark-mode .stat-label {
  color: var(--light-gray);
}

.content-block {
  margin-bottom: 30px;
  font-size: 1.4rem;
}

.content-block h3 {
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 15px;
}

.dark-mode .content-block h3 {
  color: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--light-gray);
  border-radius: 12px;
  transition: transform var(--transition-speed);
}

.dark-mode .value-item {
  background: var(--dark-blue);
}

.value-item:hover {
  transform: translateX(10px);
}

.value-icon {
  width: 50px;
  height: 50px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-icon i {
  color: var(--dark-blue);
  font-size: 1.2rem;
}

.value-item h4 {
  font-weight: 600;
  color: var(--dark-blue);
}

.dark-mode .value-item h4 {
  color: var(--white);
}

.about-visual {
  position: relative;
}

.image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 80%;
  width: 80%;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 42, 54, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-speed);
}

.image-container:hover .image-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: var(--white);
}

.overlay-content i {
  font-size: 3rem;
  color: var(--yellow);
  margin-bottom: 15px;
}

/* Sección Clientes */
.clients {
  background: var(--light-gray);
  padding: 80px 0;
}

.dark-mode .clients {
  background: var(--dark-blue);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 30px;
  align-items: stretch; /* Asegura igual altura entre filas */
}

.client-item {
  width: 100%;
  min-height: 120px;              /* altura uniforme */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.664);
  border-radius: 15px;
  transition: all var(--transition-speed);
  box-sizing: border-box;
}

.dark-mode .client-item {
  background: var(--dark-gray);
}

.client-item:hover {
  transform: translateY(-10px);
}

.client-logo {
  max-width: 80%;
  max-height: 80px; /* ajusta si necesitas más alto */
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: filter var(--transition-speed);
  flex-grow: 1;
  display: flex;
}

.client-item:hover .client-logo {
  filter: grayscale(0%) opacity(1);
}

.client-country {
  font-size: 0.8rem;
  color: var(--dark-gray);
  margin-top: 0.6rem;
  text-align: center;
  font-weight: 500;
}

.client-country::before {
  content: "";
  display: block;
  width: 70px;
  height: 1px;
  background: var(--yellow);
  margin: 0.5rem auto;
}

/* Tablets medianas (hasta 992px) */
@media (max-width: 992px) {
  .client-country {
    font-size: 0.75rem;
    margin-top: 0.5rem;
  }
  .client-country::before {
    width: 60px;
  }

  .section-title-about {
  font-family: var(--font-secondary);
  font-size: 2rem;
  }

  .content-block {
  margin-bottom: 30px;
  font-size: 1rem;
  }

  .faq-answer p {
  font-size: 1.2rem;
  }
}

/* Tablets pequeñas y móviles grandes (hasta 768px) */
@media (max-width: 768px) {
  .client-country {
    font-size: 0.7rem;
    margin-top: 0.4rem;
  }
  .client-country::before {
    width: 50px;
    height: 1px;
  }

  .section-title-about {
  font-family: var(--font-secondary);
  font-size: 2rem;
  }

  .content-block {
  margin-bottom: 30px;
  font-size: 1.2rem;
  } 

  .faq-answer p {
  font-size: 1.2rem;
  }
}

/* Móviles medianos (hasta 576px) */
@media (max-width: 576px) {
  .client-country {
    font-size: 0.65rem;
    margin-top: 0.3rem;
  }
  .client-country::before {
    width: 40px;
  }

  .section-title-about {
  font-family: var(--font-secondary);
  font-size: 2rem;
  }

  .content-block {
  margin-bottom: 30px;
  font-size: 1rem;
  }

  .faq-answer p {
  font-size: 1.2rem;
  }
}

/* Móviles pequeños (hasta 400px) */
@media (max-width: 400px) {
  .client-country {
    font-size: 0.6rem;
    margin-top: 0.25rem;
  }
  .client-country::before {
    width: 35px;
  }
  
  .section-title-about {
  font-family: var(--font-secondary);
  font-size: 2rem;
  }

  .content-block {
  margin-bottom: 30px;
  font-size: 1.1rem;
  }

  .faq-answer p {
  font-size: 1rem;
  }
}

/* Servicios con imagen creativa */
.service-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

.service-layout:hover .service-image img {
  transform: scale(1.05);
}

/* Animaciones sutiles */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Aplicar animaciones */
.animate-on-scroll {
  opacity: 0;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
}

.animate-on-scroll.fade-in-up {
  animation-name: fadeInUp;
}

.animate-on-scroll.fade-in-left {
  animation-name: fadeInLeft;
}

.animate-on-scroll.fade-in-right {
  animation-name: fadeInRight;
}

/* Modal del Portafolio */
.portfolio-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  overflow-y: auto;
}

.portfolio-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--white);
  border-radius: 20px;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  overflow: hidden;
}

.dark-mode .modal-content {
  background: var(--dark-blue);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}

.modal-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  min-height: 500px;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-info h3 {
  font-family: var(--font-secondary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 10px;
}

.dark-mode .modal-info h3 {
  color: var(--white);
}

.modal-category {
  color: var(--yellow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.modal-description {
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: 30px;
}

.dark-mode .modal-description {
  color: var(--light-gray);
}

/* Responsive para mejoras */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .modal-info {
    padding: 30px;
  }
}

@media (max-width: 576px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }
  
  .client-item {
    padding: 20px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}


/* Layout de dos columnas para sección Nosotros */
.about-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 5px;
  line-height: 1.4;
  font-size: 1.1rem;
}

.about-content {
  padding-right: 20px;
}

.about-visual {
  position: relative;
}

.about-visual .image-container {
  position: relative;
  overflow: visible;
}

.about-visual .image-container img {
  width: 150%;
  height: auto;
  min-height: 400px;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

.about-visual:hover .image-container img {
  transform: scale(1.05);
}

.circle-text-container {
  position: relative;
  width: 250px;
  height: 250px;
  margin-top: 2rem;
  margin: 2rem auto 0 auto; 
}

.circle-svg {
  width: 100%;
  height: 100%;
  animation: rotateText 12s linear infinite;
  transform-origin: center;
}

.center-icon {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 70px;
  height: auto;
  transform: translate(-50%, -50%);
}

@keyframes rotateText {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive para móvil */
@media (max-width: 768px) {
  /* Asegurar que no hay overflow horizontal */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  .container {
    max-width: 100% !important;
    padding: 0 15px !important;
  }
  
  /* Header responsive */
  .header {
    padding: 0 15px;
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 200px;
    height: 100vh;
    background: #3d4347f6;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .dark-mode .nav-menu {
    background: var(--darker-blue);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    margin: 15px 0;
    width: 100%;
  }
  
  .nav-menu a {
    font-size: 1.1rem;
    padding: 10px 0;
    width: 100%;
    display: block;
    color: var(--light-gray);
  }
  
  .dark-mode .nav-menu a {
    color: var(--white);
    border-bottom-color: var(--dark-gray);
  }
  
 
  /* Menú hamburguesa - más sutil */
  .mobile-menu-btn {
    display: flex !important;
    position: fixed !important;
    top: 20px !important;
    right: 15px !important;
    z-index: 1002 !important;
    width: 30px !important;
    height: 30px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer !important;
    padding: 0 !important;
  }
  
  .mobile-menu-btn span {
    width: 20px !important;
    height: 2px !important;
    background: var(--yellow-dark) !important;
    margin: 2.5px 0 !important;
    transition: all 0.3s ease !important;
    border-radius: 1px !important;
  }
  
  .dark-mode .mobile-menu-btn span {
    background: var(--white) !important;
  }
  
  /* Sección Nosotros responsive */
  .about-two-columns {
    grid-template-columns: 1fr;
    gap: 40px;
    line-height: 1.4;
    font-size: 1rem;
  }
  
  .about-content {
    padding-right: 0;
    order: 2;
  }
  
  .about-visual {
    order: 1;
  }
  
  .about-visual .image-container img {
    min-height: 250px;
    width: 125%;
  }
  
  /* Tags responsive */
  .countries-tags,
  .industries-tags {
    justify-content: flex-start;
    gap: 8px;
  }
  
  .tag {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  
  /* Sección clientes - 3 columnas en móvil */
  .clients-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }
  
  .client-item {
    padding: 5px !important;
  }
  
  .client-item img {
    max-height: 70px !important;
  }
}

/* Estilos para la sección Nosotros de la URL */
.experience-section {
  margin-top: 40px;
}

.experience-section h3 {
  font-family: var(--font-secondary);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 20px;
  margin-top: 30px;
}

.dark-mode .experience-section h3 {
  color: var(--white);
}

.countries-tags,
.industries-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--yellow);
  color: var(--dark-blue);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 25px;
  transition: all var(--transition-speed);
}

.tag:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
}

/* Estilos para la sección Blog de la URL */
.blog {
  background: var(--white);
  padding: 100px 0;
}

.dark-mode .blog {
  background: var(--dark-blue);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.blog-post {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed);
}

.dark-mode .blog-post {
  background: var(--darker-blue);
}

.blog-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

.blog-post:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 30px;
}

.blog-meta {
  margin-bottom: 15px;
}

.blog-date {
  color: var(--yellow);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-title {
  font-family: var(--font-secondary);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 15px;
  line-height: 1.3;
}

.dark-mode .blog-title {
  color: var(--white);
}

.blog-excerpt {
  color: var(--dark-gray);
  line-height: 1.4;
  margin-bottom: 20px;
}

.dark-mode .blog-excerpt {
  color: var(--light-gray);
}

.blog-link {
  color: var(--yellow);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-speed);
}

.blog-link:hover {
  color: var(--yellow-dark);
}

/* Responsive para nuevas secciones */
@media (max-width: 768px) {
  .countries-tags,
  .industries-tags {
    justify-content: center;
  }
  
  .tag {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    display: none;
  }
  
  .blog-content {
    padding: 20px;
  }
  
  .blog-title {
    font-size: 1.2rem;
  }
}


/* Estilos para el modal del portafolio mejorado (de la URL) */
.portfolio-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.portfolio-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: 15px;
  max-width: 1600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.portfolio-modal.active .modal-content {
  transform: scale(1);
}

.dark-mode .modal-content {
  background: var(--darker-blue);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  font-size: 2rem;
  color: var(--dark-gray);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  z-index: 10001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--light-gray);
  color: var(--dark-blue);
}

.dark-mode .modal-close {
  color: var(--light-gray);
}

.dark-mode .modal-close:hover {
  background: var(--dark-blue);
  color: var(--white);
}

.modal-navigation {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10001;
  pointer-events: none;
}

.modal-nav-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--dark-blue);
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-nav-btn:hover {
  background: var(--yellow);
  transform: scale(1.1);
}

.modal-body {
  display: flex;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  min-height: 500px;
}

.modal-image {
  position: relative;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 500px;
}

.modal-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-category {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark-blue);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  width: fit-content;
}

.modal-info h3 {
  font-family: var(--font-secondary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 20px;
  line-height: 1.2;
}

.dark-mode .modal-info h3 {
  color: var(--white);
}

.modal-description {
  color: var(--dark-gray);
  line-height: 1.4;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.dark-mode .modal-description {
  color: var(--light-gray);
}

.modal-details {
  margin-bottom: 30px;
}

.detail-item {
  display: flex;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.detail-item strong {
  color: var(--dark-blue);
  min-width: 80px;
  margin-right: 10px;
}

.dark-mode .detail-item strong {
  color: var(--yellow);
}

.detail-item span {
  color: var(--dark-gray);
}

.dark-mode .detail-item span {
  color: var(--light-gray);
}

.modal-actions {
  margin-top: auto;
}

.modal-cta {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark-blue);
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.modal-cta:hover {
  background: var(--dark-blue);
  color: var(--yellow-dark);
  transform: translateY(-2px);
}

/* Slider modal */
.modal-slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px 0 0 10px;
}

.modal-slide {
  display: none;
  width: 100%;
  transition: opacity 0.5s ease-in-out;
}

.modal-slide.active {
  display: block;
}

.modal-slide img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 10px 0 0 10px;
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  background: rgba(255,255,255,0.7);
  border: none;
  color: #111;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  transition: background 0.3s;
}

.modal-prev:hover,
.modal-next:hover {
  background: rgba(255,255,255,1);
}

.modal-prev { left: 10px; }
.modal-next { right: 10px; }

/* Responsive para modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 95vh;
    margin: 20px;
  }
  
  .modal-body {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .modal-image {
    order: 1;
  }
  
  .modal-image img {
    min-height: 400px;
    max-height: 450px;
  }
  
  .modal-info {
    order: 2;
    padding: 20px;
  }
  
  .modal-info h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
  
  .modal-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  
  .modal-navigation {
    padding: 0 10px;
  }
  
  .modal-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .modal-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }
  
  .detail-item {
    flex-direction: column;
    margin-bottom: 8px;
  }
  
  .detail-item strong {
    min-width: auto;
    margin-right: 0;
    margin-bottom: 2px;
  }
  
  .modal-actions {
    margin-top: 20px;
  }
  
  .modal-cta {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }
}


/* 
 * ==============================================
 * BLOG SLIDER - Estilos para slider de blog
 * ==============================================
 */

.blog-slider-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: none;
}

.blog-slider {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid var(--medium-gray);
}

.blog-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.blog-slide.active {
  display: block;
  opacity: 1;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode .blog-card {
  background: var(--dark-blue);
}

.blog-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-date {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--yellow);
  color: var(--dark-blue);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.blog-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  padding: 30px;
}

.blog-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  font-family: var(--font-secondary);
  margin-bottom: 15px;
  color: var(--darker-blue);
}

.dark-mode .blog-title {
  color: var(--white);
}

.blog-excerpt {
  color: var(--dark-gray);
  line-height: 1.4;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.dark-mode .blog-excerpt {
  color: var(--light-gray);
}

.blog-link {
  align-self: flex-start;
  margin-top: auto;
  font-weight: 600;
  color: var(--darker-blue);
  background-color: var(--yellow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--yellow);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.blog-link:hover {
  gap: 12px;
  background-color: var(--darker-blue);
  color: var(--yellow-dark);
  transform: translateX(4px);
}

/* Navegación del slider */
.blog-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-300%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.blog-prev,
.blog-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-prev:hover,
.blog-next:hover {
  background: var(--yellow);
  transform: scale(1.1);
}

.blog-prev i,
.blog-next i {
  font-size: 1.2rem;
  color: var(--dark-blue);
}

/* Indicadores */
.blog-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--medium-gray);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--yellow);
  transform: scale(1.2);
}

/* 
 * ==============================================
 * FAQ - Estilos para preguntas frecuentes
 * ==============================================
 */

.faq {
  background: var(--dark-blue);
  color: var(--white);
}

.dark-mode .faq {
  background: var(--black);
}

.faq .section-title {
  color: var(--white);
  font-weight: 500;
}

.faq .section-subtitle {
  color: var(--light-gray);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 60px;
}

.faq-item {
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.faq-question h3 {
  font-weight: 600;
  color: var(--yellow-dark);
  margin: 0;
  flex: 1;
  padding-right: 20px;
}

.faq-question i {
  font-size: 1.2rem;
  color: var(--yellow);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1.2rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 30px 25px;
}

.faq-answer p {
  color: var(--light-gray);
  line-height: 1.4;
  margin: 0;
  font-size: 1.2rem;
}

/* Responsive para blog slider y FAQ */
@media (max-width: 768px) {
  .blog-slider-container {
    margin: 0 20px;
    display: block;
  }
  
  .blog-image {
    height: 200px;
  }
  
  .blog-content {
    padding: 20px;
  }
  
  .blog-title {
    font-size: 1.3rem;
  }
  
  .blog-navigation {
    padding: 0 10px;
  }
  
  .blog-prev,
  .blog-next {
    width: 40px;
    height: 40px;
  }
  
  .faq-question {
    padding: 20px;
    font-size: 1rem;
  }
  
  .faq-question h3 {
    font-size: 1rem;
  }
  
  .faq-item.active .faq-answer .faq-question{
    padding: 0 20px 20px;
    font-size: 1.2rem;
  }

  .faq-answer p {
  font-size: 1rem;
  }

  .blog-excerpt {
  font-size: 1rem;
}
}

@media (max-width: 768px) {
  #header {
    transition: transform 0.3s ease-in-out, background-color var(--transition-speed), padding var(--transition-speed);
  }

  #header.hide-on-scroll {
    transform: translateY(-100%);
  }

  #header.show-on-scroll {
    transform: translateY(0);
  }

  .blog-excerpt {
  font-size: 1rem;
}
}

/* WhatsApp – menú de dos números (widget de contacto) */
.wa-options {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: none;
  flex-direction: column;
  gap: 6px;
  min-width: 260px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  z-index: 101;
}

/* Línea divisoria amarilla entre opciones */
.wa-options a:not(:last-child) {
  border-bottom: 2px solid var(--yellow);
}

.whatsapp-float.open .wa-options {
  display: flex;
}

.wa-options a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  color: var(--dark-blue);
  text-decoration: none;
  transition: background .2s ease, transform .08s ease;
}

.wa-options a:hover {
  background: rgba(0,0,0,0.03);
  transform: translateY(-1px);
}

/* Menú de opciones del widget WhatsApp */
.wa-options{
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: none;
  flex-direction: column;
  gap: 6px;
  min-width: 260px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  z-index: 101;
}

/* Línea divisoria amarilla entre opciones */
.wa-options a:not(:last-child) {
  border-bottom: 2px solid var(--yellow);
}

.whatsapp-float.open .wa-options{ 
  display: flex; 
}

.wa-options a{
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  color: var(--dark-blue);
  transition: background .2s ease, transform .08s ease;
}

.wa-options a:hover{ 
  background:var(--yellow); 
  transform: translateY(-1px); 
}

.wa-options a:active{ 
  transform: scale(.98); 
}

.whatsapp-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background-color: var(--yellow);
  color: var(--dark-blue);
  border-radius: 3rem;
  border: none;
  outline: none;
  padding: 0.8rem 0.6rem 0.7rem 0.4rem;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-secondary, sans-serif);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  cursor: pointer;              /* ← añade esto */
}


/* Mobile: botón en modo icono, menú igual */
@media (max-width:768px){
  .wa-options{ min-width: 220px; }
}

/* Mobile: botón en modo icono, menú igual */
@media (max-width:768px){
  .wa-options{ min-width: 220px; }
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.96);
  color: #f5f5f5;
  font-size: 14px;
  padding: 12px 16px;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.cookie-banner a {
  color: #FAE51C;
  text-decoration: underline;
}

.btn-cookie {
  font-size: 14px;
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.form-consent a {
    color: #333333;           /* texto gris oscuro */
    text-decoration: underline;
    font-weight: 600;         /* semi-negrita */
}

.form-consent a:hover {
    color: #FAE51C;           /* amarillo corporativo al pasar el mouse */
}

/* Banner gris del título en página de políticas */
.page-legal .legal-title-banner {
    background: #41474C;
    padding: 140px 0 80px;
    text-align: center;
}

.page-legal .legal-title-banner .section-title {
    color: #ffffff;
}

.page-legal .legal-title-banner .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #FAE51C;
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.page-legal .legal-title-banner .section-subtitle {
    color: #d7d7d7;
}

/* Contenido legal con márgenes */
.page-legal .legal-section {
    background: #f3f3f3;
    padding: 60px 0 80px;
}

/* Bloques */
.page-legal .legal-block {
    margin-bottom: 50px;
}

/* Tabla de cookies */
.cookies-table-wrapper {
    overflow-x: auto;
    margin-top: 10px;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.cookies-table th,
.cookies-table td {
    border: 1px solid rgba(0,0,0,0.08);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.cookies-table th {
    background: #f0f0f0;
    font-weight: 600;
}

.cookies-table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Banner de cookies */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.96);
  color: #f5f5f5;
  font-size: 14px;
  padding: 12px 16px;
  display: none;   /* ← clave: oculto por defecto */
}

.cookie-banner-content {
    max-width: 1100px;
    margin: 0 auto;
}

.cookie-banner p {
    margin: 0 0 8px;
}

.cookie-link {
    color: #FAE51C;
    font-weight: 600;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.btn-cookie {
    padding: 7px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-cookie.accept {
    background: #FAE51C;
    color: #000;
}

.btn-cookie.reject {
    background: #555;
    color: #fff;
}

.page-legal .legal-section h2 {
    margin-top: 40px;
    margin-bottom: 12px;
}

.page-legal .legal-section h3 {
    margin-top: 28px;
    margin-bottom: 10px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}







