/* Tipografías */
body {
    font-family: 'Poppins', sans-serif;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'DM Sans', sans-serif;
}

/* Colores institucionales */
.bg-primary-custom {
    background-color: #961C1C !important;
}

.text-primary-custom {
    color: #961C1C !important;
}

/* Botones */
.btn-primary {
    background-color: #961C1C;
    border-color: #961C1C;
}

.bg-cream {
  background-color: #FFF8E1; /* ajusta tu cremita aquí */
}
.btn-primary:hover {
    background-color: #7a1616;
    border-color: #7a1616;
}

.hero {
    height: 100vh;
    background: url('../img/hero/lap_cuec.png') center/cover no-repeat;
    position: relative;
}
.hero {
  position: relative;
  overflow: hidden; 
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.hero-footer {
  font-size: 1.1rem;
}

.razon-box {
  background: #ffffff;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.razon-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.razon-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.razon-box p {
  text-align: center;
}

.servicio-card {
  background: #ffffff;
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}
.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-bottom: 3px solid #961C1C;
}

#nosotros .col-md-4 {
  text-align: center;
}
#nosotros h5 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

#nosotros h5::before {
  content: "";
  width: 5px;
  height: 20px;
  background-color: #961C1C;
}

.hero-logo-right {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  z-index: 2;
}

.nosotros-stack {
  max-width: 800px;
  margin: auto;
  border-left: 3px solid #961C1C;
  padding-left: 30px;
}

/* cada bloque */
.nosotros-stack .item {
  margin-bottom: 40px;
  position: relative;
}

/* punto en la línea */
.nosotros-stack .item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: #961C1C;
  border-radius: 50%;
}

/* títulos */
.nosotros-stack h5 {
  margin-bottom: 10px;
}

/* texto */
.nosotros-stack p {
  margin: 0;
  max-width: 600px;
}

.footer-custom {
  background-color: #961C1C;
}

.footer-logo {
  width: 120px;
}

.footer-social a {
  color: #fff;
  font-size: 1.4rem;
  margin: 0 10px;
  transition: 0.3s;
}

.footer-social a:hover {
  color: #f5d0d0;
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.8;
}

.nosotros-zigzag {
  position: relative;
  max-width: 900px;
  margin: auto;
}

/* línea central */
.nosotros-zigzag::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 100%;
  background: #961C1C;
  transform: translateX(-50%);
}

/* cada bloque */
.nosotros-zigzag .item {
  width: 50%;
  padding: 20px 40px;
  position: relative;
}

/* izquierda */
.nosotros-zigzag .item.left {
  left: 0;
  text-align: right;
}

/* derecha */
.nosotros-zigzag .item.right {
  left: 50%;
  text-align: left;
}

/* punto en la línea */
.nosotros-zigzag .item::before {
  content: "";
  position: absolute;
  top: 30px;
  width: 12px;
  height: 12px;
  background: #961C1C;
  border-radius: 50%;
  z-index: 2;
}

.nosotros-zigzag .item.left::before {
  right: -6px;
}

.nosotros-zigzag .item.right::before {
  left: -6px;
}

/* tarjeta */
.card-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
@media (max-width: 768px) {
  .nosotros-zigzag::before {
    left: 10px;
  }

  .nosotros-zigzag .item {
    width: 100%;
    padding-left: 40px;
    padding-right: 0;
    text-align: left !important;
  }

  .nosotros-zigzag .item.right {
    left: 0;
  }

  .nosotros-zigzag .item.left::before,
  .nosotros-zigzag .item.right::before {
    left: 4px;
  }
}
.card-box p {
  text-align: justify;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.servicio-card i,
.razon-box i {
  color: #961C1C;
  font-size: 1.2rem;
}

.footer-link {
  display: block;
  color: #fff;
  text-decoration: none;
  margin-bottom: 5px;
  transition: 0.3s;
}

.footer-link:hover {
  color: #f5d0d0;
}

/* === FIX FOOTER LAYOUT === */

.footer-custom .row {
  align-items: flex-start; /* evita que todo se desalinee verticalmente */
}

/* Alinear mejor columnas */
.footer-custom .col-md-4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Redes sociales */
.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 10px;
}

/* Quitar separación rara del <br> */
.footer-custom h6 {
  margin-bottom: 10px;
}

/* Responsive (muy importante) */
@media (max-width: 768px) {
  .footer-social {
    justify-content: center;
  }

  .footer-custom .col-md-4 {
    text-align: center !important;
  }
}

@media (max-width: 768px) {

  .hero {
    height: auto;
    padding: 100px 20px 60px;
    text-align: center;
  }

  .hero-content {
    margin: auto;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-logo-right {
    display: none; 
  }
}