/* Aplicar la fuente Google a todo el cuerpo */
body, html {
    height: 100%;
    margin: 0;
    font-family: "Calibri", sans-serif;
    overflow-x: hidden;
}

/* Aplicar la fuente Arial a los títulos */
h1, h2, h3, h4, h5, h6 {
    font-family: "Arial", sans-serif;
}

/* NAVBAR (Común a todas las páginas) */
.navbar-custom {
    background-color: #851A31;
    transition: background-color 0.4s ease;
}

.navbar-scrolled {
    background-color: rgba(133, 26, 49, 0.9) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: "Arial", sans-serif;
    font-size: 24px;
    color: #ffffff !important;
}

.navbar-nav .nav-link {
    font-family: "Arial", sans-serif;
    font-size: 18px;
    color: #ffffff !important;
}

.navbar-nav .nav-link.active {
    color: #F28E00 !important;
}

.navbar-nav .nav-link:hover {
    color: #F28E00 !important;
}

.navbar-toggler {
    border-color: #ffffff;
}

/* ESTILOS ESPECÍFICOS PARA INDEX.HTML (HOME) */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.logo-container {
    position: absolute;
    bottom: 40px;
    right: 80px;
    z-index: 0; /* Cambiado de 1 a 0 para que quede detrás del footer */
    text-align: right;
}

.logo-container img {
    max-width: 180px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

footer {
    position: relative; /* Asegura que z-index se aplique correctamente */
    z-index: 1; /* Se asegura que el footer quede sobre el logo */
    background-color: #851A31;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.content {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px 20px;
    margin-top: 100vh;
}

/* Carrusel del Home */
#carouselExample {
    margin: 30px auto;
    max-width: 1200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(133, 26, 49, 0.7);
    padding: 10px;
    border-radius: 5px;
    bottom: 20px;
}

/* ESTILOS PARA SERVICIOS.HTML (se mantienen los anteriores pero con selectores más específicos) */
.servicios-page .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    border: none;
    margin-bottom: 20px;
}

.servicios-page .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(133, 26, 49, 0.2);
}

.servicios-page .card-img-top {
    height: 200px;
    object-fit: cover;
}

.servicios-page .img-gallery {
    transition: transform 0.5s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.servicios-page .img-gallery:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

/* ESTILOS COMUNES PARA TODAS LAS PÁGINAS */
.btn-secondary {
    background-color: #F28E00;
    border: none;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 8px 20px;
}

.btn-secondary:hover {
    background-color: #d17d00;
    transform: translateY(-2px);
}

footer {
    background-color: #851A31;
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    display: inline-block;
    margin-bottom: 8px;
}

footer a:hover {
    color: #F28E00;
}

footer h5 {
    margin-bottom: 15px;
    font-weight: 700;
}

/* Estilos para el modal (servicios.html) */
.modal-content {
    border: 2px solid #F28E00;
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    font-family: "Arial", sans-serif;
    background-color: #851A31;
    color: white;
}

.carousel-control-prev-icon, 
.carousel-control-next-icon {
    background-color: #851A31;
    border-radius: 50%;
    padding: 15px;
}

.modal-body img {
    max-height: 400px;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 20px;
    }
    
    .logo-container img {
        max-width: 200px;
    }
    
    .content {
        padding: 20px 10px;
    }
    
    .carousel-item img {
        height: 300px;
    }
    
    .servicios-page .card-img-top {
        height: 150px;
    }
    
    .btn-secondary {
        padding: 6px 15px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .logo-container img {
        max-width: 150px;
    }
    
    .carousel-caption h5 {
        font-size: 14px;
    }
}

/* Si prefieres usar CSS en lugar de clases de Bootstrap */
.texto-centrado {
    text-align: center;
    margin: 0 auto;
    max-width: 800px; /* Opcional: limita el ancho para mejor lectura */
}

/* Para el h1 */
.texto-centrado h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

/* Para el párrafo */
.texto-centrado p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.about-content {
    line-height: 1.8;
    text-align: justify;
}

.about-content h5 {
    color: #851A31;
    font-family: "Arial", sans-serif;
}

.text-danger {
    color: #F28E00 !important;
}

/* Iconos */
.fa-certificate, .fa-headset {
    margin-top: 4px;
}

/* Estilos para las tarjetas de características */
.feature-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(133, 26, 49, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #F28E00;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(133, 26, 49, 0.15);
}

.feature-icon {
    min-width: 50px;
    text-align: center;
}

.text-highlight {
    color: #F28E00;
    font-weight: 600;
}

/* Efecto hover para íconos */
.feature-icon i {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1);
}

/* Estilos para el texto hero */
.hero-text {
    max-width: 900px;
    margin: 0 auto;
}

.header-line {
    width: 50px;
    height: 3px;
    background-color: #F28E00;
}

.lead-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
}

.text-highlight {
    color: #F28E00;
    font-weight: 600;
}

/* Tarjeta informativa */
.info-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 500px;
    border-top: 3px solid #851A31;
}

.services-list {
    list-style: none;
    padding-left: 0;
    display: inline-block;
    text-align: left;
}

/* Especialidades */
.specialties-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.specialty-item {
    text-align: center;
    min-width: 120px;
}

.specialty-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.closing-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .lead-text {
        font-size: 1.3rem;
    }
    
    .specialties-container {
        gap: 15px;
    }
    
    .specialty-item {
        min-width: 100px;
    }
}

/* Estilos para la sección Quiénes Somos */
.about-intro {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    color: #851A31;
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #F28E00;
}

.lead-text {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #333;
}

.text-highlight {
    color: #F28E00;
    font-weight: 600;
}

.feature-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-top: 3px solid #851A31;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(133, 26, 49, 0.1);
}

.feature-icon {
    font-size: 2rem;
    color: #F28E00;
}

.value-list {
    list-style: none;
    padding-left: 0;
    max-width: 700px;
    text-align: left;
}

.value-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.value-list i {
    position: absolute;
    left: 0;
    top: 5px;
}

.cta-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 2rem !important;
}

.btn-primary {
    background-color: #851A31;
    border-color: #851A31;
    padding: 10px 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #6e1528;
    border-color: #6e1528;
}

/* Estilos sección Quiénes Somos */
.about-us-intro {
    background-color: #f9f9f9;
    position: relative;
}

.section-header {
    position: relative;
    margin-bottom: 3rem;
}

.section-subtitle {
    display: block;
    color: #F28E00;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.section-title {
    color: #851A31;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.header-divider {
    width: 80px;
    height: 3px;
    background-color: #F28E00;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #444;
}

.text-highlight {
    color: #F28E00;
    font-weight: 600;
}

/* Tarjeta de experiencia */
.experience-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid #851A31;
}

.experience-badge {
    background: #851A31;
    color: white;
    padding: 20px;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.experience-badge span {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge small {
    font-size: 0.9rem;
    display: block;
    text-align: center;
}

.value-props {
    list-style: none;
    padding-left: 0;
}

.value-props li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.value-props i {
    position: absolute;
    left: 0;
    top: 5px;
}

/* Filosofía */
.philosophy-title {
    color: #851A31;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.philosophy-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #F28E00;
}

.philosophy-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    height: 100%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(133, 26, 49, 0.1);
    border-top-color: #F28E00;
}

.philosophy-icon {
    font-size: 2.5rem;
    color: #F28E00;
    margin-bottom: 20px;
}

.philosophy-card h4 {
    color: #851A31;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Cierre */
.closing-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background-color: #851A31;
    border-color: #851A31;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: #6e1528;
    border-color: #6e1528;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .experience-badge {
        width: 120px;
        height: 120px;
    }
    
    .experience-badge span {
        font-size: 2rem;
    }
}

/* Ajustes solo para pantallas grandes */
@media (min-width: 992px) {
    .about-content {
      padding-left: 5rem;
      padding-right: 5rem;
      font-size: 1.2rem;
      line-height: 1.8;
    }
  
    .lead-text {
      padding-left: 4rem;
      padding-right: 4rem;
      font-size: 1.25rem;
      line-height: 1.8;
    }
  }

  .gallery-container {
    max-width: 900px; /* Ajusta según necesites */
    margin: 0 auto;
    padding: 20px;
}
.gallery-img {
    width: 100%;
    height: 180px; /* Altura fija para uniformidad */
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.img-container {
    margin-bottom: 20px;
    padding: 0 10px;
}

#videoGallery video {
    height: 200px;
    object-fit: cover;
}

@media (min-width: 768px) {
    #videoGallery video {
        height: 250px;
    }
}

@media (min-width: 992px) {
    #videoGallery video {
        height: 300px;
    }
}

.video-thumb {
    cursor: pointer;
    transition: transform 0.3s;
  }
  
  .video-thumb:hover {
    transform: scale(1.05);
  }
  
  .video-thumb {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.video-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.vimeo-thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.vimeo-thumb img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.vimeo-thumb::after {
  content: "\f144"; /* ícono play de Font Awesome */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 3rem;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.vimeo-thumb:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.vimeo-thumb:hover::after {
  opacity: 1;
}

.text-highlight {
  color: #851A31;
}

.border-highlight {
  border-color: #851A31 !important;
}

.text-urrutia {
  color: #851A31;
}

.contact-highlight {
  color: #851A31;
  background-color: white;
  padding: 1rem;
  border: 2px solid #851A31;
  border-radius: 10px;
  font-weight: 600;
}
@keyframes bounceInLeft {
    0% {
      opacity: 0;
      transform: translateX(-100px);
    }
    60% {
      opacity: 1;
      transform: translateX(20px);
    }
    80% {
      transform: translateX(-5px);
    }
    100% {
      transform: translateX(0);
    }
  }

  .animate-in {
    animation: bounceInLeft 1s ease-out;
  }

  .whatsapp-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .whatsapp-float {
    background-color: #25d366;
    color: white;
    font-size: 24px;
    padding: 14px 16px;
    border-radius: 50%;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: background-color 0.3s ease;
    text-decoration: none;
  }

  .whatsapp-float:hover {
    background-color: #1ebe5b;
  }

  .whatsapp-bubble {
    background: white;
    color: #333;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
  }

  .whatsapp-bubble::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    margin-top: -5px;
    width: 0;
    height: 0;
    border-left: 8px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
  }

  .bubble-mobile {
    display: none;
  }

  @media (max-width: 576px) {
    .whatsapp-bubble {
      padding: 6px 10px;
      font-size: 12px;
    }

    .bubble-desktop {
      display: none;
    }

    .bubble-mobile {
      display: inline;
    }

    .whatsapp-float {
      padding: 12px 14px;
      font-size: 20px;
    }

    .whatsapp-container {
      bottom: 15px;
      left: 15px;
    }
  }