:root {
  --sfe-orange: #ff6b35;
  --sfe-dark: #000000;
  --sfe-gray: #2c2c2c;
  --sfe-dark-gray: #1a1a1a;
  --sfe-light-gray: #404040;
}

/* Override Bootstrap's text-warning to use our custom orange */
.text-warning {
  color: var(--sfe-orange) !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #fff;
  background-color: var(--sfe-dark);
}

/* Custom Background Classes */
.bg-gray {
  background-color: var(--sfe-gray) !important;
}

.bg-dark-gray {
  background-color: var(--sfe-dark-gray) !important;
}

/* Navigation */
.navbar-brand {
  font-size: 1.2rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--sfe-orange) !important;
}


/* Hero Section con Video */
.hero-section {
  position: relative;
  overflow: hidden;
  margin-top: 65px !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video de fondo */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Overlay oscuro sobre el video */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(139, 79, 0, 0.411), rgba(165, 94, 1, 0.39));
  z-index: 2;
}

/* Contenido centrado */
.hero-content-centered {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1200px;
  padding: 0 2rem;
}

.hero-title {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
}

.hero-line {
  width: 150px;
  height: 4px;
  background-color: #d48d4a;
  margin: 0 auto;
}

/* Responsive para el hero */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }
  
  .hero-line {
    width: 100px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.2rem;
  }
  
  .hero-content-centered {
    padding: 0 1rem;
  }
}

/* Services Section */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 15px;
  background-color: var(--sfe-gray) !important;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(255, 107, 53, 0.2);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--sfe-orange);
  color: white;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

/* Projects Section */
.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
  background-color: var(--sfe-dark-gray) !important;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2);
}

/* =================================== */
/* SECCIÓN DE TESTIMONIOS CON SWIPE */
/* =================================== */

.testimonials-section {
  position: relative;
  background: linear-gradient(135deg, var(--sfe-dark) 0%, var(--sfe-dark-gray) 50%, var(--sfe-dark) 100%);
  overflow: hidden;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
  z-index: 1;
}

.testimonials-section .container {
  position: relative;
  z-index: 2;
}

/* Header mejorado */
.testimonials-header {
  position: relative;
  margin-bottom: 3rem;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-star {
  position: absolute;
  color: var(--sfe-orange);
  font-size: 1.2rem;
  opacity: 0.6;
  animation: floatStar 6s ease-in-out infinite;
}

.star-1 {
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}
.star-2 {
  top: 20%;
  right: 20%;
  animation-delay: 1.2s;
}
.star-3 {
  top: 60%;
  left: 10%;
  animation-delay: 2.4s;
}
.star-4 {
  top: 70%;
  right: 15%;
  animation-delay: 3.6s;
}
.star-5 {
  top: 40%;
  left: 50%;
  animation-delay: 4.8s;
}

@keyframes floatStar {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-15px) rotate(270deg);
    opacity: 1;
  }
}

.testimonials-title {
  position: relative;
  z-index: 3;
}

.glow-text {
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
  animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from {
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
  }
  to {
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.8), 0 0 40px rgba(255, 107, 53, 0.3);
  }
}

.testimonials-subtitle {
  position: relative;
  z-index: 3;
  animation: fadeInUp 1s ease-out 0.5s both;
}

/* Estadísticas animadas */
.testimonials-stats {
  animation: fadeInUp 1s ease-out 1s both;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(255, 107, 53, 0.2);
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 107, 53, 0.15);
  border-color: rgba(255, 107, 53, 0.4);
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--sfe-orange);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: #adb5bd;
  margin-top: 0.5rem;
}

/* Contenedor de testimonios mejorado */
.testimonials-container {
  margin-top: 2rem;
}

.testimonials-carousel-container {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  border-radius: 20px;
  background: rgba(255, 107, 53, 0.02);
  border: 1px solid rgba(255, 107, 53, 0.1);
  touch-action: pan-y; /* Permite scroll vertical pero controla el horizontal */
  width: 100%;
  max-width: 100%;
  cursor: grab;
}

.testimonials-carousel-container:active {
  cursor: grabbing;
}

.testimonials-wrapper {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: testimonialFlow 80s linear infinite; /* Cambiado de 40s a 80s para ser más lento */
  animation-play-state: running;
  width: max-content;
  max-width: none;
  will-change: transform; /* Mejora el rendimiento */
}

@keyframes testimonialFlow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Mantiene el bucle infinito */
  }
}

.testimonials-wrapper:hover,
.testimonials-wrapper.paused {
  animation-play-state: paused;
}

/* =================================== */
/* INDICADORES DE SWIPE */
/* =================================== */

.swipe-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--sfe-orange), #e55a2b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  z-index: 15;
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5);
}

.swipe-indicator.swipe-next {
  right: 30px;
}

.swipe-indicator.swipe-prev {
  left: 30px;
}

.swipe-indicator.show {
  opacity: 0.95;
  transform: translateY(-50%) scale(1.15);
}

/* Tarjetas de testimonios modernas */
.testimonial-card {
  flex: 0 0 350px;
  background: linear-gradient(135deg, var(--sfe-dark-gray) 0%, var(--sfe-gray) 100%);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 53, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  min-height: 280px;
  touch-action: manipulation;
  user-select: none; /* Previene selección de texto durante swipe */
  -webkit-user-select: none;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sfe-orange), #e55a2b, var(--sfe-orange));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.testimonial-card:hover::before {
  transform: scaleX(1);
}

.card-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--sfe-orange), transparent, var(--sfe-orange));
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.testimonial-card:hover .card-glow {
  opacity: 0.3;
}

.testimonial-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--sfe-orange);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 107, 53, 0.2);
}

/* Header de la tarjeta */
.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
}

.testimonial-stars i {
  color: var(--sfe-orange);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-stars i {
  transform: scale(1.1);
  filter: drop-shadow(0 0 5px rgba(255, 107, 53, 0.6));
}

.testimonial-badge {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--sfe-orange), #e55a2b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-badge {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

@keyframes avatarPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Contenido del testimonio */
.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-text {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--sfe-orange);
  transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-text {
  border-left-color: #e55a2b;
  padding-left: 1.2rem;
}

/* Footer de la tarjeta */
.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  position: relative;
}

.avatar-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sfe-orange), #e55a2b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.avatar-glow {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, var(--sfe-orange), transparent, var(--sfe-orange));
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.testimonial-card:hover .avatar-glow {
  opacity: 0.6;
  animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.testimonial-info {
  flex: 1;
}

.client-name {
  color: var(--sfe-orange);
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.testimonial-card:hover .client-name {
  color: #e55a2b;
}

.client-source {
  color: #adb5bd;
  margin: 0;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.client-source i {
  color: var(--sfe-orange);
}

.testimonial-icon {
  width: 35px;
  height: 35px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sfe-orange);
  transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-icon {
  background: rgba(255, 107, 53, 0.2);
  transform: scale(1.1);
}

/* Controles mejorados */
.testimonials-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.modern-nav-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sfe-orange), #e55a2b);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.modern-nav-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
}

.modern-nav-btn:active {
  transform: scale(0.95);
}

.btn-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--sfe-orange), transparent, var(--sfe-orange));
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.modern-nav-btn:hover .btn-glow {
  opacity: 0.6;
  animation: btnPulse 1.5s ease-in-out infinite;
}

@keyframes btnPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.prev-btn {
  left: -25px;
}

.next-btn {
  right: -25px;
}

/* Indicador de progreso */
.testimonials-progress {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.progress-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 107, 53, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sfe-orange), #e55a2b);
  border-radius: 2px;
  animation: progressFlow 80s linear infinite; /* Cambiado de 40s a 80s */
}

@keyframes progressFlow {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* Call to Action mejorado */
.testimonials-cta {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.testimonials-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: ctaShine 3s ease-in-out infinite;
}

@keyframes ctaShine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.cta-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.cta-btn:hover .btn-shine {
  left: 100%;
}

/* Responsive Design */
@media (max-width: 992px) {
  .testimonial-card {
    flex: 0 0 300px;
  }

  .testimonials-stats .row {
    gap: 1rem;
  }

  .stat-item {
    margin: 0.25rem;
  }

  .swipe-indicator {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .testimonials-carousel-container {
    margin: 0;
    padding: 1.5rem 0;
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 280px;
    padding: 1.5rem;
    min-height: 260px;
  }

  .floating-star {
    display: none;
  }

  .testimonials-title {
    font-size: 2rem;
  }

  .modern-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .prev-btn {
    left: -15px;
  }

  .next-btn {
    right: -15px;
  }

  .testimonials-cta {
    padding: 2rem 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .swipe-indicator {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .swipe-indicator.swipe-next {
    right: 15px;
  }

  .swipe-indicator.swipe-prev {
    left: 15px;
  }

  .testimonials-carousel-container {
    margin: 0 -15px;
    padding: 1.5rem 15px;
    border-radius: 0;
  }

  .container {
    overflow: hidden;
  }
}

@media (max-width: 576px) {
  .testimonial-card {
    flex: 0 0 260px;
    padding: 1.2rem;
  }

  .testimonials-wrapper {
    gap: 1rem;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }

  .avatar-circle {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .modern-nav-btn {
    width: 40px;
    height: 40px;
  }

  .swipe-indicator {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .testimonials-carousel-container {
    margin: 0 -20px;
    padding: 1rem 20px;
    width: calc(100% + 40px);
    max-width: calc(100vw);
  }

  .testimonials-section .container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
  }
}

/* Animaciones adicionales */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Certifications */
.certification-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 15px;
  background-color: var(--sfe-gray) !important;
}

.certification-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2);
}

/* Contact Form */
.form-control:focus {
  border-color: var(--sfe-orange);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
  background-color: var(--sfe-gray) !important;
  color: #fff !important;
}

.form-select:focus {
  border-color: var(--sfe-orange);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
  background-color: var(--sfe-gray) !important;
  color: #fff !important;
}

.form-control,
.form-select {
  background-color: var(--sfe-gray) !important;
  color: #fff !important;
  border-color: #6c757d !important;
}

.form-control::placeholder {
  color: #adb5bd !important;
}

/* Buttons */
.btn-warning {
  background-color: var(--sfe-orange) !important;
  border-color: var(--sfe-orange) !important;
  color: white !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-warning:hover {
  background-color: #e55a2b !important;
  border-color: #e55a2b !important;
  color: white !important;
  transform: translateY(-2px);
}

.btn-outline-warning {
  color: var(--sfe-orange) !important;
  border-color: var(--sfe-orange) !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-warning:hover {
  background-color: var(--sfe-orange) !important;
  border-color: var(--sfe-orange) !important;
  color: white !important;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background-color: #000000 !important;
}

footer a:hover {
  color: var(--sfe-orange) !important;
  transition: color 0.3s ease;
}

footer .navbar-brand {
  font-size: 1.2rem;
}

footer .navbar-brand span {
  color: var(--sfe-orange);
}

/* MÓVIL - Diseño vertical centrado (≤768px) */
@media (max-width: 768px) {
  /* Header móvil - Logo y redes centrados */
  .footer-mobile-header {
    order: 1;
    margin-bottom: 2rem;
  }

  .footer-mobile-header .footer-brand {
    text-align: center;
  }

  .footer-mobile-header .social-section {
    text-align: center;
  }

  /* Columnas móvil - 2 columnas balanceadas */
  .footer-mobile-left {
    order: 2;
    padding-right: 1rem;
  }

  .footer-mobile-right {
    order: 3;
    padding-left: 1rem;
  }

  /* Ajustes de espaciado móvil */
  .footer-mobile-left h6,
  .footer-mobile-right h6 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .footer-mobile-left ul,
  .footer-mobile-right ul {
    margin-bottom: 1.5rem;
  }

  .footer-mobile-left li,
  .footer-mobile-right li {
    margin-bottom: 0.5rem;
  }

  .footer-mobile-left .small,
  .footer-mobile-right .small {
    font-size: 0.85rem;
  }

  /* Copyright en móvil */
  footer .row:last-child .d-flex {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  footer .row:last-child .col-md-6:last-child {
    text-align: center !important;
  }
}

/* DESKTOP/TABLET - Diseño horizontal 4 columnas (>768px) */
@media (min-width: 769px) {
  /* Estructura de 4 columnas */
  .footer-desktop-brand {
    flex: 0 0 25%;
    max-width: 25%;
  }

  /* Alineación izquierda para desktop */
  .footer-desktop-brand .footer-brand {
    text-align: left;
  }

  .footer-desktop-brand .social-section {
    text-align: left;
  }

  /* Espaciado uniforme entre columnas */
  footer .row.g-4 > div {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ajustes de títulos */
  footer h6 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  /* Espaciado de listas */
  footer ul {
    margin-bottom: 0;
  }

  footer li {
    margin-bottom: 0.75rem;
  }

  footer .small {
    font-size: 0.9rem;
  }
}

/* Ajustes específicos para tablet */
@media (min-width: 769px) and (max-width: 992px) {
  /* Ajustar columnas para tablet */
  .footer-desktop-brand {
    flex: 0 0 30%;
    max-width: 30%;
  }

  footer .col-lg-2 {
    flex: 0 0 20%;
    max-width: 20%;
  }

  footer .col-lg-4 {
    flex: 0 0 30%;
    max-width: 30%;
  }

  footer .col-lg-3 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* Estilos comunes para ambos diseños */
.social-section a {
  transition: color 0.3s ease;
}

.social-section a:hover {
  color: var(--sfe-orange) !important;
}

footer h6.text-warning {
  color: var(--sfe-orange) !important;
  font-weight: 600;
}

footer .text-light {
  color: #ffffff !important;
}

footer .text-muted {
  color: #6c757d !important;
}

/* Separador */
footer hr {
  border-color: #404040 !important;
  margin: 2rem 0;
}

/* Copyright section */
footer .row:last-child {
  margin-top: 1rem;
}

footer .row:last-child p,
footer .row:last-child a {
  font-size: 0.85rem;
}

/*formulario */

/* =================================== */
/* THEME TOGGLE BUTTON */
/* =================================== */

.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--sfe-orange);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  background: rgba(255, 107, 53, 0.15);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

.theme-toggle-btn .theme-icon-light,
.theme-toggle-btn .theme-icon-dark {
  position: absolute;
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark mode: show sun icon (to switch to light) */
.dark-mode .theme-toggle-btn .theme-icon-light {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: var(--sfe-orange);
}

.dark-mode .theme-toggle-btn .theme-icon-dark {
  opacity: 0;
  transform: rotate(-180deg) scale(0);
}

/* Light mode: show moon icon (to switch to dark) */
.light-mode .theme-toggle-btn .theme-icon-light {
  opacity: 0;
  transform: rotate(180deg) scale(0);
}

.light-mode .theme-toggle-btn .theme-icon-dark {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: var(--sfe-orange);
}

/* =================================== */
/* LIGHT MODE STYLES */
/* =================================== */

/* Light mode variables */
.light-mode {
  --lm-bg-primary: #ffffff;
  --lm-bg-secondary: #f8f9fa;
  --lm-bg-tertiary: #e9ecef;
  --lm-bg-card: #ffffff;
  --lm-text-primary: #1a1a1a;
  --lm-text-secondary: #4a4a4a;
  --lm-text-muted: #6c757d;
  --lm-border: #dee2e6;
}

/* Body styles for light mode */
.light-mode {
  background-color: var(--lm-bg-primary);
  color: var(--lm-text-primary);
}

/* NAVBAR - Light Mode */
.light-mode .navbar {
  background-color: var(--lm-bg-primary) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.light-mode .navbar-nav .nav-link {
  color: var(--lm-text-primary) !important;
}

.light-mode .navbar-nav .nav-link:hover,
.light-mode .navbar-nav .nav-link.active {
  color: var(--sfe-orange) !important;
}

.light-mode .brand-text-white {
  color: var(--lm-text-primary) !important;
}

.light-mode .navbar-toggler {
  border-color: var(--lm-text-secondary);
}

.light-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 26, 26, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dark mode navbar brand text */
.dark-mode .brand-text-white {
  color: #ffffff !important;
}

/* SERVICES SECTION - Light Mode */
.light-mode #servicios,
.light-mode .bg-dark-gray {
  background-color: var(--lm-bg-secondary) !important;
}

.light-mode #servicios h2.text-white,
.light-mode .bg-dark-gray h2.text-white {
  color: var(--lm-text-primary) !important;
}

.light-mode #servicios .lead.text-light,
.light-mode .bg-dark-gray .lead.text-light {
  color: var(--lm-text-secondary) !important;
}

.light-mode .service-card,
.light-mode .bg-gray {
  background-color: var(--lm-bg-card) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--lm-border) !important;
}

.light-mode .service-card:hover {
  box-shadow: 0 15px 35px rgba(255, 107, 53, 0.15);
}

.light-mode .service-card h5.text-white {
  color: var(--lm-text-primary) !important;
}

.light-mode .service-card .text-light {
  color: var(--lm-text-secondary) !important;
}

/* TESTIMONIALS SECTION - Light Mode */
.light-mode .testimonials-section,
.light-mode .testimonials-section.bg-dark {
  background: linear-gradient(135deg, var(--lm-bg-secondary) 0%, var(--lm-bg-tertiary) 50%, var(--lm-bg-secondary) 100%) !important;
}

.light-mode .testimonials-section::before {
  background: radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.04) 0%, transparent 50%);
}

.light-mode .testimonials-title.text-white {
  color: var(--lm-text-primary) !important;
}

.light-mode .testimonials-subtitle.text-light {
  color: var(--lm-text-secondary) !important;
}

.light-mode .stat-item {
  background: rgba(255, 107, 53, 0.08);
  border-color: rgba(255, 107, 53, 0.15);
}

.light-mode .stat-item:hover {
  background: rgba(255, 107, 53, 0.12);
  border-color: rgba(255, 107, 53, 0.3);
}

.light-mode .stat-label {
  color: var(--lm-text-secondary);
}

.light-mode .testimonials-carousel-container {
  background: rgba(255, 107, 53, 0.03);
  border-color: rgba(255, 107, 53, 0.08);
}

.light-mode .testimonial-card {
  background: linear-gradient(135deg, var(--lm-bg-card) 0%, var(--lm-bg-secondary) 100%);
  border-color: rgba(255, 107, 53, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.light-mode .testimonial-card:hover {
  border-color: var(--sfe-orange);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 30px rgba(255, 107, 53, 0.15);
}

.light-mode .testimonial-text {
  color: var(--lm-text-primary) !important;
}

.light-mode .client-source {
  color: var(--lm-text-muted);
}

.light-mode .testimonials-cta {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 107, 53, 0.04));
  border-color: rgba(255, 107, 53, 0.15);
}

.light-mode .testimonials-cta h4.text-warning {
  color: var(--sfe-orange) !important;
}

.light-mode .testimonials-cta .text-light {
  color: var(--lm-text-secondary) !important;
}

/* CONTACT SECTION - Light Mode */
.light-mode #contacto,
.light-mode #contacto.bg-dark {
  background-color: var(--lm-bg-secondary) !important;
}

.light-mode #contacto h2.text-white {
  color: var(--lm-text-primary) !important;
}

.light-mode #contacto .lead.text-light {
  color: var(--lm-text-secondary) !important;
}

.light-mode .contact-info h6.text-light,
.light-mode .contact-info p.text-light,
.light-mode .contact-item .text-light {
  color: var(--lm-text-primary) !important;
}

.light-mode .contact-item h6.text-light {
  color: var(--lm-text-primary) !important;
}

.light-mode .contact-item a.text-light {
  color: var(--lm-text-primary) !important;
}

.light-mode .contact-item a.text-light:hover {
  color: var(--sfe-orange) !important;
}

.light-mode .contact-form h4.text-warning {
  color: var(--sfe-orange) !important;
}

.light-mode .contact-form .form-label.text-light {
  color: var(--lm-text-primary) !important;
}

.light-mode .contact-form .form-control,
.light-mode .contact-form .form-select {
  background-color: var(--lm-bg-card) !important;
  color: var(--lm-text-primary) !important;
  border-color: var(--lm-border) !important;
}

.light-mode .contact-form .form-control:focus,
.light-mode .contact-form .form-select:focus {
  background-color: var(--lm-bg-card) !important;
  border-color: var(--sfe-orange) !important;
}

.light-mode .contact-form .form-control::placeholder {
  color: var(--lm-text-muted) !important;
}

.light-mode .contact-form .form-check-label {
  color: var(--lm-text-secondary) !important;
}

/* FOOTER - Light Mode */
.light-mode footer,
.light-mode footer.bg-black {
  background-color: var(--lm-bg-tertiary) !important;
}

.light-mode footer .text-white,
.light-mode footer .text-light {
  color: var(--lm-text-primary) !important;
}

.light-mode footer .text-muted {
  color: var(--lm-text-muted) !important;
}

.light-mode footer h5.text-warning,
.light-mode footer h6.text-warning {
  color: var(--sfe-orange) !important;
}

.light-mode footer a.text-light {
  color: var(--lm-text-primary) !important;
}

.light-mode footer a.text-light:hover,
.light-mode footer a.text-muted:hover {
  color: var(--sfe-orange) !important;
}

.light-mode footer hr {
  border-color: var(--lm-border) !important;
}

.light-mode footer .social-section a {
  color: var(--lm-text-primary) !important;
}

.light-mode footer .social-section a:hover {
  color: var(--sfe-orange) !important;
}

/* BUTTONS - Light Mode adjustments */
.light-mode .btn-outline-warning {
  color: var(--sfe-orange) !important;
  border-color: var(--sfe-orange) !important;
  background-color: transparent !important;
}

.light-mode .btn-outline-warning:hover {
  background-color: var(--sfe-orange) !important;
  color: white !important;
}

/* Ensure hero section stays unchanged */
.light-mode .hero-section,
.light-mode .hero-section * {
  /* Hero section maintains its dark appearance */
}

.light-mode .hero-title {
  color: #ffffff !important;
}

/* Responsive adjustments for theme toggle */
@media (max-width: 991px) {
  .theme-toggle-btn {
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  .theme-toggle-btn {
    width: 40px;
    height: 40px;
  }
  
  .theme-toggle-btn .theme-icon-light,
  .theme-toggle-btn .theme-icon-dark {
    font-size: 1rem;
  }
}

/* Smooth transitions for theme change */
body,
.navbar,
.service-card,
.testimonials-section,
.testimonial-card,
#contacto,
footer,
.form-control,
.form-select {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
