/*--------------------------------------------------------------
# General / Variables
--------------------------------------------------------------*/
:root {
  --primary-color: #b88917;
  --primary-color-dark: #a07615;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
  --cubic-bezier: cubic-bezier(0.165, 0.84, 0.44, 1);
}

html {
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font-secondary);
  color: #444;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.separator {
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 1.5rem auto;
  transition: width 0.6s var(--cubic-bezier);
  transform-origin: center;
}
.animate-on-scroll.is-visible .separator {
    width: 120px;
}

.separator.light {
  background-color: #fff;
}

/*--------------------------------------------------------------
# Botones 
--------------------------------------------------------------*/
.btn {
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s var(--cubic-bezier);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-color-dark);
  border-color: var(--primary-color-dark);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(184, 137, 23, 0.25);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/*--------------------------------------------------------------
# NUEVO Sistema de Animaciones de Scroll
--------------------------------------------------------------*/
@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes maskReveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Clase base para observar con JS */
.animate-on-scroll {
  opacity: 0;
}

/* Clase que se añade con JS */
.animate-on-scroll.is-visible {
  animation-duration: 0.8s;
  animation-fill-mode: both;
  animation-timing-function: var(--cubic-bezier);
  animation-delay: var(--animation-delay, 0s);
}

/* Clases específicas de animación */
.animate-on-scroll.is-visible.animate-slide-up {
  animation-name: slideUp;
}

.animate-on-scroll.is-visible.animate-slide-down {
  animation-name: slideDown;
}

.animate-on-scroll.is-visible.animate-zoom-in {
  animation-name: zoomIn;
}

.animate-on-scroll.is-visible.animate-mask-reveal {
  animation-name: maskReveal;
}

/*--------------------------------------------------------------
# Navbar
--------------------------------------------------------------*/
.navbar {
  padding: 1rem 0;
  background-color: transparent;
  transition: background-color 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
  background-color: var(--dark-color);
  padding: 0.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
  height: 75px;
  transition: height 0.4s ease;
}
.navbar.scrolled .logo {
    height: 65px;
}
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 8px;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

@media (max-width: 991.98px) {
  .navbar.navbar-open {
    background-color: var(--dark-color);
  }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-section .hero-background {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-section .carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-logo {
    max-height: 180px;
}
.hero-section .btn {
    padding: 14px 35px;
}


/*--------------------------------------------------------------
# Secciones Intermedias (Servicios, Promo)
--------------------------------------------------------------*/
.service-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    transition: all 0.4s var(--cubic-bezier);
    position: relative;
    overflow: hidden;
}
.service-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--cubic-bezier);
}
.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}
.service-item:hover:before {
    transform: scaleX(1);
}
.service-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: transform 0.4s var(--cubic-bezier);
}
.service-item:hover .service-icon i {
    transform: scale(1.1);
}

.promo-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/bannerBackground.webp') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}
/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-section.bg-light .text-primary {
  color: var(--primary-color) !important;
}

.about-logo-light {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  padding: 14px;
  background: radial-gradient(120% 120% at 30% 30%, #1f2937 0%, #0f172a 100%);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.06);
  isolation: isolate;
  transition: transform 0.4s var(--cubic-bezier);
}
.about-logo-light:hover {
    transform: rotate(5deg) scale(1.05);
}

.about-logo-light img {
  max-width: 92%;
  height: auto;
  filter: drop-shadow(0 0 2px rgba(255,255,255,.25)) drop-shadow(0 10px 18px rgba(0,0,0,.25));
  mix-blend-mode: normal;
}

.about-quote-light {
  position: relative;
  padding-left: 2.5rem;
  border-left: 3px solid var(--primary-color);
}

.about-section.bg-light .about-text {
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.8;
  color: #555;
}

@media (max-width: 991.98px) {
  .about-quote-light {
    border-left: none;
    padding-left: 0;
    text-align: center;
    margin-top: 2rem;
  }
}

/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.gallery-item img {
    transition: transform 0.5s var(--cubic-bezier), filter 0.5s var(--cubic-bezier);
    display: block;
}
.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(184, 137, 23, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s var(--cubic-bezier);
    border-radius: 8px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: white;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.7));
    transform: scale(0.8);
    transition: transform 0.4s var(--cubic-bezier);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

#imageModal .modal-dialog { max-width: 90%; }
#imageModal .modal-content { background-color: transparent; border: none; }
#imageModal .modal-header { justify-content: flex-end; padding-bottom: 0; }
#imageModal .btn-close-white { filter: invert(1) grayscale(100%) brightness(200%); font-size: 1.5rem; opacity: 0.8; }
#imageModal .btn-close-white:hover { opacity: 1; }
#modalImage { max-height: 90vh; width: auto; object-fit: contain; background-color: #fff; padding: 10px; border-radius: 8px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }

@media (max-width: 768px) {
    #imageModal .modal-dialog { margin: 0.5rem; }
    #modalImage { max-height: 80vh; width: 100%; }
}

/*--------------------------------------------------------------
# Pricing Section Mejorada
--------------------------------------------------------------*/
.pricing-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.4s var(--cubic-bezier);
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.pricing-card .card-header {
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
    transition: background-color 0.4s ease;
}
.pricing-card .card-price {
    font-size: 2.8rem;
    font-weight: 700;
}
.pricing-card ul li i {
    transition: transform 0.3s ease;
}
.pricing-card:hover ul li i {
    transform: translateX(-5px);
}

/*--------------------------------------------------------------
# Secciones de Información (Observaciones y Requerimientos)
--------------------------------------------------------------*/
.info-section h4 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.info-section ul { padding-left: 0; }
.info-section ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.info-section ul i {
    margin-top: 5px;
    margin-right: 10px;
    color: var(--primary-color);
}


/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact-section { background-color: var(--dark-color); }
.contact-section .form-control { background-color: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); color: #fff; padding: 12px 15px; }
.contact-section .form-control:focus { background-color: rgba(255,255,255,0.1); border-color: var(--primary-color); box-shadow: 0 0 0 0.25rem rgba(184, 137, 23, 0.25); color: #fff; }
.contact-section .form-control::placeholder { color: rgba(255,255,255,0.5); }

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer-professional { background-color: #1a1a1a; color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.footer-professional .footer-info .logo img { max-height: 100px; }
.footer-professional .footer-info p { margin-top: 1rem; font-family: var(--font-primary); }
.footer-professional .footer-links { margin-bottom: 30px; }
.footer-professional .footer-links h4 { font-size: 16px; font-weight: bold; color: #fff; text-transform: uppercase; position: relative; padding-bottom: 12px; }
.footer-professional .footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-professional .footer-links ul li { padding: 10px 0; display: flex; align-items: center; }
.footer-professional .footer-links ul li:first-child { padding-top: 0; }
.footer-professional .footer-links ul a { color: rgba(255, 255, 255, 0.7); transition: 0.3s; display: inline-block; line-height: 1; text-decoration: none; }
.footer-professional .footer-links ul a:hover { color: var(--primary-color); }
.footer-professional .footer-bottom { background-color: #000; padding-top: 15px; padding-bottom: 15px; }
.footer-professional .footer-links .contact-list { list-style: none; padding: 0; margin: 0; }
.footer-professional .footer-links .contact-list a { display: flex; align-items: center; color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: all 0.3s ease; }
.footer-professional .footer-links .contact-list a:hover { color: var(--primary-color); }
.footer-professional .footer-links .contact-list i { font-size: 20px; margin-right: 15px; min-width: 20px; color: var(--primary-color); }

/*--------------------------------------------------------------
# Justificaciones
--------------------------------------------------------------*/
.service-item p, #values p, .register-form-container p {
    text-align: justify;
}
@media (min-width: 992px) {
  .about-quote-light p { text-align: justify; }
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.75s ease, visibility 0.75s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border-left-color: var(--primary-color);
  animation: spin 1s linear infinite;
}

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

/* Transición para mostrar el contenido suavemente */
main#main-content {
    transition: opacity 0.5s ease;
}

/* =========================
   WhatsApp Flotante
========================= */
.whatsapp-flotante {
  position: fixed;
  bottom: 140px;
  right: 30px;
  width: 75px;
  height: 75px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  color: #FFF;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease-in-out;
  animation: float-whatsapp 3s ease-in-out infinite;
}

.whatsapp-flotante::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: ripple-whatsapp 2s infinite;
}

.whatsapp-flotante:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 10px 40px rgba(37, 211, 102, 0.6);
  color: #FFF;
  text-decoration: none;
}

.whatsapp-flotante:focus,
.whatsapp-flotante:active {
  color: #FFF;
  text-decoration: none;
  outline: none;
}

.whatsapp-flotante i {
  position: relative;
  z-index: 1;
  animation: shake-whatsapp 1s ease-in-out infinite;
  animation-delay: 2s;
  line-height: 1;
}

@keyframes float-whatsapp {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes ripple-whatsapp {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes shake-whatsapp {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: rotate(-10deg);
  }
  20%, 40%, 60%, 80% {
    transform: rotate(10deg);
  }
}

@media (max-width: 768px) {
  .whatsapp-flotante {
    width: 65px;
    height: 65px;
    bottom: 80px;
    right: 20px;
    font-size: 32px;
  }
}

#contactModal .modal-dialog {
  max-width: 700px;
}