/* styles_home.css */

:root{
  --primary-color:#003366;
  --dark-color:#000000;
  --light-color:#FFFFFF;
  --text-color:#000000;
  --secondary-text-color:#333333;
}

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

/* Secciones */
.section-container{
  max-width:1200px;
  margin:0 auto;
  padding:0 15px;
}
section{ padding:10px 0; }

.section-title{
  margin-bottom:40px;
  text-align:center;
  font-size:2rem;
  font-weight:600;
  color:var(--dark-color);
  position:relative;
}
.section-title::after{
  content:"";
  width:120px;
  height:4px;
  background-color:var(--primary-color);
  display:block;
  margin:10px auto 0;
  border-radius:2px;
}

/* HERO */
.hero{
  background-image:url('/static/imagenes/imagenes_index/banner3.jpeg');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  min-height:40vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:white;
  position:relative;
}

/* ✅ Full-bleed real (ocupa todo el ancho) */
.hero--fullbleed{
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-color:rgba(50, 0, 90, 0.35);
}
.hero-content{
  position:relative;
  z-index:1;
  max-width:800px;
  margin:0 auto;
}
.hero h1{
  font-weight:700;
  font-size:2.5rem;
  margin-bottom:20px;
  text-shadow:1px 1px 3px rgba(0,0,0,0.5);
}
.hero p.lead{
  font-size:1.2rem;
  margin-bottom:30px;
  text-shadow:1px 1px 2px rgba(0,0,0,0.4);
}
.hero .btn{
  padding:0.5rem 1rem;
  font-size:1rem;
  font-weight:400;
  border-radius:8px;
}

/* Cards Home */
.card{
  width:100%;
  max-width:250px;
  min-width:200px;
  max-height:400px;
  min-height:400px;
  margin:10px;
  border:none;
  border-radius:20px;
  overflow:hidden;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
  background-color:#ffffff;
  box-shadow:0 2px 6px rgba(0,0,0,0.08);
}
.card:hover{
  transform:translateY(-3px);
  box-shadow:0 6px 12px rgba(0,0,0,0.12);
}
.card-img-top{
  width:100%;
  height:200px;
  object-fit:cover;
  background-color:#fff;
}
.card-body{ padding:10px; }
.card-title{
  font-weight:600;
  margin-bottom:10px;
  color:var(--dark-color);
}
.card-text{
  font-size:1rem;
  color:var(--secondary-text-color);
  margin-bottom:10px;
}

/* Quitar subrayado SOLO dentro de tarjetas */
.card,
.card * {
  text-decoration: none !important;
}

/* Cards Vehiculos */
.card-vehiculos{
  width:100%;
  max-width:350px;
  min-width:300px;
  max-height:500px;
  min-height:450px;
  margin:10px;
  border:none;
  border-radius:20px;
  overflow:hidden;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
  background-color:#ffffff;
  box-shadow:0 2px 6px rgba(0,0,0,0.08);
}

.card-img-vehiculos{
  width:100%;
  height:300px;
  object-fit:cover;
  background-color:#fff;
}

.clickable{ cursor:pointer; }

.card-grid-index{
  display:flex;
  flex-wrap:wrap;
  gap:25px;
  margin:0 auto;
  justify-content:center;
  align-items:stretch;
}
.card-grid-index .card{
  display:flex;
  flex-direction:column;
  text-align:center;
  border-radius:15px;
  overflow:hidden;
}
.fixed-height-img{
  width:100%;
  height:240px;
  object-fit:cover;
}

/* Carrusel home */
#destacados-carousel{
  padding:15px 0;
  background-color:var(--light-color);
  text-align:center;
}
#destacados-carousel .carousel-inner{
  border-radius:15px;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
  padding:30px;
  margin-top:20px;
}
#destacados-carousel .carousel-item{
  transition:transform 0.5s ease-in-out;
}
#destacados-carousel .carousel-control-prev,
#destacados-carousel .carousel-control-next{
  width:5%;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
#destacados-carousel .carousel-control-prev-icon,
#destacados-carousel .carousel-control-next-icon{
  background-size:30px 30px;
  border-radius:50%;
  padding:10px;
  margin-top:10px;
}

@media (max-width:768px){
  #destacados-carousel .carousel-control-prev,
  #destacados-carousel .carousel-control-next{
    display:none;
  }
  .card-grid-index .card{ margin:0.5rem 0; }
}

/* ===================== Centrado de tarjetas (Veh�culos) ===================== */
#servicios-vehiculos .vehicles-center-row{
  justify-content: center !important;
}

#servicios-vehiculos .vehicles-center-row > [class*="col-"]{
  display: flex;
  justify-content: center;
}

/* Ajuste opcional: si quieres que el grupo se vea m�s �compacto� */
#servicios-vehiculos .vehicles-center-row{
  row-gap: 24px;
  column-gap: 24px;
}

/* =========================================================
   CENTRADO HORIZONTAL DE TARJETAS (SERVICIOS / INMUEBLES / TIENDA)
   ========================================================= */

/* ---- SERVICIOS ---- */
.services-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;   /* ?? centra horizontal */
  align-items: stretch;
  gap: 24px;
}

/* ---- INMUEBLES ---- */
.card-grid-inmuebles {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;   /* ?? centra horizontal */
  align-items: stretch;
  gap: 24px;
}

/* ---- TIENDA ---- */
.card-grid-piezas {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;   /* ?? centra horizontal */
  align-items: stretch;
  gap: 24px;
}

/* =========================================================
   AJUSTE DE TARJETAS (ancho consistente y centradas)
   ========================================================= */
.services-grid .card,
.card-grid-inmuebles .card,
.card-grid-piezas .card {
  margin: 0;                /* evita empujes laterales */
  display: flex;
  flex-direction: column;
}

/* =========================================================
   RESPONSIVE: una tarjeta por fila en m�viles
   ========================================================= */
@media (max-width: 768px) {
  .services-grid,
  .card-grid-inmuebles,
  .card-grid-piezas {
    justify-content: center;
  }
}

/* ====== Destacados: fondo transparente ====== */
#destacados-carousel {
  background: transparent !important;
}
