:root {
  --primary-color: #ffd11a;
  --primary-dark: #e6bc00;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-gray: #f8f9fa;
  --dark-gray: #6c757d;
  --gradient-primary: linear-gradient(135deg, #ffd11a 0%, #ffed4e 100%);
  --gradient-secondary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 15px 50px rgba(0, 0, 0, 0.15);

  /* Fonts - matching index.php */
  --font-default: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-primary: "Montserrat", sans-serif;
  --font-secondary: "Poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Header: solo color y tamaño de logo, el layout lo maneja main.css */
#header {
  background: #222222;
}

#header .logo img {
  max-height: 60px;
}

/* (No tocamos .navbar, .navbar-mobile, .mobile-nav-toggle, etc.) */

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

/* Botón primario genérico */
.btn-primary {
  background: white;
  border: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 15px 35px rgba(44, 62, 80, 0.2);
  color: var(--secondary-color);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  border: none;
  box-shadow: 0 25px 50px rgba(44, 62, 80, 0.6), 0 10px 25px rgba(0, 0, 0, 0.3);
  background: #1a252f;
  color: white;
  transform: translateY(-3px) scale(1.02);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  margin-top: 90px;
  background: white;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 0;
}

/* Announcement Bar */
.announcement-bar {
  background: var(--primary-color);
  padding: 10px 0;
  margin-bottom: 30px;
  overflow: hidden;
}

.scrolling-text {
  display: flex;
  animation: scroll 20s linear infinite;
  white-space: nowrap;
}

.scrolling-text span {
  padding-right: 50px;
  font-weight: 600;
  color: var(--secondary-color);
}

@keyframes scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.hero .hero-image {
  text-align: center;
  margin-bottom: 2rem;
  border-radius: 20px;
  max-width: 450px;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.hero .hero-image img {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero .row {
  align-items: center;
  min-height: 70vh;
}

.hero .col-lg-6 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: auto;
  padding-left: 2rem;
}

.hero h1 {
  font-size: 2.7rem;
  font-weight: 900;
  color: #333;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

/* Main Testimonial */
.main-testimonial {
  background: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  border-radius: 10px;
  margin: 30px 0;
}

.main-testimonial blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 0;
  line-height: 1.6;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

/* Urgency Message */
.urgency-message {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.urgency-message p {
  margin-bottom: 0;
  color: #d63031;
  font-size: 1.1rem;
  animation: pulse 2s infinite;
}

/* CTA Button Large */
.btn-cta-large {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 20px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 209, 26, 0.3);
  border: none;
  width: 100%;
  text-align: center;
}

.btn-cta-large:hover {
  background: var(--primary-dark);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 209, 26, 0.4);
}

/* Problem & Solution Sections */
.problem-section,
.solution-section {
  padding: 80px 0;
  background: white;
}

.problem-section h2,
.solution-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.problem-section .lead,
.solution-section .lead {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.6;
}

.hero p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
}

.stat-item {
  text-align: center;
  color: var(--secondary-color);
  padding: 1.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 2px solid var(--secondary-color);
  transition: all 0.3s ease;
  flex: 1;
  box-shadow: 0 10px 30px rgba(44, 62, 80, 0.2);
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
  box-shadow: 0 15px 40px rgba(44, 62, 80, 0.3);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: #222222;
  display: block;
  text-shadow: none;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--secondary-color);
}

/* Testimonial in Hero */
.testimonial-hero {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-color);
}

.testimonial-hero .testimonial-avatar img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.testimonial-hero .stars {
  color: #ffc107;
}

.testimonial-hero p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #333;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
}

.feature-card {
  background: white;
  border-radius: 25px;
  padding: 3rem 2rem;
  text-align: center;
  border: 3px solid transparent;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-15px);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #ffed4e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
  color: var(--secondary-color);
  box-shadow: 0 10px 30px rgba(255, 209, 26, 0.3);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(255, 209, 26, 0.5);
}

/* Categories */
.categories {
  padding: 100px 0;
}

.category-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.category-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.category-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* How it Works */
.how-it-works {
  padding: 100px 0;
  background: var(--light-gray);
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary-color);
}

.step-connector {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  z-index: -1;
}

/* Testimonials */
.testimonials {
  padding: 100px 0;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--secondary-color);
}

.stars {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: #222222;
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.btn-cta {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
}

.btn-cta:hover {
  background: var(--primary-dark);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 60px 0 30px;
}

.footer h5 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.footer a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    margin-top: 90px;
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }

  .hero-content {
    padding-left: 0;
    text-align: center;
  }

  .hero .col-lg-6:first-child {
    order: 1;
    margin-bottom: 2rem;
  }

  .hero .col-lg-6:last-child {
    order: 2;
  }

  .scrolling-text {
    font-size: 0.9rem;
  }

  .btn-cta-large {
    font-size: 1.1rem;
    padding: 18px 30px;
  }

  .problem-section h2,
  .solution-section h2 {
    font-size: 2rem;
  }

  .problem-section,
  .solution-section {
    padding: 60px 0;
  }

  .cta h2 {
    font-size: 2.2rem;
  }
}

@media (min-width: 992px) {
  .hero .col-lg-6:first-child {
    padding-right: 2rem;
  }

  .hero .col-lg-6:last-child {
    padding-left: 2rem;
  }
}

/* Animations */
.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Hero Icon Enhancements */
.hero-icon-wrapper {
  position: relative;
  display: inline-block;
}

.hero-main-icon {
  filter: drop-shadow(0 10px 30px rgba(13, 17, 21, 0.5));
  animation: floating 3s ease-in-out infinite;
  color: #222222 !important;
}

.hero-accent-icon {
  position: absolute;
  top: 10%;
  right: 10%;
  animation: floating 2s ease-in-out infinite reverse;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
  color: white !important;
}

.hero-accent-icon-2 {
  position: absolute;
  bottom: 20%;
  left: 15%;
  animation: floating 2.5s ease-in-out infinite;
  filter: drop-shadow(0 5px 15px rgba(44, 62, 80, 0.4));
  color: var(--secondary-color) !important;
}

/* Decorative Elements */
.hero-decorations {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(44, 62, 80, 0.1);
  animation: pulse 3s ease-in-out infinite;
}

.decoration-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  right: 10%;
  animation-delay: -0.5s;
}

.decoration-2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 10%;
  animation-delay: -1s;
}

.decoration-3 {
  width: 100px;
  height: 100px;
  top: 50%;
  right: 30%;
  animation-delay: -1.5s;
}

/* Testimonials Carousel Styles */
#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  transition: all 0.3s ease;
}

#testimonialsCarousel .carousel-control-prev {
  left: -30px;
}

#testimonialsCarousel .carousel-control-next {
  right: -30px;
}

#testimonialsCarousel .carousel-control-prev:hover,
#testimonialsCarousel .carousel-control-next:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}

#testimonialsCarousel .carousel-control-prev-icon,
#testimonialsCarousel .carousel-control-next-icon {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

#testimonialsCarousel .carousel-indicators {
  margin-bottom: -50px;
}

#testimonialsCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dark-gray);
  border: none;
  margin: 0 5px;
  transition: all 0.3s ease;
}

#testimonialsCarousel .carousel-indicators button.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Responsive adjustments for carousel controls */
@media (max-width: 768px) {
  #testimonialsCarousel .carousel-control-prev {
    left: 10px;
  }

  #testimonialsCarousel .carousel-control-next {
    right: 10px;
  }

  #testimonialsCarousel .carousel-control-prev,
  #testimonialsCarousel .carousel-control-next {
    width: 30px;
    height: 30px;
  }

  #testimonialsCarousel .carousel-control-prev-icon,
  #testimonialsCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
  }
}

/* ============================
   HERO HOME (INDEX)
   ============================ */

.hero.hero-home {
  background: #ffffff;  /* cambia #ffd11a por #ffffff */
  padding: 2rem 0 3rem;
  min-height: auto;
}

.hero.hero-home .hero-content {
  max-width: 640px;
  margin: 0 auto;
  color: #222;                      /* texto oscuro para que se lea bien */
  padding-left: 0;
  text-align: center;
}

.hero.hero-home h1 {
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.hero.hero-home .lead {
  color: #444;
  font-weight: 500;
}

/* Texto explicativo debajo del botón */
.hero.hero-home .hero-instructions {
  font-size: 0.9rem;
  color: #444;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* Aseguramos que la sección del carrusel tenga fondo blanco */
#team.testimonials,
#servicios-populares,
.testimonials {
  background: #ffffff;
}

/* Título "Servicios más solicitados" bien grande en desktop */
#team.testimonials .section-header h2 {
  font-size: 3rem;
  font-weight: 900;
}

/* En móviles lo bajamos un poco para que no se desborde */
@media (max-width: 768px) {
  #team.testimonials .section-header h2 {
    font-size: 2.2rem;
  }
}

/* ===== FIX BOTÓN HAMBURGUESA (MOBILE) ===== */

/* Obligo a que el botón del menú se vea en mobile */
.navbar-toggler {
  display: inline-block !important;   /* anula cualquier display:none anterior */
  border: none;
  padding: .25rem .75rem;
}

/* Icono de las 3 rayas en blanco sobre el header negro */
.navbar-toggler-icon {
  filter: invert(1);
}

/* Sin borde/halo feo al hacer foco */
.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}