/* Estilos generales */
body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
}

h2 {
  color: #1a5276;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5em;
}

/* Estilos del encabezado y la navegación */
header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  height: 80px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  gap: 40px;
}

/* Logo responsivo */
.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

/* Estilos del menú de navegación */
.nav-menu {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  gap: 35px;
}

.nav-menu li {
  margin: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s ease;
  position: relative;
  white-space: nowrap;
}

/* Efecto de subrayado en los enlaces del menú */
.nav-menu li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: #ffa500;
  transition: all 0.3s ease;
}

.nav-menu li a:hover::after {
  width: 100%;
  left: 0;
}

.nav-menu li a.cta-button::after {
  display: none;
}

.nav-menu li a:hover {
  color: #1a5276;
}

/* Estilos del botón de menú para dispositivos móviles */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid #ffffff;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 5px;
  width: 45px; /* Botón más pequeño */
  margin-left: auto; /* Lo mueve a la derecha */
  position: relative;
  align-self: center;
}

.menu-toggle span {
  display: block;
  width: 25px; /* Líneas más cortas */
  height: 3px;
  background-color: #ffffff;
  margin: 5px auto; /* Centrado mejor */
  transition: all 0.3s ease;
}

.menu-toggle:hover span {
  background-color: #ffa500;
}

/* ========================================
   ESTILOS DEL HERO / CARRUSEL
   ======================================== */

.carousel-container {
  position: relative;
  margin-top: 80px;
  height: 85vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  width: 100%;
}

/* Overlay azul sobre las imágenes */
.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, 
    rgba(26, 82, 118, 0.95) 0%, 
    rgba(26, 82, 118, 0.85) 30%, 
    rgba(26, 82, 118, 0.4) 50%, 
    rgba(26, 82, 118, 0.1) 70%, 
    transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Contenedor de las imágenes del carrusel */
.carousel {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Contenido del carrusel (texto y botones) */
.carousel-content {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  text-align: left;
  color: white;
  z-index: 10;
  max-width: 650px;
  width: 90%;
  padding: 0 20px;
}

/* Contenido de texto individual de cada slide */
.carousel-text-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.carousel-text-content.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

/* Badge de experiencia */
.carousel-badge {
  display: inline-block;
  background-color: rgba(211, 84, 0, 0.9);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* Título principal del carrusel */
.carousel-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px 0;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

/* Descripción del carrusel */
.carousel-description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0 0 30px 0;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Contenedor de botones del carrusel */
.carousel-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Botones de llamada a la acción en el carrusel */
.carousel-buttons .cta-button {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-buttons .cta-button.primary {
  background-color: #d35400;
  color: white;
}

.carousel-buttons .cta-button.primary:hover {
  background-color: #ff8c00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 84, 0, 0.4);
}

.carousel-buttons .cta-button.secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid white;
  backdrop-filter: blur(10px);
}

.carousel-buttons .cta-button.secondary:hover {
  background-color: white;
  color: #1a5276;
  transform: translateY(-2px);
}

/* Botones de navegación del carrusel (flechas) */
/* Contenedor de navegación (botones + indicadores juntos) */
.carousel-navigation {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  z-index: 15;
}

/* Botones de navegación del carrusel */
.carousel-button {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.carousel-button:hover {
  background-color: rgba(211, 84, 0, 0.9);
  border-color: #d35400;
  transform: scale(1.1);
}

.carousel-button svg {
  width: 24px;
  height: 24px;
}

/* Indicadores del carrusel (entre los botones) */
.carousel-indicators {
  display: flex;
  gap: 10px;
  align-items: center;
}

.carousel-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-indicators .indicator:hover {
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.carousel-indicators .indicator.active {
  background-color: #d35400;
  border-color: #d35400;
  width: 30px;
  border-radius: 6px;
}

.carousel-button {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  pointer-events: all;
}

.carousel-button:hover {
  background-color: rgba(211, 84, 0, 0.9);
  border-color: #d35400;
  transform: scale(1.1);
}

.carousel-button svg {
  width: 24px;
  height: 24px;
}

/* Indicadores del carrusel (puntos) */

.carousel-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-indicators .indicator:hover {
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.carousel-indicators .indicator.active {
  background-color: #d35400;
  border-color: #d35400;
  width: 30px;
  border-radius: 6px;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 992px) {
  .carousel-container {
    height: 75vh;
    min-height: 450px;
  }

  .carousel-title {
    font-size: 2.5rem;
  }

  .carousel-description {
    font-size: 1.1rem;
  }

  .carousel-buttons .cta-button {
    padding: 12px 28px;
    font-size: 15px;
  }
}

/* ========================================
   RESPONSIVE - MÓVIL
   ======================================== */

@media (max-width: 768px) {
  .carousel-container {
    height: 70vh;
    min-height: 500px;
    margin-top: 80px;
  }

  .carousel-overlay {
    background: linear-gradient(to right, 
      rgba(26, 82, 118, 0.95) 0%, 
      rgba(26, 82, 118, 0.85) 40%, 
      rgba(26, 82, 118, 0.5) 70%, 
      transparent 100%);
  }

  .carousel-content {
    left: 5%;
    max-width: 90%;
    text-align: left;
  }

  .carousel-badge {
    font-size: 12px;
    padding: 6px 16px;
    margin-bottom: 15px;
  }

  .carousel-title {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
  }

  .carousel-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 25px;
  }

  .carousel-buttons {
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-start;
  }

  .carousel-buttons .cta-button {
    width: 100%;
    max-width: 280px;
    padding: 14px 24px;
    font-size: 15px;
    justify-content: center;
  }

  .carousel-nav-buttons {
    bottom: 60px;
    gap: 15px;
  }

 .carousel-navigation {
    bottom: 25px;
    gap: 15px;
  }

  .carousel-button {
    width: 40px;
    height: 40px;
  }

  .carousel-button svg {
    width: 20px;
    height: 20px;
  }

  .carousel-indicators {
    gap: 8px;
  }

  .carousel-indicators .indicator {
    width: 10px;
    height: 10px;
  }

  .carousel-indicators .indicator.active {
    width: 24px;
  }
}

/* Estilos de los botones de llamada a la acción */
.cta-button {
  display: inline-block;
  background-color: #1a5f7a;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-menu .cta-button {
  background-color: #d6dbdf;
  margin-left: 15px; /* Separar el botón del resto del menú */
}

.nav-menu .cta-button:hover {
  background-color: #d35400;
}

.cta-button:not(.nav-menu .cta-button) {
  background-color: #d35400;
}

.cta-button:not(.nav-menu .cta-button):hover {
  background-color: #ff8c00;
}

.cta-button:hover {
  background-color: #14475d;
}

.cta-button.floating {
  position: static; /* Cambiado de absolute a static para que fluya con los otros elementos */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 12px 24px;
  font-size: 16px;
  margin: 0 10px; /* Margen horizontal para separarlo de los botones */
}

/* Estilos de las secciones principales */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

section {
  margin-bottom: 60px;
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* ========================================
   SECCIÓN QUIÉNES SOMOS
   ======================================== */

#quienes-somos {
  padding: 80px 20px;
  background-color: #f8f9fa;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: center;
}

/* Texto a la izquierda */
.about-text {
  flex: 1;
  max-width: 50%;
}

.about-text h2 {
  font-size: 2.5rem;
  color: #1a5276;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.about-intro {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
  font-weight: 500;
}

.about-description {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.7;
}

/* Estadísticas */
.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #d35400;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #d35400;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Imágenes a la derecha */
.about-images {
  flex: 1;
  max-width: 45%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 15px;
}

.about-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-images img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Efecto escalonado - imágenes desalineadas */
.about-images img:nth-child(1) {
  transform: translateY(-20px);
}

.about-images img:nth-child(2) {
  transform: translateY(20px);
}

.about-images img:nth-child(3) {
  transform: translateY(-20px);
}

.about-images img:nth-child(4) {
  transform: translateY(20px);
}

/* Mantener el efecto hover */
.about-images img:nth-child(1):hover {
  transform: translateY(-25px);
}

.about-images img:nth-child(2):hover {
  transform: translateY(15px);
}

.about-images img:nth-child(3):hover {
  transform: translateY(-25px);
}

.about-images img:nth-child(4):hover {
  transform: translateY(15px);
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 992px) {
  .about-container {
    gap: 40px;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .about-intro {
    font-size: 1.1rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .about-stats {
    gap: 30px;
  }

  .about-images {
    grid-template-rows: 240px 160px;
  }
}

/* ========================================
   RESPONSIVE - MÓVIL
   ======================================== */

@media (max-width: 768px) {
  #quienes-somos {
    padding: 60px 20px;
  }

  .about-container {
    flex-direction: column;
    gap: 40px;
  }

  .about-text {
    max-width: 100%;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-intro {
    font-size: 1rem;
  }

  .about-description {
    font-size: 0.95rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
    padding-top: 25px;
  }

  .stat-item {
    text-align: left;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .about-images {
    max-width: 100%;
    grid-template-rows: 200px 140px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .about-text h2 {
    font-size: 1.6rem;
  }

  .about-images {
    grid-template-rows: 180px 120px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* Estilos de la sección "Servicios Legales" */
/* Contenedor del carrusel de servicios */
.services-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 2rem auto;
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Botones de navegación del carrusel */
.services-nav-button {
    background: white;
    border: 2px solid #ddd;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.services-nav-button:hover {
    background: #f0f0f0;
    border-color: #999;
}

.services-nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Carrusel de servicios */
.services-carousel {
    display: flex;
    gap: 1rem;
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 2rem 0;
    flex: 1;
    position: relative;
}

/* Ocultar scroll */
.services-carousel::-webkit-scrollbar {
    display: none;
}

.services-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Tarjeta de servicio - AQUÍ PUEDES CAMBIAR EL TAMAÑO */
.service {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    min-width: 300px;
    max-width: 30px;
    min-height: 450px;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}

/* Efecto de empalmado - los servicios que no están al principio se ven parcialmente */
.service:nth-child(2) {
    margin-left: 20px;     /* ESPACIO ENTRE 1° Y 2°: Cambia este valor para más/menos espacio */
    z-index: 15;
}

.service:nth-child(n+3) {
    margin-left: -320px;   /* EMPALMADO: Más negativo = más empalmado (prueba -300, -320, -340) */
}

.service:first-child {
    z-index: 20;
}

.service.active {
    z-index: 10;
}

/* Número del servicio - Estilo cuadrado gris */
.service-number {
    position: absolute;
    top: 5px;              /* POSICIÓN VERTICAL: Cambia este valor para mover arriba/abajo */
    right: 5px;            /* POSICIÓN HORIZONTAL: Cambia este valor para mover izquierda/derecha */
    font-size: 100px;      /* TAMAÑO NÚMERO: Cambia este valor para números más grandes/pequeños */
    font-weight: 900;
    color: rgba(128, 128, 128, 0.12);  /* TRANSPARENCIA: El último valor (0.12) controla transparencia */
    line-height: 1;
    font-family: 'Impact', 'Arial Black', sans-serif;
    pointer-events: none;
    z-index: 1;
    letter-spacing: 0;
    width: 100px;          /* ANCHO NÚMERO: Cambia este valor para números más anchos/angostos */
    text-align: center;
}

.service-icon {
    font-size: 3.5rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.service h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.service-summary {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Panel de detalles lateral */
.service-detail-panel {
    position: fixed;
    right: -600px;
    top: 0;
    width: 550px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    transition: right 0.4s ease;
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem;
}

.service-detail-panel.active {
    right: 0;
}

.close-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #8B4513;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-panel:hover {
    background: #6d3410;
    transform: rotate(90deg);
}

.service-detail-content {
    margin-top: 60px;
}

.service-detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.service-detail-title {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.service-detail-description {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .service {
        min-width: 320px;
        max-width: 320px;
        padding: 2rem;
    }
    
    .service-number {
        font-size: 80px;
        top: 10px;
        right: 10px;
    }
    
    .service-detail-panel {
        width: 100%;
        right: -100%;
    }
    
    .service-detail-panel.active {
        right: 0;
    }
}

/* Estilos de la sección "Nuestro Equipo Legal" */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  text-align: center;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 5px solid #1a5f7a;
}

/* ========================================
   SECCIÓN ACTUALIZACIONES LEGALES - TIMELINE STYLE
   ======================================== */

#actualizaciones {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.updates-container {
  max-width: 1200px;
  margin: 0 auto;
}

.updates-container h2 {
  color: #1a5276;
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px
 }

.title-underline {
  width: 100px;
  height: 4px;
  background-color: #d35400;
  margin: 0 auto 25px auto;
}

.updates-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 60px;
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Lista de actualizaciones */
.updates-list {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Item individual */
.update-item {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  border-left: 4px solid #d35400;
  padding-left: 30px;
  padding-top: 25px;
  padding-bottom: 25px;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.update-item:hover {
  transform: translateX(15px);
  background-color: #ffffff;
}

/* Fecha grande */
.update-date {
  flex-shrink: 0;
  text-align: center;
  width: 80px;
}

.date-number {
  font-size: 3rem;
  font-weight: 900;
  color: #1a5276;
  line-height: 1;
}

.date-month {
  font-size: 0.85rem;
  font-weight: 700;
  color: #d35400;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 5px;
}

/* Contenido */
.update-content {
  flex: 1;
}

.update-content h3 {
  color: #1a5276;
  font-size: 1.4rem;
  font-weight: 900;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.content-underline {
  width: 60px;
  height: 2px;
  background-color: #d35400;
  margin-bottom: 15px;
}

.update-content p {
  color: #666;
  line-height: 1.7;
  font-weight: 300;
  margin: 0;
}

/* Imagen */
.update-image {
  flex-shrink: 0;
  display: none;
}

.update-image img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border: 1px solid #ddd;
  transition: all 0.5s ease;
  filter: grayscale(100%);
  border-radius: 8px;
}

.update-item:hover .update-image img {
  filter: grayscale(0%);
}

/* Botón CTA */
.updates-cta {
  text-align: center;
  margin-top: 40px;
}

/* Botón CTA de Actualizaciones Modificado */
.cta-button-updates {
  display: inline-block;
  color: white;
  background-color: #d35400;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid #d35400;
  border-radius: 4px;
  padding: 14px 30px; 
  font-size: 0.85rem; 
}

.cta-button-updates:hover {
  background-color: white;
  color: #d35400;
}

/* ========================================
   RESPONSIVE - DESKTOP
   ======================================== */

@media (min-width: 1024px) {
  .update-image {
    display: block;
  }
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 992px) {
  .updates-container h2 {
    font-size: 2.8rem;
  }

  .update-content h3 {
    font-size: 1.5rem;
  }

  .date-number {
    font-size: 3rem;
  }
}

/* ========================================
   RESPONSIVE - MÓVIL
   ======================================== */

@media (max-width: 768px) {
  #actualizaciones {
    padding: 60px 15px;
  }

  .updates-container h2 {
    font-size: 2.2rem;
  }

  .updates-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .update-item {
    flex-direction: column;
    gap: 20px;
    padding-left: 20px;
  }

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

  .update-date {
    width: auto;
    text-align: left;
  }

  .date-number {
    font-size: 2.5rem;
  }

  .date-month {
    font-size: 0.75rem;
  }

  .update-content h3 {
    font-size: 1.3rem;
  }

  .update-content p {
    font-size: 0.95rem;
  }

  .cta-button-updates {
    padding: 15px 40px;
    font-size: 0.85rem;
  }
}

/* Estilos de la sección "Contáctanos" */
.contact-info {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.social-media {
  margin-top: 30px;
}

.social-icon {
  font-size: 24px;
  color: #1a5f7a;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: #14475d;
}

/* Recuadros de información de contacto */
.contact-info-boxes {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px auto 30px auto;
  width: 100%;
  max-width: 1100px;
  padding: 0 20px;
}

.info-box {
  flex: 0 0 240px;
  background-color: white;
  border: none;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.info-box::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 3px solid #1a5276;
  border-radius: 8px;
  transition: all 0.3s ease;
  pointer-events: none;
}

.info-box:hover {
  box-shadow: 0 4px 16px rgba(211, 84, 0, 0.2);
  transform: translateY(-5px);
}

.info-box:hover::before {
  border-color: #d35400;
}

.info-box h3 {
  font-size: 1.1rem;
  color: #1a5276;
  margin: 0 0 15px 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.info-box p {
  font-size: 1rem;
  color: #333;
  margin: 0;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* Responsive para móvil */
@media (max-width: 768px) {
.contact-info-boxes {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px auto 30px auto;
  width: 100%;
  max-width: 1100px;
  padding: 0 20px;
}

  .info-box {
    padding: 25px 15px;
  }

  .info-box h3 {
    font-size: 1rem;
  }

  .info-box p {
    font-size: 0.95rem;
  }
}

/* Estilos del pie de página */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* Estilos del botón flotante de WhatsApp y mensaje */
.whatsapp-container {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1000;
}

.whatsapp-float {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
}

.whatsapp-message {
  position: absolute;
  right: 70px;
  bottom: 0;
  background-color: #fff;
  color: #333;
  padding: 10px 15px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.whatsapp-message::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 10px 0 10px 10px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}

.whatsapp-message.show {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .whatsapp-container {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-message {
    font-size: 14px;
    padding: 8px 12px;
  }
}

/* Estilos responsivos */
@media (max-width: 992px) {
  /* Ajustes para tablets y pantallas medianas */
  .nav-menu {
    gap: 15px;
  }

  .nav-menu li a {
    font-size: 14px;
  }

  /* Ajustar el botón CTA para que se mantenga a la derecha */
  .nav-menu .cta-button {
    margin-left: 15px;
  }
}

@media (max-width: 768px) {
  /* Mostrar el botón de menú en dispositivos móviles */
  .menu-toggle {
    display: block;
  }

  /* Ocultar el menú de navegación por defecto en dispositivos móviles */
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    gap: 15px;
    align-items: center;
  }

  /* Mostrar el menú cuando está activo */
  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin: 5px 0;
    width: 100%;
    text-align: center;
  }

  .nav-menu li a {
    display: block;
    padding: 10px;
  }

  .nav-menu .cta-button {
    margin: 15px auto 5px;
    width: 200px;
  }

  /* Ajustar el tamaño del carrusel en dispositivos móviles */
  .carousel-container {
    margin-top: 80px;
    height: 60vh; /* Altura relativa a la ventana */
    min-height: 350px; /* Altura mínima */
  }

  /* Ajustar el fondo naranja del carrusel en dispositivos móviles */
  .carousel-container::before {
    width: 40%; /* Reducido para que no cubra todo en móvil */
    height: 100%;
    padding: 20px;
    background-color: rgba(211, 84, 0, 0.01);
    max-width: none;
  }

  /* Ajustar la posición del texto en el carrusel para dispositivos móviles */
  .carousel-container::after {
    font-size: 0px;
    display: block;
  }

  .carousel-company-name {
    font-size: 0px;
    display: block;
    margin-top: 10px; /* Ajustamos el margen superior */
  }

  .carousel-company-name::after {
    content: "";
    display: inline-block; /* Cambiamos a inline-block */
    width: 60px;
    height: 3px;
    background-color: rgba(211, 84, 0, 0.01);
    margin-left: 10px; /* Añadimos margen a la izquierda */
    vertical-align: middle; /* Alineamos verticalmente */
  }

  .carousel-slogan {
    font-size: 0px;
    display: block;
    margin-top: 10px;
  }

  /* Ajustar los botones de navegación en móvil */
  .carousel-button {
    padding: 8px;
    font-size: 14px;
    width: 32px;
    height: 32px;
  }

  .carousel-nav-buttons {
    gap: 10px;
    bottom: 15px;
    width: 90%; /* Ancho controlado para móviles */
    justify-content: center;
  }

/* Ajustar las imágenes del carrusel en móvil para que se vean completas */
  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Aseguramos que la imagen se muestre completa en móvil */
    max-height: 100%;
  }

  /* Ajustar el contenedor del carrusel para mostrar imágenes completas */
  .carousel {
    height: 100%;
  }

  .carousel-slide {
    height: 100%;
  }


  /* Ajustar el botón flotante de llamada a la acción en dispositivos móviles */
  .cta-button,
  .service .cta-button {
    display: block;
    width: auto;
    max-width: 200px;
    margin: 10px auto;
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
  }

  .cta-button.floating {
    font-size: 14px;
    padding: 8px 16px;
    margin: 0 5px;
  }

  /* Cambiar la disposición de los botones de contacto en dispositivos móviles */
  .contact-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Ajustar la sección "Quiénes Somos" para dispositivos móviles */
  #quienes-somos .content {
    flex-direction: column;
  }

  #quienes-somos .text {
    padding-right: 0;
    margin-bottom: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service {
    padding: 20px;
    text-align: center;
  }

  .service h3 {
    font-size: 1.2em;
  }

  .service-icon {
    font-size: 36px;
  }

  .service .cta-button {
    align-self: center;
  }

  section {
    padding: 20px;
    margin-bottom: 30px;
  }

  h2 {
    font-size: 2em;
  }

  /* Ajustar la etiqueta de descripción del servicio en móviles */
  .service-description {
    left: 0;
    top: 0;
    width: 92.5%;
    height: auto; /* Cambiamos a auto para que se ajuste al contenido */
    max-height: 100%; /* Limitamos la altura máxima */
    overflow-y: auto; /* Añadimos scroll si el contenido es muy largo */
    padding: 15px;
    font-size: 14px; /* Reducimos el tamaño de la fuente */
  }

  .service-description.active {
    left: 0;
  }

  /* Ajustar imágenes en móvil */
  .team-member img {
    width: 150px;
    height: 150px;
  }

  .update img {
    height: 150px;
  }

  /* Ajustar el espacio entre el carrusel y el contenido principal */
  main {
    padding-top: 20px;
  }
}

/* Ajustes para las etiquetas de servicios en desktop */
@media (min-width: 769px) {
  .service-description {
    left: calc(100% + 10px); /* Añadimos separación */
    top: -10px; /* Ajustamos la posición vertical */
  }

  .service-description::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #1a5f7a; /* Color del fondo de la etiqueta */
  }

  /* Ajuste especial para el último servicio */
  .service:last-child .service-description {
    left: auto;
    right: calc(100% + 10px);
  }

  .service:last-child .service-description::before {
    left: auto;
    right: -10px;
    border-right: none;
    border-left: 10px solid #1a5f7a;
  }


  /* Ajustar el espacio entre el carrusel y el contenido principal */
  main {
    padding-top: 40px;
  }
}

/* Asegurar que todas las imágenes sean responsivas */
img {
  max-width: 100%;
  height: auto;
}

/* Eliminar espacio en blanco entre el carrusel y el contenido principal */
main {
  margin-top: 0;
}

/* Ajustar el primer elemento de main para eliminar espacio superior */
main section:first-child {
  margin-top: 0;
}

/* Ajustar el botón CTA en el menú */
.nav-menu li:last-child {
  margin-left: 20px; /* Espacio entre los enlaces y el botón CTA */
}

/* Añadir margen derecho a los elementos del menú (excepto el último) */
.nav-menu li:not(:last-child) {
  margin-right: 0; /* Eliminar margen adicional */
}


/* ========================================
   CHATBOT FLOTANTE Y VENTANA
   ======================================== */

/* Contenedor del botón flotante del chatbot */
.chatbot-container {
  position: fixed;
  bottom: 120px; /* Arriba del botón de WhatsApp */
  right: 40px;
  z-index: 1000;
}

.chatbot-float {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1a5276 0%, #2874a6 100%);
  border: 3px solid #d35400;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(26, 82, 118, 0.4);
  transition: all 0.3s ease;
  padding: 0;
  overflow: hidden;
}

.chatbot-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(211, 84, 0, 0.6);
}

.chatbot-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chatbot-message {
  position: absolute;
  right: 70px;
  bottom: 15px;
  background-color: #fff;
  color: #333;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}

.chatbot-message::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}

.chatbot-container:hover .chatbot-message {
  opacity: 1;
  transform: translateX(0);
}

/* Ventana del chatbot */
.chatbot-window {
  position: fixed;
  bottom: 120px;
  right: 40px;
  width: 380px;
  height: 550px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 1001;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

.chatbot-window.active {
  display: flex;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header del chatbot */
.chatbot-header {
  background: linear-gradient(135deg, #1a5276 0%, #2874a6 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #d35400;
}

.chatbot-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #d35400;
  object-fit: cover;
}

.chatbot-header-text h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.chatbot-status {
  margin: 0;
  font-size: 12px;
  color: #a8dadc;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chatbot-status::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: #2ecc71;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.chatbot-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chatbot-close:hover {
  background: rgba(211, 84, 0, 0.9);
  transform: rotate(90deg);
}

/* Área de mensajes */
.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #1a5276;
  border-radius: 3px;
}

/* Mensajes del bot */
.chatbot-message-bot {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: fadeIn 0.3s ease;
}

.message-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid #d35400;
  flex-shrink: 0;
}

.message-content {
  background: white;
  padding: 12px 16px;
  border-radius: 15px 15px 15px 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 75%;
}

.message-content p {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

/* Mensajes del usuario */
.chatbot-message-user {
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.3s ease;
}

.chatbot-message-user .message-content {
  background: linear-gradient(135deg, #1a5276 0%, #2874a6 100%);
  color: white;
  border-radius: 15px 15px 5px 15px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Área de input */
.chatbot-input-container {
  padding: 15px 20px;
  background: white;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.voice-button {
  background: linear-gradient(135deg, #d35400 0%, #ff8c00 100%);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.voice-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(211, 84, 0, 0.4);
}

.voice-button.recording {
  animation: recordPulse 1s infinite;
}

@keyframes recordPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(211, 84, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(211, 84, 0, 0);
  }
}

.chatbot-input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.chatbot-input:focus {
  border-color: #1a5276;
}

.send-button {
  background: linear-gradient(135deg, #1a5276 0%, #2874a6 100%);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.send-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(26, 82, 118, 0.4);
}

/* Responsive móvil */
@media (max-width: 768px) {
  .chatbot-container {
    bottom: 100px;
    right: 20px;
  }

  .chatbot-window {
    width: calc(100vw - 40px);
    height: calc(100vh - 140px);
    bottom: 100px;
    right: 20px;
  }

  .chatbot-message {
    display: none;
  }
}

/* Botón de reproducir audio en mensajes del bot */
.message-content {
  background: white;
  padding: 12px 16px;
  border-radius: 15px 15px 15px 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 75%;
  position: relative;
  padding-right: 45px; /* Espacio para el botón de audio */
}

.audio-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #1a5276 0%, #2874a6 100%);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 12px;
}

.audio-button:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(26, 82, 118, 0.4);
}

.audio-button.playing {
  background: linear-gradient(135deg, #d35400 0%, #ff8c00 100%);
  animation: audioPlaying 1s infinite;
}

@keyframes audioPlaying {
  0%, 100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.15);
  }
}

/* Estilos para enlaces de redes sociales en el chatbot */
/* Estilos para enlaces de redes sociales en el chatbot - VERSIÓN COMPACTA */
.social-links-list {
  margin-top: 8px;
  padding: 6px;
  background: transparent;
  border-radius: 6px;
}

.social-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin: 4px 0;
  background: white;
  border-radius: 6px;
  text-decoration: none;
  color: #1a5276;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  font-size: 13px;
}

.social-link-item:hover {
  background: #1a5276;
  color: white;
  transform: translateX(3px);
  box-shadow: 0 2px 6px rgba(26, 82, 118, 0.3);
}

.social-link-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.social-link-info {
  flex: 1;
  min-width: 0;
}

.social-link-name {
  font-weight: 600;
  font-size: 13px;
  margin: 0;
  line-height: 1.2;
}

.social-link-handle {
  font-size: 11px;
  opacity: 0.7;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-link-item .fa-external-link-alt {
  font-size: 11px;
  opacity: 0.6;
  flex-shrink: 0;
}
/* Contenedor separado para redes sociales */
.social-only {
  margin-top: 5px;
  display: flex;
  gap: 10px;
}

.message-avatar-spacer {
  width: 35px;
  flex-shrink: 0;
}

.social-only .social-links-list {
  flex: 1;
  margin-top: 0;
}