/* ============================= */
/* RESET */
/* ============================= */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background-color: #ffffff;
  min-height: 100vh;
}

/* ============================= */
/* CONTENEDOR PRINCIPAL */
/* ============================= */

.container-principle-p {
  background: url('images/contractors/background2.png') center/cover no-repeat fixed;
  padding: 80px 0;
}

/* CONTENEDOR GENERAL */
.container-p {
  max-width: 950px;
  margin: 0 auto;
  padding: 20px;
}

/* ============================= */
/* PERFIL INFO */
/* ============================= */

.perfil-info {
  background: #fff;
  border-radius: 40px;
  max-width: 900px;
  width: 100%;
  margin: 60px auto;
  padding: 80px!important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* ============================= */
/* TEXTOS */
/* ============================= */

.information,
.description {
  font-family: Arial, sans-serif;
  font-size: 17px;
  color: #009ca3;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ============================= */
/* PERFIL */
/* ============================= */

.space {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.foto-perfil img {
  width: 230px;
  height: 230px;
  object-fit: cover;
  border-radius: 20px;
}

.datos {
  flex: 1;
  min-width: 250px;
  padding-left: 10px;
}

/* ============================= */
/* TÍTULO */
/* ============================= */

.subsection-title {
  text-align: center;
  color: #009ca3;
  font-weight: bold;
  margin: 50px 0 30px;
  font-size: 22px;
}

/* ============================= */
/* CARRUSEL */
/* ============================= */

/* CONTENEDOR */
.carousel-container {
  max-width: 720px;
  margin: 40px auto;
  overflow: hidden;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 10px;
}

/* ITEMS */
.mi-carousel-item {
  flex: 0 0 calc(100% / 3);
  height: 220px;
}

.mi-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* 🔥 ANIMACIÓN AUTOMÁTICA */
@keyframes scrollCarousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* SOLO CUANDO SE ACTIVA */
.carousel-auto {
  animation: scrollCarousel 20s linear infinite;
}
.carousel-auto:hover {
  animation-play-state: paused;
}
/* ============================= */
/* BOTÓN COTIZAR */
/* ============================= */

.btn-cotizar {
  display: inline-block;
  background: #f7aa00;
  color: white;
  font-weight: bold;
  font-size: 16px;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn-cotizar:hover {
  background: #005459;
  transform: scale(1.05);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

/* ============================= */
/* CELULAR */
/* ============================= */
/* ============================= */
/* CELULAR REAL */
/* ============================= */
@media (max-width: 576px) {

  /* CONTENEDOR PRINCIPAL */
  .container-principle-p {
    padding: 30px 0;
    background-attachment: scroll;
  }

  .container-p {
    max-width: 100%;
    padding: 10px 15px;
  }

  /*  TARJETA PERFIL */
  .perfil-info {
    padding: 20px !important;
    margin: 30px auto;
    border-radius: 20px;
  }

  /* PERFIL (IMAGEN + DATOS EN FILA) */
  .space {
    display: flex;
    flex-direction: row; 
    align-items: flex-start;
    gap: 15px;
    flex-wrap: nowrap; 
  }

  /* IMAGEN MÁS PEQUEÑA */
  .foto-perfil img {
    width: 120px;
    height: 155px;
  }

  /* DATOS */
  .datos {
    flex: 1;
    padding-left: 10px;
    min-width: 0;
  }

  /* TEXTOS */
  .information,
  .description {
    font-size: 14px;
    text-align: left; 
  }

  /* TÍTULO */
  .subsection-title {
    font-size: 18px;
    margin: 25px 0 15px;
  }

  /* CARRUSEL */
  .carousel-container {
    max-width: 100%;
  }

 .carousel-track {
    justify-content: center;
    display: flex;
  width: max-content;
  }

  .mi-carousel-item {
    flex: 0 0 150px; /* 🔥 tamaño REAL fijo */
    height: 150px;   /* 🔥 más delgadas */
  }

  /* 🔥 BOTÓN */
  .btn-cotizar {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }

 
.carousel-auto {
  animation: scrollCarousel 60s linear infinite;
}

@keyframes scrollCarousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
