* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.poppins-extralight {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.poppins-light {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 90px; /* Espacio para la barra de navegación fija */
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #007a74;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: #007a74;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  font-size: 1.1rem;
  color: #666666;
  max-width: 700px;
  margin: 0 auto;
}

/* Header Styles - Barra de navegación fija */
header {
  padding: 15px 0;
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
}

nav ul {
  display: flex;
  list-style: none;
}

/* Estilos mejorados para la animación de navegación */
nav ul li {
  position: relative;
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
  position: relative;
}

nav ul li a:hover {
  color: #00a99d;
  transform: translateY(-2px);
}

nav ul li.active a {
  color: #00a99d;
}

/* Animación mejorada para la navegación */
nav ul li::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #00a99d;
  transition: width 0.3s ease;
}

nav ul li.active::after {
  width: 100%;
}

/* Animaciones para la transición entre elementos de navegación */
nav ul li.nav-leaving::after {
  width: 0;
  transition: width 0.3s ease;
}

nav ul li.nav-entering::after {
  width: 0;
  animation: navEntering 0.3s forwards;
}

@keyframes navEntering {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Hero Section */
.hero {
  background-color: #00a99d;
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
  color: white;
}

.hero .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  width: 50%;
}

.hero-image {
  width: 40%;
}

.hero-image img {
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.buttons {
  display: flex;
  gap: 20px;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background-color: #00a19a;
  color: white;
}

.btn-primary:hover {
  background-color: #007a74;
  transform: translateY(-3px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: #00a19a;
  color: white;
}

.btn-secondary:hover {
  background-color: #007a74;
  transform: translateY(-3px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Wave Effect */
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,96L80,106.7C160,117,320,139,480,138.7C640,139,800,117,960,112C1120,107,1280,117,1360,122.7L1440,128L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
  }

  .hero-content,
  .hero-image {
    width: 100%;
  }

  .hero-content {
    margin-bottom: 40px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  nav ul {
    display: none;
  }
}

/* Sección de Servicios */
.services {
  padding: 100px 0;
  background-color: #f9f9f9;
}

.services-controls {
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
  display: flex;
  align-items: center;
}

.scroll-btn {
  background-color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 2;
  transition: all 0.3s ease;
}

.scroll-btn:hover {
  background-color: #00a19a;
  color: white;
}

.services-container {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.services-carousel {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Para scroll suave en iOS */
  scrollbar-width: none; /* Ocultar scrollbar en Firefox */
}

.services-carousel::-webkit-scrollbar {
  display: none; /* Ocultar scrollbar en Chrome/Safari */
}

.service-card {
  flex: 0 0 300px;
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  scroll-snap-align: start;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: #79e0dc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-icon i {
  font-size: 30px;
  color: #007a74;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #007a74;
}

.service-preview {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 20px;
  height: 40px;
}

.btn-more {
  background-color: transparent;
  color: #00a19a;
  border: none;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-more:hover {
  background-color: #79e0dc;
  color: #007a74;
}

.service-detail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex; /* ← Cambiado de none a flex por defecto */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none; /* Evita clics cuando está oculto */
}

.service-detail.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* ===== Contenedor del Modal ===== */
.detail-container {
  background-color: #ffffff;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: fadeIn 0.5s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}




/* ===== Botón de Cierre ===== */
.close-detail {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
  z-index: 10;
}

.close-detail:hover {
  color: #00a19a;
}

/* ===== Contenido del Modal ===== */
.detail-content {
  display: flex;
  padding: 0;
  height: 100%;
}

/* ===== Imagen ===== */
.detail-image {
  flex: 0 0 40%;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Texto ===== */
.detail-text {
  flex: 0 0 60%;
  padding: 40px;
}

.detail-text h3 {
  font-size: 2rem;
  color: #00a19a;
  margin-bottom: 20px;
}

.detail-text p {
  margin-bottom: 20px;
  color: #666666;
  line-height: 1.6;
}

/* ===== Lista de Beneficios ===== */
.detail-text ul {
  margin: 25px 0;
  padding-left: 0;
  list-style: none;
}

.detail-text ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 30px;
  color: #555;
}

.detail-text ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00a19a;
  font-weight: bold;
}

/* Botón de solicitar información */
.detail-text .btn-primary {
  display: inline-block;
  background-color: #00a19a;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  margin-top: 10px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.detail-text .btn-primary:hover {
  background-color: #007a74;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Modificar las propiedades del carrusel de aseguradoras */
.insurers {
  padding: 100px 0;
  background-color: white;
}

.insurers-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden; /* Asegura que el contenido no se desborde */
}

/* Mejorar visibilidad de los botones de navegación */
.insurers-nav {
  background-color: #00a99d;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 10;
  transition: all 0.3s ease;
  position: absolute;
  color: white;
}

.insurers-prev {
  left: 0;
}

.insurers-next {
  right: 0;
}

.insurers-nav:hover {
  background-color: #007a74;
  transform: scale(1.1);
}

.insurers-nav i {
  font-size: 18px;
}

/* Mejorar las propiedades del carrusel de aseguradoras para un desplazamiento más suave */
.insurers-carousel {
  display: flex;
  gap: 20px;
  width: 100%;
  padding: 20px 60px; /* Añadir espacio para los botones */
  transition: transform 0.5s ease;
  will-change: transform; /* Optimiza las animaciones */
}

.insurer-card {
  flex: 0 0 200px;
  height: 150px;
  background-color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  user-select: none; /* Evita selección de texto durante el arrastre */
}

.insurer-card img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.insurer-card:hover img {
  filter: grayscale(0%);
}

/* Animación para las secciones */
.services,
.insurers,
.nosotros,
.contacto {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.services.visible,
.insurers.visible,
.nosotros.visible,
.contacto.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
  .carousel-slide {
    flex: 0 0 calc(25% - 20px);
  }
}

@media (max-width: 992px) {
  .carousel-slide {
    flex: 0 0 calc(33.333% - 20px);
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 20px);
  }
}

@media (max-width: 576px) {
  .carousel-slide {
    flex: 0 0 calc(100% - 20px);
  }

  .carousel-button {
    width: 35px;
    height: 35px;
  }
}
/* Sección Sobre Nosotros */
.about-section {
  padding: 80px 0;
  background-color: #fff;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 0 0 45%;
}

.about-image img {
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 0 0 55%;
}

.about-text h2 {
  color: #00a99d;
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  color: #666;
  margin-bottom: 30px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background-color: #b2e6e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  color: #00a99d;
  font-size: 20px;
}

.feature-text h3 {
  color: #00a99d;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.feature-text p {
  color: #666;
  margin-bottom: 0;
}

/* Sección de Contacto */
.contact-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.contact-content {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 0 0 40%;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: #b2e6e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.info-icon i {
  color: #00a99d;
  font-size: 20px;
}

.info-text h3 {
  color: #00a99d;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.info-text p {
  color: #666;
  margin: 0;
}

.social-media {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: #b2e6e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-icon i {
  color: #00a99d;
  font-size: 18px;
}

.social-icon:hover {
  background-color: #00a99d;
}

.social-icon:hover i {
  color: white;
}

.contact-form {
  flex: 0 0 40%;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  position: relative;
}

/* Mejorar la animación del formulario */
.contact-form form {
  transition: opacity 0.3s ease;
}

.contact-form form.sending {
  position: relative;
}

.contact-form form.sending::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #555;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  height: 60px;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  color: #333;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00a99d;
}

/* Mensaje de éxito del formulario */
.form-success {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  z-index: 10;
}

.form-success.active {
  opacity: 1;
  visibility: visible;
}

@keyframes fadeInSuccess {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #00a99d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.form-success.active .success-icon {
  transform: scale(1);
}

.success-icon i {
  color: white;
  font-size: 40px;
}

.form-success h2 {
  color: #00a99d;
  font-size: 2rem;
  margin-bottom: 15px;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
  transition-delay: 0.1s;
}

.form-success.active h2 {
  transform: translateY(0);
  opacity: 1;
}

.form-success p {
  color: #666;
  font-size: 1.1rem;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
  transition-delay: 0.2s;
}

.form-success.active p {
  transform: translateY(0);
  opacity: 1;
}

/* Animación para el botón de envío */
.contact-form button[type="submit"] {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.contact-form button[type="submit"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.contact-form button[type="submit"]:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* Footer */
.footer {
  background-color: #fff;
  color: #fff;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 15px;
}

.footer-logo p {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer h3 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.footer h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #00a99d;
}

.footer-links ul,
.footer-services ul {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-services li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-services a:hover {
  color: #007a74;
}

.footer-newsletter p {
  color: #333;
  margin-bottom: 15px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-newsletter form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-newsletter input {
  padding: 12px 15px;
  border: none;
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
}

.footer-newsletter input:focus {
  outline: none;
}

.footer-newsletter .btn-primary {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: #333;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: #00a99d;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  color: white;
  padding: 15px 20px;
  display: none; /* Cambiado de flex a none por defecto */
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-consent.cookie-visible {
  transform: translateY(0);
}

.cookie-consent.cookie-hidden {
  transform: translateY(100%);
}

.cookie-consent p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-consent a {
  color: #00a99d;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.btn-cookie {
  padding: 8px 20px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-cookie.accept {
  background-color: #00a99d;
  color: white;
}

.btn-cookie.reject {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.btn-cookie.accept:hover {
  background-color: #008c82;
}

.btn-cookie.reject:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Botón volver arriba */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #00a99d;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #008c82;
  transform: translateY(-3px);
}

/* Newsletter success message */
.newsletter-success {
  background-color: #e6f7f6;
  color: #00a99d;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.3s ease;
}

.newsletter-success.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .about-content,
  .contact-content {
    flex-direction: column;
  }

  .about-image,
  .about-text,
  .contact-info,
  .contact-form {
    flex: 0 0 100%;
  }

  .about-image {
    margin-bottom: 30px;
  }

  .contact-info {
    margin-bottom: 30px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .section-header h1 {
    font-size: 2rem;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  nav ul {
    display: none;
  }

  .cookie-consent {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-logo,
  .footer-links,
  .footer-services,
  .footer-newsletter {
    text-align: center;
  }

  .footer h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ==================== ESTILOS PARA EL BLOG ==================== */

/* Estilos para el blog */
.blog-header {
  position: relative;
  background-color: #00a99d;
  padding-top: 100px; /* ← Para dejar espacio arriba para la barra fija */
  overflow: hidden;
}

.blog-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-header nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 1001;
  padding: 10px 3%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-header .logo img {
  width: 150px;
  margin: 0;
}

.blog-header .nav_links {
  flex: 1;
  text-align: right;
}

.blog-header .nav_links ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
}

.blog-header .nav_links ul li {
 list-style: none;
}

.blog-header .nav_links ul li a {
  color:#333;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s;
}

.blog-header .nav_links ul li a:hover,
.blog-header .nav_links ul li a.active {
  color: #00a99d;
  
}

.blog-header .nav_links ul li::after {
  content: '';
  width: 0;
  height: 2px;
  background: #ffffff;
  display: block;
  margin: auto;
  transition: 0.5s;
}

.blog-header .nav_links ul li:hover::after {
  width: 100%;
}


.blog-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.blog-header p {
  font-size: 1.1rem;
  max-width: 700px;
}

.blog-header .wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,96L80,106.7C160,117,320,139,480,138.7C640,139,800,117,960,112C1120,107,1280,117,1360,122.7L1440,128L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

.blog-content {
  padding: 80px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.1);
}

.blog-card-content {
  padding: 25px;
}

.blog-card-date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.blog-card-title {
  color: #007a74;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

.blog-card-excerpt {
  color: #666;
  margin-bottom: 20px;
}

.blog-card-link {
  color: #00a99d;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.blog-card-link:hover {
  color: #007a74;
}

.blog-card-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.blog-card-link:hover i {
  transform: translateX(5px);
}

/* Estilos para la página de artículo individual */
.article-header {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.article-meta {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.article-author {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.article-author-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
}

.article-author-name {
  font-weight: 600;
  color: #333;
}

.article-date {
  color: #666;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #007a74;
  margin-bottom: 20px;
  line-height: 1.2;
}

.article-featured-image {
  margin-bottom: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-content {
  padding: 0 0 60px;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.article-body p {
  margin-bottom: 25px;
}

.article-body h2 {
  font-size: 1.8rem;
  color: #007a74;
  margin: 40px 0 20px;
}

.article-body h3 {
  font-size: 1.5rem;
  color: #007a74;
  margin: 30px 0 15px;
}

.article-body ul, .article-body ol {
  margin-bottom: 25px;
  padding-left: 20px;
}

.article-body ul li, .article-body ol li {
  margin-bottom: 10px;
  list-style-type: disc;
}

.article-body ol li {
  list-style-type: decimal;
}

.article-body blockquote {
  border-left: 4px solid #00a99d;
  padding: 20px;
  background-color: #f9f9f9;
  margin: 30px 0;
  font-style: italic;
  color: #555;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.article-tag {
  background-color: #e6f7f6;
  color: #00a99d;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.article-tag:hover {
  background-color: #00a99d;
  color: white;
}

.article-share {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.article-share-title {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 15px;
}

.article-share-buttons {
  display: flex;
  gap: 15px;
}

.share-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.share-button.facebook {
  background-color: #3b5998;
}

.share-button.twitter {
  background-color: #1da1f2;
}

.share-button.linkedin {
  background-color: #0077b5;
}

.share-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Paginación */
.blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.pagination-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  margin: 0 5px;
  background-color: white;
  color: #333;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.pagination-button.active {
  background-color: #00a99d;
  color: white;
  border-color: #00a99d;
}

.pagination-button:hover:not(.active) {
  background-color: #f5f5f5;
}

/* Sidebar */
.blog-sidebar {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-widget {
  margin-bottom: 40px;
}

.sidebar-widget:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-size: 1.3rem;
  color: #007a74;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.sidebar-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: #00a99d;
}

.sidebar-search {
  position: relative;
}

.sidebar-search input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
}

.sidebar-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #00a99d;
  cursor: pointer;
}

.sidebar-categories ul li {
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.sidebar-categories ul li:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-categories ul li a {
  display: flex;
  justify-content: space-between;
  color: #555;
  transition: all 0.3s ease;
}

.sidebar-categories ul li a:hover {
  color: #00a99d;
}

.sidebar-posts-item {
  display: flex;
  margin-bottom: 15px;
}

.sidebar-posts-image {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
}

.sidebar-posts-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-posts-info h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.sidebar-posts-info h4 a {
  color: #333;
  transition: all 0.3s ease;
}

.sidebar-posts-info h4 a:hover {
  color: #00a99d;
}

.sidebar-posts-date {
  font-size: 0.8rem;
  color: #666;
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sidebar-tag {
  background-color: #f5f5f5;
  color: #555;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.sidebar-tag:hover {
  background-color: #00a99d;
  color: white;
}

/* Estilos responsivos para el blog */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .article-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-header h1 {
    font-size: 2.5rem;
  }
  
  .article-title {
    font-size: 1.8rem;
  }
  
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .article-author {
    margin-bottom: 10px;
  }
  
  .blog-header .nav_links {
    position: absolute;
    height: 100vh;
    width: 200px;
    top: 0;
    right: 0;
    text-align: left;
    z-index: 2;
    background-color: rgba(0, 169, 157, 0.9);
    padding-top: 80px;
    transform: translateX(100%);
    transition: transform 0.5s ease;
  }
  
  .blog-header .nav_links.active {
    transform: translateX(0);
  }
  
  .menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: white;
    z-index: 3;
  }
  
  @media(max-width: 700px) {
    .menu-toggle {
      display: block;
      position: absolute;
      top: 20px;
      right: 20px;
    }
    
    .blog-header .nav_links ul li {
      display: block;
    }
  }
}

@media (max-width: 576px) {
  .blog-header h1 {
    font-size: 2rem;
  }
  
  .article-title {
    font-size: 1.5rem;
  }
  
  .article-body {
    font-size: 1rem;
  }
}

.footer-bottom {
  background-color: #f8f9fa;
  padding: 20px 0;
  border-top: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 40px;
    text-align: left;
  }
}

.footer-bottom p {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}

/* Footer Legal Links */
.footer-legal {
  margin-top: 10px;
  display: flex;
  gap: 20px;
}

@media (min-width: 768px) {
  .footer-legal {
    margin-top: 0;
  }
}

.footer-legal a {
  color: #0056b3;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  position: relative;
}

.footer-legal a:hover {
  color: #003d7a;
  text-decoration: underline;
}

.footer-legal a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #003d7a;
  transition: width 0.3s ease;
}

.footer-legal a:hover::after {
  width: 100%;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  backdrop-filter: blur(3px);
}

.modal.hidden {
  display: none;
}

.modal:not(.hidden) {
  opacity: 1;
}

.modal-content {
  background-color: #fff;
  margin: 50px auto;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  overflow: hidden;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.modal:not(.hidden) .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
}

.modal-title {
  margin: 0;
  font-size: 18px;
  color: #212529;
  font-weight: 600;
}

.close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6c757d;
  transition: color 0.2s ease;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close:hover {
  color: #212529;
  background-color: #e9ecef;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  line-height: 1.6;
  color: #212529;
}

/* Loading animation */
.modal-body p:only-child:first-child:contains("Cargando") {
  text-align: center;
  padding: 20px;
  color: #6c757d;
}

.modal-body p:only-child:first-child:contains("Cargando")::after {
  content: "...";
  animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
  0% { content: "."; }
  33% { content: ".."; }
  66% { content: "..."; }
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .modal-content {
    margin: 30px auto;
    width: 95%;
  }
  
  .modal-header {
    padding: 10px 15px;
  }
  
  .modal-body {
    padding: 15px;
  }
}

/* Animation for modal appearance */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-30px); }
  to { transform: translateY(0); }
}

.modal:not(.hidden) {
  animation: fadeIn 0.3s ease forwards;
}

.modal:not(.hidden) .modal-content {
  animation: slideIn 0.3s ease forwards;
}