/* Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Sonsie+One&family=TikTok+Sans:opsz,wght@12..36,300..900&family=VT323&display=swap');

body, html{
  margin: 0;
  padding: 0;
  width: 100%;
}
*{
  font-family: 'TikTok Sans', 'VT323', sans-serif;
  font-weight: 400;
  text-rendering: optimizeLegibility;

}
body {
  line-height: 1.6;
  color: white;
  background: linear-gradient(135deg,#244d79 100% , #142675 1%);
}

main{  
  min-height: 100vh;
}
.section-title, .section-description {
  color: white;
  text-align: center;
}

#section-description-first{
  font-size: 20px;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.1rem;
}

header {
  background: #ffffff;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: auto;
}


.bg-img-1{
  background-image: url('images/Page 1.jpeg');
}

.bg-img-2{
  background-image: url('images/Page 2.jpeg');
}

.bg-img-3{
  background-image: url('images/Page 3.jpeg');
}

#myCarousel {
  position: relative; /* importante para que los indicadores se ubiquen dentro */
}


.carousel-indicators {
  bottom: 2000px;
}

.carousel-image{
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 80vh;
}
.carousel-item :active {
  position: relative;
  height: 80vh; /* Ajusta el alto del carousel */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Pseudo-elemento para el blur del fondo */
.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Keep the original background settings for the blurred image */
    background: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    transform: scale(1.1);
    pointer-events: none;

    /* --- ADD THIS FOR THE DARK POLARIZED EFFECT --- */
    /* Use a semi-transparent black overlay on top of the blur */
    box-shadow: inset 0 0 0 100vw rgba(0, 0, 0, 0.4); /* Black overlay with 40% opacity */

    z-index: 1;
}

/* Asegurar que el texto quede encima y sin blur */
.carousel-caption {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 95%);
  height: 600px;
  align-content: center;
  justify-content: center;
  border-radius: 10px;
  padding: 15px;
  pointer-events: none;
}

.carousel-caption ul{
  font-size: 30px;
  list-style-type:decimal;
  list-style-position: inside;
  text-decoration: underline;
  display: inline-table;
}

.carousel-caption p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

.layout-inner{
    margin: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-caption h3 {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
}

.carousel-caption p {
  text-align: justify;
  font-size: 30px;
}

#title-section-container {
 background-color: white;
}
#title-section-container p{
  color: #244d79;
  font-size: 30px;
  text-align: center;
  padding: 10px;
  margin: 0;
  align-items: center;
  justify-content: center;
}
.carousel-scroll {
  display: flex;
  gap: 1rem; /* separación entre cards */
  overflow-x: auto; /* scroll horizontal */
  scroll-snap-type: x mandatory; /* efecto "snap" */
  padding-bottom: 1rem;
}

.carousel-scroll .card {
  flex: 0 0 auto; /* evita que se encoja */
  width: 300px;   /* ancho fijo de cada card */
  scroll-snap-align: start;
}

.carousel-scroll::-webkit-scrollbar {
  height: 8px; /* barra más delgada */
}

.carousel-scroll::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.carousel-scroll::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.card-body {
  padding: 0.75rem; /* valor más pequeño que el default de Bootstrap */
  background-color: #f7fafc; /* color de fondo claro */
  border-radius: 8px; /* bordes redondeados */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* sombra sutil */
  height: 150px; /* altura fija para uniformidad */
  display: flex;
  flex-direction: column;
}

.card-body ul {
  list-style-type: decimal;      /* mantiene la numeración */
  list-style-position: inside;   /* mete el número dentro del bloque */
  text-align: left;            /* centra todo, número + texto */
  font-size: 13px;
  margin: 0 auto;
  padding: 0;
}
.card-body ul li {
  margin: 4px 0; /* espacio entre ítems */
}

.image-wrapper {
  position: relative;
  display: inline-block;
}

.blur-circle {
  position: absolute;
  top: 50px;   /* posición Y del rostro */
  left: 20px;  /* posición X del rostro */
  width: 50px; /* tamaño del círculo */
  height: 50px;
  border-radius: 50%;
  backdrop-filter: blur(2px); /* aplica el blur */
  -webkit-backdrop-filter: blur(15px); /* para Safari */
}


.container-services{
  display: flex;
  gap: 10px;
  margin: 20px;
}
.container-services div{
  width: 500px;
  margin-bottom: 3rem;
  border-style: solid;
  border-color: white;
}

.title-services{
  border-style:dotted ;
  border-color: white;
  margin: 20px;
  border-radius: 15px;
  color: white;
  align-content: center;
  text-align: center;
}

.row-direction{
  display: flex;
  align-content: center;
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;

}
.card-body-service{
  padding: 0.75rem; /* valor más pequeño que el default de Bootstrap */
  margin-top: 1rem;
  background-color: #244d79; /* color de fondo claro */
  border-radius: 8px; /* bordes redondeados */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* sombra sutil */
  display: flex;
  flex-direction: column;
  justify-content: left;
  align-items: center; /* centra el contenido horizontalmente */
  text-align: center; /* centra el texto */
  color:white;
  border-width: 2px;
}
.card-body-service ul {
  list-style:decimal;   /* muestra los puntos */
  padding-left: 20px;      /* sangría para que se vean los bullets */
  margin: 0;               /* elimina espacio extra si no lo quieres */
  font-family: tiktok sans, sans-serif;          /* color del texto */
  font-size: 1rem;         /* tamaño de fuente */
  line-height: 1;        /* altura de línea para mejor legibilidad */
  text-align: justify;     /* justifica el texto */
  font-weight: 400;        /* peso de la fuente */
  text-decoration: none;   /* sin subrayado */
  transition: color 0.3s ease; /* transición suave para cambios de color */
  margin-top: 0;           /* elimina espacio arriba si no lo quieres */
  margin-bottom: 0;        /* elimina espacio abajo si no lo quieres */
}

/* Header */
.container-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.container-flex .col {
  flex: 1;
  padding: 0 1rem;
}

.container-flex .col img {
  height: auto;
}

.nav-header-bar h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3748;
  cursor: pointer;
  position: relative;
  font-family: 'tiktok sans', sans-serif;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-header-bar a {
  text-decoration: none;  /* quita el subrayado */
  color: black;           /* color por defecto */
}

.nav-header-bar a:hover {
  text-decoration: none;  /* sigue sin subrayado */       /* color al pasar el mouse */
}

.nav-header-bar {
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 20px;
  color: #244d79;
}

.nav-header-bar a {
  text-decoration: none;
  color: black;
  font-size: 1.2rem;
}

.nav-header-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}


/* Ocultar hamburguesa en escritorio */
#menuToggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.container-flex .nav-header-bar {
  display: flex;
  gap: 1rem;
  padding: 0 1rem;
}

.container-flex h3::after {
  content: '';
  display: flex;
  position: relative;
  left: 50px;
  height: 4px;
  background: #4299e1;
  transform: translateX(-50%);
  width: 0px;
  transition: width 0.3s ease;
}

.container-flex h3:hover::after {
  width: 100%;
}

/* Main Content */
.main {
  padding: 3rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 0.2rem;
  align-items: start;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.feature-header i {
  font-size: 2rem;
  margin-right: 1rem;
  color: #4299e1;
}

.feature-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2d3748;
}

.feature-description {
  color: #718096;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-group textarea {
  resize: none;
  min-height: 120px;
}

/* Button Styles */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #4299e1, #3182ce);
  color: white;
}

.btn-primary:hover{
  background: linear-gradient(135deg, #3182ce, #2c5282);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(66, 153, 225, 0.4);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #128c7e, #075e54);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* WhatsApp Section */
.whatsapp-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.chat-option {
  padding: 1.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  transition: border-color 0.3s ease;
}

.chat-option:hover {
  border-color: #25d366;
}

.chat-option h3 {
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.chat-option p {
  color: #718096;
  margin-bottom: 1rem;
}

.custom-message-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.custom-message-form textarea {
  padding: 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.custom-message-form textarea:focus {
  outline: none;
  border-color: #25d366;
}

.whatsapp-info {
  background: #f7fafc;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #25d366;
}

.whatsapp-info p {
  margin-bottom: 0.5rem;
  color: #4a5568;
}

.whatsapp-info p:last-child {
  margin-bottom: 0;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0.5;
}


.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  opacity: 1;
}

.floating-whatsapp i {
  font-size: 3.0rem;
  color: white;
}

.avatar-container {
  position: fixed;
  top: 9rem;
  left: 0.2rem;
  text-align: left;
  z-index: 1000; /* Asegura que esté por encima de otros elementos */
}

.avatar-container img {
  width: 100px; /* Ajusta el tamaño según sea necesario */
  height: 100px; /* Ajusta el tamaño según sea necesario */
  border-radius: 50%; /* Hace que la imagen sea circular */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Sombra para darle profundidad */
  transition: transform 0.3s ease;
  opacity: 0.7;
}
.avatar-container .chat-bubble{
  opacity: 0.7;
}

.avatar-container img:hover {
  transform: scale(1.1); /* Efecto de zoom al pasar el mouse */
  opacity: 1;
}

.chat-bubble { 
 text-align: left;
    position: absolute;
    top: 20px;
    left: 80px;
    z-index: 1001;
    padding: 0px;
    border-radius: 10px;
    margin-bottom: 5px;
    background-color: #244d79;
    color: white;
    font-size: 20px;
    opacity: 0.9;
}

.avatar-container:hover .chat-bubble {
  opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}
.chat-bubble p{
  margin: 0;
  padding: 0;
}
.letra {
    display: inline-block; /* Crucial para que la animación de 'transform' funcione */
    transition: transform 0.5s ease-in-out; /* Transición suave para el movimiento */
}
/* Form Status */
.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  display: none;
}

.form-status.success {
  background: #f0fff4;
  color: #22543d;
  border: 1px solid #9ae6b4;
  display: block;
}

.form-status.error {
  background: #fed7d7;
  color: #742a2a;
  border: 1px solid #feb2b2;
  display: block;
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  text-align: center;
  color: black;
  max-height: 180px;
}
.contact{
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: black;
  font-family: tiktok sans, sans-serif;}


.info{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-content: center;
}
.info ul {
  list-style: none;
}
.info ul li {
  margin-bottom: 0.5rem;
}
footer{
  margin-top: 30px;
}
footer .container-end {
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.container-end {
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.container-end p {
  text-align: center;
  color: white;
  font-size: 0.9rem;
  justify-content: bottom;
}


.container-end p{
  margin: 0;
  padding: 0;
  justify-content: center;
}

.footer-links a {
   text-decoration: none;  /* quita el subrayado */
  color: black;
}

.footer-links a:hover{
 color: #0a58ca;
}

footer ul li{
  font-size:20px;
}

.muted {
  justify-content: justify;
  font-size: 0.9rem;
}

.list{
  justify-content: justify;
  align-items: center;
}

.list ul{
  text-align: left;
}
.policy{
  text-decoration: none;  /* quita el subrayado */
  background-color:white;
  margin: 20px;
  font-family: tiktok sans, sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: justify;
  display: block;
  transition: color 0.3s ease;
  padding: 20px;
  border-radius: 15px;
}

.policy h2{
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.policy p{
  font-size: 20px;
  margin-bottom: 1rem;
  color: white;
  text-align: justify;
  margin-top: 1rem;
  font-family: tiktok sans, sans-serif;
  font-weight: 400;
  transition: color 0.3s ease;
}

.note {
  font-size: 0.9rem;
  color: #718096;
  text-align: center;
  margin-top: 1rem;
}
.small {
  font-size: 0.9rem;
  color: #718096;
  text-align: justify;
  margin-bottom: 1rem;
}
/* Sección principal */
.intro, .intro-pri, .intro-sec {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  border: 1px dashed #e2e8f0; /* gris claro en lugar de blanco puro */
}

/* Párrafos */
.intro p , .intro-pri p, .intro-sec p {
  margin: 1rem 0;
  color: #244d79;
  font-size: 1.2rem; /* escalable en vez de cm */
  line-height: 1.6;
  text-align: justify;
}

/* Listas */
.intro ul , .intro-pri ul, .intro-sec ul {
  list-style: none;
  padding-left: 1.5rem;
  margin: 1rem 0;
  color:#244d79;
  font-size: 1rem;
}

.intro ul li,.intro-pri ul li, .intro-sec ul li {
  margin-bottom: 0.5rem;
}

.intro ul li::before,.intro-pri ul li::before ,.intro-sec ul li::before {
  content: "✔ ";
  color: #38bdf8; /* azul claro */
  font-weight: bold;
}

/* Títulos */
.intro,.intro-pri,.intro-sec{
    width: 90%;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 2rem;
    padding: 50px;
    border-style: dotted;
    border-color: white;
    background-color: white;
    margin: 20px;
  }
   .section-title,.section-description, .section-subtitle,.section-title-first,.section-title-second,.wrapper img, .intro p, .intro ul, .container-terms, .policy h2, .policy p{
    color: #244d79;
    line-height: normal;
   }

  
  .section-title {
    margin-bottom: 2rem;
  }

  .section-title-first{
    position: relative;
    bottom: 20px;
    font-size: 2rem;
    color: #244d79;
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .section-title-second{
    position: relative;
    bottom: 50px;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #244d79;
  }

/* Subtítulos alternativos (antes tenías .first y .second duplicados) */
.section-subtitle {
  color: white;
  text-align: center;
  margin-top: -1.5rem; /* opcional si quieres acercar títulos */
}

/* Imágenes dentro de servicios */
.service-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 1rem auto;
}

.container-terms{
  margin: 0px;
  width: 100%;
  padding: 100px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-family: tiktok sans, sans-serif;
  text-align: justify;
}

.wrapper{
  margin-top: 50px;
  display: flex;
  flex-direction: row;
  gap: 100px;
  align-items: center;
  align-content: center;
  justify-content: center;

  height: auto;
}

.wrapper img{
  border-radius: 200px;
  border-image-outset: 10px;
  border-style: dotted;
  border-color:white;
  visibility: inherit;
}

#img-service-two,#img-service-one {
  height: 300px;
  width: 300px;
  border-radius: 700px;
  position: relative;
  right: 10px;
}

.carousel-caption h1 {
  font-size: clamp(18px, 4vw, 36px); /* título */
  font-weight: bold;
}

.carousel-caption p {
  font-size: clamp(14px, 2vw, 20px); /* párrafo */
  line-height: 1.4;
}

.carousel-caption {
  position: relative;
  top: 20px;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}



/* Responsive Design */
@media (max-width: 768px) {

.carousel-caption h1 {
  font-size: clamp(18px, 4vw, 36px); /* título */
  font-weight: bold;
}

.carousel-caption p {
  font-size: clamp(12px, 2vw, 20px); /* párrafo */
  line-height: 1.4;
}

.carousel-caption {
  position: relative;
  top: 20px;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

.carousel-image{
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 80vh;
}

header {
  padding: 0.5rem 0;
}

  .container-flex {
    flex-direction: column;
    text-align: center;
  }
  .nav-header-bar ul {
    flex-wrap: wrap;
    gap: 1rem;
    flex-direction: column;
  }
  .feature-card  {
    padding: 1rem;
    margin: 1rem 0;
    grid-column: span 2;
  }
  
  .chat-option{
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  
  }

  .custom-message-form img{
    height: 300px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
   .carousel-caption{
    position: relative;
    top: 20px;
    padding: 10px;
    height: auto;
    align-content: center;
    justify-content: center;
    border-radius: 10px;
    padding: 15px;
    text-align: center;

   }

  .carousel-caption p,h1,h2,h3,ul{
    font-size: 18px;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .header h1 {
    font-size: 1.5rem;
  }
  
  .whatsapp-options {
    gap: 1.5rem;
  }
  
  .floating-whatsapp {
    bottom: 1rem;
    right: 1rem;
    width: 100px;
    height: 100px;
    opacity: 0.5;
  }

  .floating-whatsapp:hover {
    opacity: 1;
  }
  
  .floating-whatsapp i {
    font-size: 3.2rem;
  }
  .intro{
    width: 90%;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 2rem;
    padding: 50px;
    border-style: dotted;
    border-color: white;
    background-color: white;
    margin: 20px;
  }
   .section-title,.section-description, .section-subtitle,.section-title-first,.section-title-second,.wrapper img, .intro p, .intro ul, .container-terms, .policy h2, .policy p{
    color: #244d79;
    line-height: normal;
   }

  
  .section-title {
    margin-bottom: 2rem;
  }

  .section-title-first{
    position: relative;
    bottom: 20px;
    font-size: 2rem;
    color: #244d79;
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .section-title-second{
    position: relative;
    bottom: 50px;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #244d79;
  }
 .carousel-inner  {
  width: 100%;
  height: auto;
 }

 .container{
  margin: 20px;
   width: 100%;
 }

 .wrapper{
  display: flex;
  align-items: center;
  flex-direction: column;
  height: 820px;
 }
 #img-service-two{
  border-radius: 700px;
  position: relative;
  right: 10px;
  position: relative;
  bottom: 1px;
  top: 1px;
}

.ilustration{
  position: relative;
  bottom: 95px;
  visibility: inherit;
}

.wrapper-ilustration-sec ul {
  margin-bottom: 2px; /* ajusta la distancia entre lista e imagen */
}

.wrapper-ilustration-sec img {
  display: block;
  margin: 0 auto; /* opcional: centra la imagen */
  max-width: 100%; /* evita que se desborde */
  height: auto;
}

 
  
  .intro p {
    font-size: 18px;
    line-height: 1.6;
    text-align: justify;
    padding: 10px;
    position: relative;
    bottom: 2rem;
    margin: 0;
    color:#244d79;
    text-align: justify;
    padding: 10px;
  }
  .description-text{
    text-align: center;
  }

  .section-description {
    justify-content: center;
    text-align: justify;
  }
  .intro ul{
    text-align: start;
  }
  .container-terms{
    margin: 0px;
    width: 100%;
    padding: 50px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: tiktok sans, sans-serif;
    text-align: justify;
    font-size: 18px;
  }

.footer {
  background-color: #f8f8f8;
  padding: 20px;

}

 .footer .info {
  justify-content: center;
  flex-direction: column;
 }

 .footer-links ul li a {
  text-decoration: none;
  color: #333;
 }
 .content-footer p {
  margin: 5px 0;
 }

 .footer{
  min-height: 400px;
 }
  .footer .info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer .details,
  .footer .contact {
    margin-bottom: 15px;
  }

  .footer-links ul li {
    margin-bottom: 8px;
  }
  .section-description img{
    visibility: hidden;
  }

 #img-service-two {
  border-radius: 700px;
  position: relative;
  right: 10px;
  bottom: 140px;
}

.carousel-caption ul{
  font-size: 27px;
  list-style-type:decimal;
  list-style-position: inside;
  text-decoration: underline;
  display:flex;
  flex-direction: column;
}

#img-service-two{
 margin-top: 50px;
}

.intro{
line-height: 10px;
}

.container-services{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

}

@media (max-width:820px){

  .carousel-item.bg-img-2 .carousel-caption p, .carousel-item.bg-img-1 .carousel-caption p{
    font-size: 12px;
    line-height: 1.3;
  }

  .ilustration-pri{
    position: relative;
    bottom: 150px;
    visibility: inherit;

  }
  .intro-pri{
    height: 700px;
    visibility: inherit;
    background-color: white;
    border-style: dotted;
    border-color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px;
    width: 90%;
    padding: 50px;
    text-align: justify;
    font-size: 18px;
    line-height: 1.3;
  }
  .intro-sec{
    height: 920px;
    visibility: inherit;
    background-color: white;
    border-style: dotted;
    border-color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px;
    width: 90%;
    padding: 50px;
    text-align: justify;
    font-size: 18px;
    line-height: 1.3;
  }
  .intro-pri p{
    font-size: 18px;
    line-height: 1.3;
    text-align: justify;
    padding: 10px;
    margin: 0;
    color:#244d79;
    text-align: justify;
    padding: 10px;
  }
  

  .section-description  ul{
    position: relative;
    bottom: 40px;
    font-size: 18px;
    text-align: justify;
    padding: 10px;
    margin: 0;
    color:#244d79;
    text-align: justify;
    padding: 10px;
    border-radius: 8px;
    background-color: white;
  }

  .section-description p{
    font-size: 18px;
    line-height: 1.3;
    text-align: justify;
    padding: 10px;
    margin: 0;
    color:#244d79;
    text-align: justify;
    padding: 10px;
  };
   /* reduce espacio después del párrafo */


  .carousel-caption ul{
    font-size: 20px;
    list-style-type:decimal;
    list-style-position: inside;
    text-decoration: underline;
    display:flex;
    flex-direction: column;
  }
  .footer {
  background-color: #f8f8f8;
  padding: 20px;
}

 .footer .info {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
 }

 .footer .details,
 .footer .contact {
  flex: 1;
  min-width: 200px;
  margin: 10px 0;
 }

 .footer-links ul {
  list-style: none;
  padding: 0;
 }

 .footer-links ul li {
  margin-bottom: 10px;
 }

 .footer-links ul li a {
  text-decoration: none;
  color: #333;
 }
 .content-footer p {
  margin: 5px 0;
 }

 .footer{
  min-height: 400px;
 }
  .footer .info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer .details,
  .footer .contact {
    margin-bottom: 15px;
  }

  .footer-links ul li {
    margin-bottom: 8px;
  }

  .intro,.intro-pri {
    padding: 1.2rem;
    margin: 1rem 0;
  }

  .intro p, .intro-pri p {
    font-size: 1rem;
    text-align: left; /* más legible en móvil */
  }

  .intro ul, .intro-pri ul {
    font-size: 0.95rem;
    padding-left: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1.2rem;
    margin-top: 0;
  }

  /* Si hay texto e imagen juntos, que se apilen */
  .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .service-img {
    max-width: 90%;
  }
  
}



/* Fading animation */
/* (Moved .fade and @keyframes fade to slideshow section above for maintainability) */

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .text {font-size: 11px}
  .header{overflow: auto;}
}
