:root {
  --primary-color: #e42f2c;
  --primary-color-dark: #c92825;
  --secondary-color: #1b2245;
  --muted: #777777;
  --white: #ffffff;
  --light-gray: #f4f4f4;
  --card-border: #e8e8e8;
  --text-color: #333333;
  --max-width: 1200px;

  --font-menu: "Futura ND Medium", sans-serif; /* Futura ND alternative */
  --font-title: "futura-bold", sans-serif; /* Futura BdCn BT alternative */
  --font-content: "Futura ND Medium", sans-serif;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  color: black;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.text-center {
  text-align: center;
}
.rounded {
  border-radius: 8px;
}

.jobs {
  padding: 3rem 2rem;
}

.jobs h3 {
  font-family: var(--font-title);
  font-size: 1.9rem;
  color: var(--primary-color);
  font-weight: bold;
}
.jobs p {
  font-size: 1.25rem;
  line-height: 1;
}

@media (max-width: 480px) {
}

.departamentos-carousel-section {
  background: var(--white);
  padding: 4rem 0;
  overflow: hidden;
}
.departamentos-carousel-section .section-subtitle {
  font-size: 1rem;
  color: #666;
  margin: 0 0 1.25rem 0;
}

.departamentos-carousel-wrapper {
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.jobs-carousel-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf2 100%);
  padding: 80px 0;
  overflow: hidden;
}

.jobs-carousel-section .row {
  align-items: flex-start;
}

.jobs-carousel-section .col-md-4,
.jobs-carousel-section .col-md-6 {
  display: flex;
}

.jobs-carousel-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e42f2c;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.job-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  height: auto;
  min-height: 100%;
  box-shadow: 0 10px 30px rgba(36, 46, 93, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #242e5d, #4a5f9d);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(36, 46, 93, 0.15);
  border-color: #242e5d;
}

.job-card:hover::before {
  transform: scaleX(1);
}

.job-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #e42f2c;
  margin-bottom: 20px;
  line-height: 1.3;
}

.job-info {
  margin-bottom: 15px;
}

.job-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.job-info-item i {
  width: 18px;
  color: #e42f2c;
  margin-right: 10px;
  font-size: 0.9rem;
}

.job-info-item strong {
  color: #e42f2c;
  margin-right: 5px;
  font-size: 0.9rem;
}

.job-info-item span {
  color: #666;
}

/* Expandable content - CORREGIDO */
.job-extra-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease, margin-top 0.3s ease;
  opacity: 0;
}

.job-extra-content.expanded {
  max-height: 1000px;
  opacity: 1;
  margin-top: 20px;
}

.job-description {
  margin-bottom: 20px;
}

.job-description h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #242e5d;
  margin-bottom: 10px;
}

.job-description p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.btn-ver-mas {
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  align-self: flex-start;
}

.btn-ver-mas:hover,
.btn-ver-mas:active {
  background: white;
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(228, 47, 44, 0.3);
}

.btn-ver-mas i {
  transition: transform 0.3s ease;
}

.btn-ver-mas.expanded i {
  transform: rotate(180deg);
}

.job-competencias {
  padding-top: 15px;
  border-top: 1px solid #e8ecf2;
  margin-bottom: 15px;
}

.job-competencias h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #242e5d;
  margin-bottom: 12px;
}

.job-competencias ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-competencias li {
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
  font-size: 0.85rem;
  color: #666;
}

.job-competencias li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #242e5d;
  font-weight: bold;
}

.job-date-container {
  margin-top: 15px;
}

.job-date {
  display: inline-block;
  background: #f0f4f8;
  color: #242e5d;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  box-shadow: 0 4px 15px rgba(36, 46, 93, 0.3);
  transition: all 0.3s ease;
}

.carousel-control-prev {
  left: -25px;
}

.carousel-control-next {
  right: -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-prev:active,
.carousel-control-next:active {
  opacity: 1;
  background: #242e5d;
  box-shadow: 0 6px 20px rgba(228, 47, 44, 0.4);
  transform: translateY(-50%) scale(1.05);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
  background-size: 20px 20px;
  filter: brightness(0) invert(1);
}

.carousel-indicators {
  margin-bottom: -30px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #242e5d;
  opacity: 0.4;
  border: none;
  transition: all 0.3s ease;
}

.carousel-indicators button:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

.carousel-indicators button.active {
  opacity: 1;
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* Loading state */
.jobs-loading {
  text-align: center;
  padding: 60px 0;
}

.jobs-loading i {
  font-size: 3rem;
  color: #242e5d;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Empty state */
.jobs-empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.jobs-empty i {
  font-size: 4rem;
  color: #242e5d;
  opacity: 0.3;
  margin-bottom: 20px;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Desktop Grande (>= 1400px) - 3 cards */
@media (min-width: 1400px) {
  .jobs-carousel-section h2 {
    font-size: 2.5rem;
  }

  .job-card {
    padding: 25px;
  }

  .job-card h3 {
    font-size: 1rem;
  }

  .carousel-control-prev {
    left: -25px;
  }

  .carousel-control-next {
    right: -25px;
  }
}

/* Tablet (740px - 1399px) - 2 cards */
@media (min-width: 740px) and (max-width: 1399px) {
  .jobs-carousel-section {
    padding: 70px 0;
  }

  .jobs-carousel-section h2 {
    font-size: 2.2rem;
  }

  .job-card {
    padding: 22px;
  }

  .job-card h3 {
    font-size: 0.95rem;
  }

  .carousel-control-prev {
    left: -20px;
  }

  .carousel-control-next {
    right: -20px;
  }

  /* Ajustar grid para 2 columnas */
  .carousel-item .row {
    justify-content: center;
  }
}

/* Móvil (< 740px) - 1 card */
@media (max-width: 739px) {
  .jobs-carousel-section {
    padding: 60px 0;
  }

  .jobs-carousel-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .job-card {
    padding: 20px;
  }

  .job-card h3 {
    font-size: 1.3rem;
    min-height: auto;
  }

  /* Controles de carrusel en móvil */
  .carousel-control-prev,
  .carousel-control-next {
    display: flex;
    width: 40px;
    height: 40px;
  }

  .carousel-control-prev {
    left: -15px;
  }

  .carousel-control-next {
    right: -15px;
  }

  /* Ajustar indicadores para móvil */
  .carousel-indicators {
    margin-bottom: -20px;
  }

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

  /* Asegurar que las cards ocupen todo el ancho en móvil */
  .carousel-item .row {
    justify-content: center;
  }

  .carousel-item .col-12 {
    max-width: 100%;
    flex: 0 0 100%;
  }
}

.departamentos-carousel-track {
  align-items: stretch;
  width: max(200%, 100%);
  animation: scrollDepartamentos 40s linear infinite;
  will-change: transform;
  padding: 1rem 0;
  display: flex;
  flex-direction: row;
}

.departamentos-carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scrollDepartamentos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.departamento-card-carousel {
  flex: 0 0 auto;
  width: 320px;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  transition: all 0.28s ease;
}

.departamento-card-carousel:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(228, 47, 44, 0.08);
  border-color: var(--primary-color);
}

.departamento-icon-minimal {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(228, 47, 44, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.7rem;
  transition: all 0.25s ease;
}

.departamento-card-carousel:hover .departamento-icon-minimal {
  background: var(--primary-color);
  color: var(--white);
}

.departamento-name-minimal {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 1rem;
  text-align: center;
  margin: 0;
}

.departamento-info-minimal {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}
.departamento-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.15rem 0;
}
.departamento-link i {
  color: var(--primary-color);
  width: 16px;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.departamento-link:hover {
  color: var(--primary-color);
  transform: translateX(3px);
}
.departamento-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contacto-section {
  background: var(--white);
  padding: 5rem 0;
}
.contact-form-wrapper {
  background: var(--white);
  padding: 2.4rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.form-title {
  font-family: var(--font-title);
  font-size: 1.9rem;
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
}
.form-subtitle {
  font-size: 1rem;
  color: #666;
  margin: 0 0 1.5rem 0;
}

.contact-form .form-group {
  margin-bottom: 1.3rem;
}
.contact-form .form-label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  color: var(--text-color);
}
.contact-form .form-control {
  width: 100%;
  padding: 0.82rem 1rem;
  border: 2px solid #eaeaea;
  border-radius: 8px;
  font-size: 0.97rem;
  transition: all 0.18s ease;
  background: var(--white);
  color: var(--text-color);
}
.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.18rem rgba(228, 47, 44, 0.1);
  outline: none;
}
.contact-form select.form-control {
  appearance: none;
  cursor: pointer;
}
.contact-form textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* submit */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.6rem;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-size: 1.02rem;
  background: var(--primary-color);
  color: var(--white);
  cursor: pointer;
  transition: all 0.22s ease;
}
.btn-submit:hover {
  background: var(--primary-color-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(200, 40, 37, 0.15);
}
.btn-submit:active {
  transform: translateY(0);
}

.form-control.error {
  border-color: #dc3545;
  animation: shake 0.35s;
}
.form-control.success {
  border-color: #28a745;
}

.customer-service-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.customer-service-image {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 460px;
  border-radius: 14px;
}
.customer-service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.customer-service-image:hover img {
  transform: scale(1.04);
}

/* overlay in image (optional) */
.customer-service-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 34, 69, 0.9),
    rgba(27, 34, 69, 0.25)
  );
  padding: 2.6rem 1.6rem;
}
.customer-service-content {
  text-align: center;
  color: var(--white);
}
.customer-service-content i {
  font-size: 3rem;
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.8rem;
}
.customer-service-content h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin: 0.2rem 0;
}
.customer-service-content p {
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  font-size: 1rem;
}

/* --------------------------------------------------
   UBICACION / MAP
   -------------------------------------------------- */
.ubicacion-section {
  background: var(--light-gray);
  padding: 4.2rem 0;
}
.ubicacion-content {
  padding: 2rem 0;
}
.ubicacion-title {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.ubicacion-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ubicacion-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.ubicacion-item i {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
  flex-shrink: 0;
}
.ubicacion-item h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--secondary-color);
  font-weight: 700;
}
.ubicacion-item p {
  margin: 0;
  color: #555;
}

/* map placeholder */
.map-placeholder {
  height: 400px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f5, #e6e6e6);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
/* 
.hero-bg img {

  object-position: center -50px !important;
} */

/* --------------------------------------------------
   CARDS / ANIMATIONS
   -------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card {
  animation: fadeInUp 0.6s ease both;
}

/* shake animation for validation */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  75% {
    transform: translateX(8px);
  }
}

/* success message */
.success-message {
  display: none;
  padding: 1.2rem;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  border-radius: 8px;
}
.success-message.show {
  display: block;
  animation: slideDown 0.28s ease;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-section {
  padding: 3rem 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background-color: #f2f2f2;
  border-radius: 6px;
  padding: 2.1rem 1.2rem;
  text-align: center;
}

.stat-icon {
  margin-bottom: 1.2rem;
}

.stat-icon svg {
  width: 64px;
  height: 64px;
}

.stat-label {
  font-size: 1rem;
  color: #1f2a37;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e5f;
}

/* --------------------------------------------------
   ACCESSIBILITY / FOCUS
   -------------------------------------------------- */
a:focus,
button:focus,
.form-control:focus {
  outline: 3px solid rgba(34, 56, 90, 0.08);
  outline-offset: 2px;
}

/* --------------------------------------------------
   RESPONSIVE - BREAKPOINTS ADICIONALES
   -------------------------------------------------- */

/* large desktop (>=1400) */
@media (min-width: 1400px) {
  :root {
    --max-width: 1400px;
  }
}

/* desktop / laptop */
@media (max-width: 1199px) {
  .customer-service-image {
    min-height: 420px;
  }
}

/* tablet */
@media (max-width: 991px) {
  .contact-form-wrapper {
    padding: 1.8rem;
  }
  .departamento-card-carousel {
    width: 300px;
    padding: 1.6rem 1.2rem;
  }

  .customer-service-image {
    min-height: 380px;
  }
  .map-placeholder {
    height: 320px;
  }
}

/* small tablet / large mobile */
@media (max-width: 767px) {
  /* Carousel: stop infinite animation and enable horizontal scroll for better usability */
  .departamentos-carousel-track {
    animation: none;
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .departamentos-carousel-wrapper {
    padding-left: 6px;
    padding-right: 6px;
  }

  .departamento-card-carousel {
    width: 260px;
    flex: 0 0 auto;
  }

  /* form layout */
  .contacto-section {
    padding: 3rem 0;
  }
  .contact-form-wrapper {
    padding: 1.4rem;
    margin-bottom: 1.2rem;
  }

  .customer-service-image {
    min-height: 320px;
  }
  .ubicacion-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .departamento-card-carousel {
    width: 220px;
    padding: 1.1rem;
  }
  .departamento-icon-minimal {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }

  .contact-form-wrapper {
    padding: 1rem;
  }
  .form-title {
    font-size: 1.25rem;
  }
  .btn-submit {
    padding: 0.85rem 1rem;
    font-size: 0.98rem;
  }

  .customer-service-image {
    min-height: 260px;
  }
  .map-placeholder {
    height: 240px;
  }
}

/* very small (<=360) */
@media (max-width: 360px) {
  .departamento-card-carousel {
    width: 200px;
  }
}

.departamento-card-carousel:focus {
  outline: 2px solid rgba(23, 45, 78, 0.08);
  outline-offset: 4px;
}
