/* ============================================
   CUSTOM PROPERTIES & RESET
   ============================================ */
:root {
  /* Colors - Rojo más fuerte y vibrante */
  --primary-red: #c8102e;
  --primary-dark: #1a1a1a;
  --primary-light: #ffffff;
  --gray-dark: #2d2d2d;
  --gray-medium: #6c757d;
  --gray-light: #f5f5f5;
  --accent-red: #a00d25;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--primary-dark);
  background-color: var(--primary-light);
  overflow-x: hidden;
}

/* ============================================
   NAVBAR
   ============================================ */
#mainNav {
  background-color: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform var(--transition-base);
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform var(--transition-base);
}

.logo-img:hover {
  transform: rotate(5deg) scale(1.1);
}

.brand-text {
  color: var(--primary-light);
}

.highlight {
  color: var(--primary-red);
  font-weight: 700;
}

.navbar-nav .nav-link {
  color: var(--primary-light) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color var(--transition-base);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-red);
  transition: width var(--transition-base);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-red) !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("/images/imagen6.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(200, 16, 46, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--primary-light);
  padding: 2rem;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7);
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-description {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-buttons .btn {
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.hero-buttons .btn-primary {
  background-color: var(--primary-red);
  border: none;
}

.hero-buttons .btn-primary:hover {
  background-color: var(--accent-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.hero-buttons .btn-outline-light:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--primary-light);
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-15px);
  }
  60% {
    transform: translateX(-50%) translateY(-7px);
  }
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */
section {
  /* Aumentado el padding para secciones más grandes */
  padding: 6rem 0;
}

.section-tag {
  display: inline-block;
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

/* ============================================
   CUSTOM ANIMATIONS (Replacing AOS)
   ============================================ */

/* Eliminadas animaciones que causaban movimiento al scrollear */
/* Fade in up animation for hero */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 1s ease-out;
  animation-fill-mode: both;
}

.fade-in-up.delay-1 {
  animation-delay: 0.2s;
}

.fade-in-up.delay-2 {
  animation-delay: 0.4s;
}

.fade-in-up.delay-3 {
  animation-delay: 0.6s;
}

.fade-in-up.delay-4 {
  animation-delay: 1s;
}

/* Scroll reveal sin movimiento - solo fade in */
.scroll-reveal {
  opacity: 0;
  transition: opacity 1s ease;
}

.scroll-reveal.is-visible {
  opacity: 1;
}

/* Feature boxes sin scale inicial */
.feature-box {
  transition: all 0.3s ease;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  background-color: var(--gray-light);
  /* Aumentado el padding */
  padding: 7rem 0;
}

.about-image img {
  border-radius: 15px;
  transition: transform var(--transition-slow);
}

.about-image img:hover {
  transform: scale(1.05);
}

.about-content {
  padding: 2rem;
}

.about-content p {
  /* Aumentado el tamaño de fuente */
  font-size: 1.1rem;
  line-height: 1.8;
}

.feature-box {
  background: var(--primary-light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-box i {
  font-size: 3rem;
  color: var(--primary-red);
  margin-bottom: 1rem;
}

.feature-box h5 {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.feature-box p {
  font-size: 1rem;
  color: var(--gray-medium);
  margin: 0;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--gray-light) 100%);
  /* Aumentado el padding */
  padding: 7rem 0;
}

.service-card {
  background: var(--primary-light);
  padding: 3rem 2.5rem;
  border-radius: 15px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  height: 100%;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-red);
}

.service-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  transform: rotate(360deg);
}

.service-icon i {
  font-size: 3rem;
  color: var(--primary-light);
}

.service-card h3 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.service-card p {
  color: var(--gray-medium);
  margin-bottom: 2rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  padding: 0.75rem 0;
  color: var(--gray-dark);
  display: flex;
  align-items: center;
  font-size: 1.05rem;
}

.service-list li i {
  color: var(--primary-red);
  margin-right: 0.75rem;
  font-size: 1.3rem;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
  background-color: var(--gray-light);
  /* Aumentado el padding */
  padding: 7rem 0;
}

.carousel {
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-inner {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.carousel-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 50%; /* 2:1 Aspect Ratio */
  background-color: var(--gray-dark);
  overflow: hidden;
}

.carousel-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background-color: rgba(200, 16, 46, 0.9);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all var(--transition-base);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: var(--primary-red);
  transform: translateY(-50%) scale(1.1);
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-red);
  opacity: 0.5;
  transition: all var(--transition-base);
}

.carousel-indicators button.active {
  opacity: 1;
  transform: scale(1.3);
}

/* ============================================
   LOCATION SECTION
   ============================================ */
.location-section {
  background-color: var(--primary-light);
  /* Aumentado el padding */
  padding: 7rem 0;
}

.map-placeholder {
  background: linear-gradient(135deg, var(--gray-light) 0%, var(--gray-medium) 100%);
  border-radius: 15px;
  padding: 5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.map-placeholder:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.map-placeholder i {
  font-size: 6rem;
  color: var(--primary-red);
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.map-placeholder p {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.map-placeholder small {
  color: var(--gray-medium);
  font-size: 1.1rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--gray-dark) 100%);
  color: var(--primary-light);
  /* Aumentado el padding */
  padding: 7rem 0;
}

.contact-section .section-tag {
  color: var(--primary-red);
}

.contact-section .section-title,
.contact-section .text-muted {
  color: var(--primary-light);
}

.contact-card {
  background: var(--primary-light);
  padding: 3rem 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  display: block;
  height: 100%;
  color: var(--primary-dark);
}

.contact-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-xl);
}

.contact-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  transition: all var(--transition-base);
}

.contact-card:hover .contact-icon {
  transform: rotate(360deg) scale(1.1);
}

.contact-icon i {
  font-size: 3rem;
  color: var(--primary-light);
}

.contact-card h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  font-size: 1.4rem;
}

.contact-card p {
  color: var(--gray-medium);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.contact-link {
  color: var(--primary-red);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-base);
}

.contact-card:hover .contact-link {
  margin-left: 10px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--primary-dark);
  color: var(--primary-light);
  /* Aumentado el padding */
  padding: 4rem 0 2rem;
}

.footer-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 8px;
}

.footer-brand h4 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-light);
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--gray-medium);
  text-decoration: none;
  transition: all var(--transition-base);
  display: inline-block;
  font-size: 1.05rem;
}

.footer-links a:hover {
  color: var(--primary-red);
  padding-left: 5px;
}

.footer-contact li {
  color: var(--gray-medium);
  display: flex;
  align-items: flex-start;
  font-size: 1.05rem;
}

.footer-contact i {
  color: var(--primary-red);
  margin-right: 0.75rem;
  margin-top: 0.25rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 45px;
  height: 45px;
  background-color: var(--gray-dark);
  color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background-color: var(--primary-red);
  transform: translateY(-5px);
}

.footer-divider {
  border-color: var(--gray-dark);
  margin: 2.5rem 0 2rem;
}

.footer-copyright {
  color: var(--gray-medium);
  font-size: 1rem;
}

.footer-dev {
  color: var(--gray-medium);
  font-size: 1rem;
}

.dev-link {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-base);
}

.dev-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background-color: #25d366;
  color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  transition: all var(--transition-base);
  text-decoration: none;
  animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.15);
  color: var(--primary-light);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 55px;
  height: 55px;
  background-color: var(--primary-red);
  color: var(--primary-light);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-red);
  transform: translateY(-5px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.6rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .hero-section {
    background-attachment: scroll;
    min-height: 700px;
  }

  section {
    padding: 5rem 0;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .hero-buttons .btn {
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
    margin-bottom: 1rem;
  }

  section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .service-card,
  .contact-card {
    margin-bottom: 1.5rem;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 2rem;
  }

  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 45px;
    height: 45px;
  }

  .carousel-control-prev {
    left: 10px;
  }

  .carousel-control-next {
    right: 10px;
  }

  .carousel-image-wrapper {
    padding-top: 75%; /* 4:3 Aspect Ratio for mobile */
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .logo-img,
  .footer-logo {
    width: 45px;
    height: 45px;
  }

  .navbar-brand {
    font-size: 1.3rem;
  }
}


.feature-box h5 {
    word-break: break-word;
    hyphens: auto;
}