h1 {
    font-size: 4rem;
    font-weight: bold;
}

h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

h3 {
    font-size: 2rem;
}

body * {
  font-family: 'Crossten', sans-serif;
}

.home-hero-section, .home-servicios-otros-section, .home-subastas-enlinea {
    display: flex;
    justify-content: center;
}

.home-servicios-links a:hover, .home-adquisiciones-links a:hover {
  color: #f6ae6f !important;
}

.home-hero-links .btn, .home-cta-card .btn, .cta-link {
  background-color: #FF7500;
  border: 2px solid #FF7500;
  margin: 0;
  font-weight: 600;
  border-radius: 36px !important;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
  color: #1f1f1f !important;
  min-width: 100px;
}

.home-hero-links .btn:hover, .home-cta-card .btn:hover, .cta-link:hover {
  background-color: #f6ae6f;
  border-color: #f6ae6f;
}


.content-wrapper {
    max-width: 1288px;
    height: 100%;
    margin: 0 12px;
    box-sizing: border-box;
    flex: 1;
}

.home-hero-section {
    background: black;
    background: linear-gradient(45deg,
        #1498D0 0%, 
        #000034 30%, 
        #000034 70%, 
        #85D014  100%);
}

.blur-overlay {
    position: absolute;
    backdrop-filter: blur(300px);
    height: 100%;
    width: 100%;
    z-index: 1;
}


.home-hero-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    gap: 30px;
    padding-top: 8vh;
    position: relative;
    z-index: 2;
}

.home-hero-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    gap: 20px;
    color: #fafafa;
    text-align: center;

}

.home-hero-links  {
    color: #fafafa;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 50px
}

.home-hero-links a{
    color: #1f1f1f;
}

.home-hero-image {
    max-width: 100%;
    min-width: 400px;
    animation: fadeIn 2s ease-in forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


.home-servicios-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 12px;
}

.home-servicio-card {
    position: relative;
    height: 550px;
    min-width: 40%;
    border-radius: 36px;
    overflow: hidden;
    z-index: 0;
    color: #000034;
    flex: 1;
}

.home-servicio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.home-servicio-card * {
    position: relative;
    z-index: 2;
}

/* Activar animación */
.home-servicio-card:hover::before {
    opacity: 1;
}

/* Base & hover para RUP */
#rup.home-servicio-card {
    background: linear-gradient(150deg, #000034 55.29%, #85D014 165.92%);
}

#rup.home-servicio-card::before {
    background: linear-gradient(150deg, #000034 40.29%, #85D014 114.49%);
}

/* Base & hover para RUS */
#rpt.home-servicio-card {
    background: linear-gradient(150deg, #000034 55.29%, #CA4C3E 165.92%);
}

#rpt.home-servicio-card::before {
    background: linear-gradient(150deg, #000034 40.29%, #CA4C3E 114.49%);
}

/* Base & hover para JEDI */
#jedi.home-servicio-card {
    background: linear-gradient(150deg, #000034 55.29%, #0077B6 165.92%);
}

#jedi.home-servicio-card::before {
    background: linear-gradient(150deg, #000034 40.29%, #0077B6 114.49%);
}

/* Base & hover para RUL */
#rul.home-servicio-card {
    background: linear-gradient(150deg, #000034 55.29%, #6714D0 165.92%);
}

#rul.home-servicio-card::before {
    background: linear-gradient(150deg, #000034 40.29% , #6714D0 114.49%);
}

.home-servicio-card-content-wrapper {
    height: inherit;
    width: inherit;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    padding: 60px 50px 0 50px;
    gap: 80px;
    overflow: hidden;
    flex-grow: 1;
}

.home-servicio-card-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.home-servicio-card-content-wrapper h2{
    color: #fafafa;
    line-height: 1.2em;
    font-weight: 500;
}

.home-servicios-links  {
    color: #fafafa;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 50px;
    overflow: hidden;
}

.home-servicios-links a{
    color: #FF7500;
}

/* .home-servicios-links a:hover{
    color: #FF7500;
    text-decoration: underline;
} */

.home-servicio-card-content-wrapper img {
    width: 400px;
    height: 400px;
    transform: translateY(-50px);
    transition: transform .5s ease;
}

.home-servicio-card:hover img {
    transform: translateY(-75px);
}

.home-servicios-otros-section {
    background-color: #000033;
    padding: 70px 0;
}

.home-servicios-otros-heading {
    color: #fafafa;
}

.home-servicios-otros-cards{
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 12px 0;
}

/* Próximas Subastas Section */

.carousel { scroll-snap-type: x mandatory; }
.carousel.no-snap { scroll-snap-type: none !important; } /* clave para el snap suave */
.carousel.dragging { scroll-behavior: auto; }
.wrap.is-animating .carousel-dots button,
.wrap.is-animating #left,
.wrap.is-animating #right { pointer-events: none; opacity: 0.5; cursor: default; }
.wrap, .carousel, .card { user-select: none; -webkit-user-select: none; -ms-user-select: none; }

.proximas-subastas {
  padding: 40px 0 0 0;
  background-color: #ffffff;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.proximas-subastas-heading {
  align-items: flex-start !important;
}

.proximas-subastas img {
  height: 150px;
  width: auto;
  mix-blend-mode: multiply;
  transition: height 0.5s ease;
}

/* TYPOGRAPHY INSIDE CARD */
.carousel .card h1 {
  font-size: 2.2rem;
  text-transform: capitalize;
}

.carousel .card h2 {
  font-size: 1.8rem;
  font-weight: 300;
  color: #ADEFFF !important;
}

.carousel .card h3 {
  font-size: 1.8rem;
  font-weight: 500;
}

.carousel .card h4 {
  font-size: 1.2rem;
  font-weight: 300;
}

.carousel .card p {
  color: #fafafa;
  text-align: justify;
  font-size: 1.2rem;
  font-weight: 300;
}

/* MEDIA LAYER (background image) */
.carousel .card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  background-size: auto;
  background-position: center;
  padding: 0;
  z-index: 1; /* put media below content */
}

.carousel .card img {
  opacity: 0.2;
  position: relative;
  margin-top: 0rem;
  height: 100rem;   /* your original large decorative image */
  left: 265px;
  z-index: 1;
}

/* CARD BASE */
.carousel .card {
  position: relative;        /* needed for z-index layering */
  cursor: pointer;           /* whole card is clickable via JS */
  flex: 0 0 100%;
  scroll-snap-align: center;
  min-height: 42vh;
  border-radius: 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-start;
  box-shadow: 2px 4px 4px rgba(0,0,0,0.25);
  max-width: 1288px;
  overflow: hidden;
  /* transition: all 0.6s ease; */
  margin-bottom: 20px;
}

/* CONTENT LAYER (replaces .card-clickable-area) */
.carousel .card > .card-heading,
.carousel .card > .card-content {
  position: relative;
  z-index: 2;       /* above media */
  color: #fafafa;
}

.carousel .card > .card-heading {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6rem 6rem 3rem 6rem;   /* space previously provided by clickable area */
}

.carousel .card > .card-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 60%;
  padding: 0 6rem 6rem 6rem;   /* space previously provided by clickable area */
}

/* Inner CTA link (second URL) */
.carousel .card .cta-link {
  position: relative;
  z-index: 3;                 /* above the card click target */
  min-width: 100px;
  max-width: 120px;
}

/* Hover affordance for card */
/* .carousel .card:hover {
  box-shadow: 4px 10px 10px rgba(0,0,0,0.35);
  transform: translateY(-2px);
} */

/* Generic links inside section */
.proximas-subastas a:hover {
  text-decoration: none;
  color: inherit;
  transition: none;
}

.proximas-subastas a.disabled {
  pointer-events: none;
}

/* Layout wrappers */
.proximas-subastas .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wrap {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto 50px auto;
}

/* Bottom controls row (moved from sides) */
.wrap #left,
.wrap #right {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  box-shadow: none;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.nav-btn {
  height: 40px;
  width: 40px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  line-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* Dots */
.carousel-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #000034;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-dots button.is-active {
  background: #000034;
  transform: scale(1.2);
}

/* Optional: smaller dots on phones */
@media (max-width: 600px) {
  .carousel-dots button {
    width: 8px;
    height: 8px;
  }
}

/* Carousel track */
.wrap .carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 40px 20px 0 0;
  margin: 0;
}

.carousel.no-transition { scroll-behavior: auto; }

.carousel.dragging {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.carousel.dragging .slide {
  cursor: grab;
  user-select: none;
}

/* RESPONSIVE */
@media screen and (max-width: 900px) {
  .carousel .card {
    flex: 0 0 85%;
    min-height: 450px; /* fixed unit */
  }

  .carousel .card .card-heading * {
    text-align: start;
  }

  .carousel .card > .card-heading {
    padding: 2rem 2rem 2rem 2rem;
  }

  .carousel .card > .card-content {
    padding: 0 2rem 2rem 2rem;
    max-width: 100%;
  }

  .carousel .card img {
    left: 95px;
  }

  .carousel .card h2 {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .wrap .carousel {
    grid-auto-columns: 100%;
  }
}

@media screen and (max-width: 600px) {
  .carousel .card {
    flex: 0 0 95%;
  }
}


/* Adquisiciones */
.home-adquisiciones-container {
  /* display: flex;
  flex-wrap: wrap;
  justify-content: center; */
  gap: 12px;
  padding: 12px;
  display: grid; /* Declares the element as a grid container */
  grid-template-columns: repeat(2, 1fr); /* Creates two columns, each taking an equal fraction of available space */
  grid-template-rows: repeat(2, 1fr);
  height: 90vh;
}

.home-adquisiciones-card {
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: 36px;
  overflow: hidden;
  background-size: cover;
  transition: all 0.5s ease;
}


.home-adquisiciones-card-content-wrapper {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 50px;
  gap: 30px;
  overflow: hidden;
  flex-grow: 1;
  backdrop-filter: brightness(0.5);
  /* transition: all 0.5s ease; */

}

/* .home-adquisiciones-card-content-wrapper:hover, .home-adquisiciones-card-content-wrapper:focus {
  backdrop-filter: brightness(0.3);
  transition: all 0.5s ease;
} */

.home-adquisiciones-card-content-wrapper h2{
    color: #fafafa;
    line-height: 1em;
    font-weight: 500;
    text-shadow: 2px 2px 8px black;
}

.home-adquisiciones-card-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#contratos.home-adquisiciones-card {
    background-image: url("/static/assets/images/handshake_contratos.png");
}

#compras-emergencias.home-adquisiciones-card {
    background-image: url("/static/assets/images/emergency_comprasemergencia.png");
}

#subastas.home-adquisiciones-card {
    background-image: url("/static/assets/images/bidders_subastas.png");
}

#ordenes-compras.home-adquisiciones-card {
    background-image: url("/static/assets/images/openshop_ordenescompra.png");
}

.home-adquisiciones-card-bg-img {
    position: absolute;
    height: 100%;
    object-fit: cover;
}

.home-adquisiciones-links  {
    color: #fafafa;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 50px;
    text-shadow: 2px 2px 4px black;
}

.home-adquisiciones-links a{
    color: #FF7500;
}

.home-adquisiciones-links a:hover{
    color: #FF7500;
}

.home-adquisiciones-card-content-wrapper img {
  width: 150px;
  height: 150px;
}

.home-subastas-enlinea {
  padding: 70px 0;
  background: #000033;
}

.home-subastas-enlinea-wrapper {
  display: flex;
  gap: 30px;
}


.home-cta-card {
  display: flex;
  width: 30%;
  height: auto;
  background-color: rgba(255, 255, 255, 0.40);
  border-radius: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 20px;
}

.otros-card {
  width: 25%;
  min-width: 0;
}

.home-cta-card h2 {
  color: #fafafa;
  line-height: 1.2em;
}

.video-wrapper {
  position: relative;
  width: 70%;
  height: 500px;
  margin: 0 auto;
  cursor: pointer;
  overflow: hidden;
}

.video-poster, .video-iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 36px; 
}

/* Screenshot de fondo de video*/
.video-poster {
    background: url("/static/assets/images/portada_video_youtube.png") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Usamos <img> en vez de background-image */
.play-btn {
    width: 100px;     /* ajusta a tu ícono */
    height: 100px;
    z-index: 1;      /* por si acaso */
    display: block;
    pointer-events: none; /* el clic lo recoge el contenedor */
}

/* El iframe permanece oculto hasta hacer clic */
.video-iframe {
    display: none;
}

.video-iframe iframe {
    width: 100%;
    height: 100%;
    border: 1px #fff solid;
    border-radius: 36px;
}

.home-contacto-section {
  padding: 60px 20px;
  background-color: #ffffff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #232338;
}

.home-contacto-container {
  margin: 0 auto;
  display: flex;
  gap: 30px;
}

.home-contacto-cta {
  display: flex;
  width: 30%;
  height: auto;
  background-color: #fafafa;
  border-radius: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.home-contacto-cta .icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}


.form-wrapper h2 {
  margin-bottom: 16px;
  color: #0a0a23;
}

.form-wrapper p {
  line-height: 1.6;
  margin-bottom: 32px;
}

.form-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-wrapper input, .form-wrapper textarea {
  width: 100%;
  padding: 10px 20px;
  border: 2px solid #0a0a23;
  border-radius: 36px;
  font-size: 1rem;
  color: #232338;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-wrapper textarea {
  min-height: 180px;
  resize: vertical;
}

.form-wrapper button {
  align-self: flex-start;
  padding: 12px 32px;
  background-color: #0a0a23;
  color: #ffffff;
  font-size: 1rem;
  border: none;
  border-radius: 36px;
  cursor: pointer;
}

.map-wrapper {
  border-radius: 36px;
  overflow: hidden;
  width: 70%;
  height: 500px;
  border: 1px #000033 solid;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.map-wrapper iframe {
  height: 100%;
  min-height: 400px;
  border: 0;
}

@media (max-width: 768px) {
  .home-contacto-container {
    grid-template-columns: 1fr;
  }
}


@media screen and (max-width: 768px) {
  h1 {
    font-size: 2rem;
    text-align: center;
  }

  h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  h3 {
    font-size: 1rem;
  }

  .home-servicios-links a, .home-adquisiciones-links a { 
    font-size: 1.1rem;
  }

  .home-hero-links {
    gap: 30px;
  }

  .home-hero-links .btn {
    font-size: 0.8rem;
  }

  /* .content-wrapper {
    margin: 0 20px 20px 20px ;
  } */

  .home-hero-container {
    padding-top: 5vh;
  }

  .home-adquisiciones-card-content-wrapper {
    padding: 60px 40px 0 40px;;
  }

  .home-servicios-container {
    flex-wrap: nowrap;
    justify-content: center;
    flex-direction: column;
  }

  .home-servicios-links {
    font-size: 1rem;
    gap: 40px;
  }

  .home-servicio-card {
    height: 400px;
  }

  .home-servicio-card-content-wrapper {
    padding: 60px 40px 0 40px;
    gap: 60px;
  }

  .home-servicio-card-content-wrapper img {
    height: 350px;
    width: 350px;
  }

  .home-servicios-otros-cards {
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates two columns, each taking an equal fraction of available space */
    grid-template-rows: repeat(2, 1fr);
    flex-wrap: nowrap;
    padding: 12px;
  }

  .home-servicios-otros-cards img {
    width: 150px;
  }

  .proximas-subastas-heading {
    align-items: center !important;
  }

  .home-adquisiciones-container {
    grid-template-columns: repeat(1, 1fr); /* Creates two columns, each taking an equal fraction of available space */
    grid-template-rows: repeat(1, 1fr);
    height: auto;
  }

  .home-adquisiciones-card-content-wrapper img {
    margin: 20px;
  }




}  

@media screen and (max-width: 900px) {

  .home-subastas-enlinea-wrapper {
    flex-direction: column;
  }

  .home-subastas-enlinea-wrapper {
    width: auto;
  }

  .video-wrapper {
    width: 100%;
    height: 250px;
  }

  .home-cta-card {
    width: 100%;
  }

  .play-btn {
    width: 60px;
    height: auto;
  }

  .home-contacto-container {
    flex-direction: column;
    align-items: center;
  }

  .home-contacto-cta {
    width: 100%;
  }

  .map-wrapper {
    width: 100%;
    height: auto;
  }

}