/* =============================================================================
   IMPULSO DIGITAL - ESTILOS SIMPLIFICADOS
   ============================================================================= */

/* Variables CSS */
:root {
  --primary-color: #122235;
  --secondary-color: #f4e2d8;
  --accent-color: #ffc107;
  --text-color: #122235;
  --bg-light: #f8f9fa;
  --sidebar-width: 220px;
  --topbar-height: 80px;
}

/* Reset básico */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/fondo.png');
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  z-index: -1;
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background-color: var(--primary-color);
  z-index: 20;
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 2rem;
  position: relative;
}

.topbar-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 600;
  display: none;
}

.topbar-instagram {
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
}

.topbar-instagram:hover {
  color: var(--accent-color);
}

@media (min-width: 768px) {
  .topbar-title {
    display: block;
  }
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: var(--topbar-height);
  width: var(--sidebar-width);
  height: calc(100vh - var(--topbar-height));
  background-color: var(--primary-color);
  z-index: 10;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.sidebar .nav {
  padding: 2rem 0;
}

.sidebar .nav-link {
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
}

/* Main Content */
.content {
  margin-left: 0;
  margin-top: var(--topbar-height);
  padding: 2rem;
  min-height: calc(100vh - var(--topbar-height));
  background: rgba(244, 226, 216, 0.85);
  transition: margin-left 0.3s ease;
}

/* Desktop styles */
@media (min-width: 992px) {
  .sidebar {
    transform: translateX(0);
  }
  
  .content {
    margin-left: var(--sidebar-width);
  }
}

/* Mobile sidebar toggle */
.sidebar-toggle {
  display: block;
  position: fixed;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  z-index: 15;
  cursor: pointer;
}

@media (min-width: 992px) {
  .sidebar-toggle {
    display: none;
  }
}

/* Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9;
}

.sidebar-overlay.active {
  display: block;
}

.sidebar-open .sidebar {
  transform: translateX(0);
}

/* Utilidades */
.text-primary { color: var(--primary-color) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; }
.text-white-custom { color: white !important; }

/* Partners CTA Section */
.partners-cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1f3a5b 100%);
  border-radius: 20px;
  color: white !important;
  padding: 3rem;
  text-align: center;
}

.partners-cta-section h3,
.partners-cta-section p,
.partners-cta-section .lead {
  color: white !important;
}

.partners-cta-section .btn {
  color: var(--bs-btn-color) !important;
}

.partners-cta-section .btn-light {
  color: #000 !important;
}

.partners-cta-section .btn-outline-light {
  color: white !important;
  border-color: white !important;
}

.partners-cta-section .btn-outline-light:hover {
  color: var(--primary-color) !important;
  background-color: white !important;
}

/* Modals */
.service-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.service-modal.active {
  display: flex;
}

.service-modal-content {
  background: white;
  border-radius: 15px;
  max-width: 1200px;
  max-height: 85vh;
  width: 95vw;
  overflow-y: auto;
  position: relative;
  min-height: 500px;
}

.service-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1001;
  transition: background-color 0.2s ease;
}

.service-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Instagram-like modal styling */
.service-modal {
  backdrop-filter: blur(10px);
}

.service-modal-content {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.service-image-container,
#partnerCarousel {
  border-radius: 12px !important;
}

.service-image-container img {
  transition: transform 0.3s ease;
}

.service-image-container:hover img {
  transform: scale(1.02);
}

/* Responsive adjustments for modals */

/* Pantallas grandes - modal más ancho para imágenes más cuadradas */
@media (min-width: 1200px) {
  .service-modal-content {
    max-width: 1400px;
    width: 90vw;
  }
}

/* Pantallas medianas - ajuste intermedio */
@media (min-width: 992px) and (max-width: 1199px) {
  .service-modal-content {
    max-width: 1200px;
    width: 92vw;
  }
}

/* Tablets y móviles */
@media (max-width: 768px) {
  .service-modal-content {
    max-width: 95vw;
    max-height: 90vh;
    margin: 1rem;
    min-height: 70vh;
  }
  
  .service-modal .row {
    flex-direction: column !important;
  }
  
  .service-modal .col-lg-6 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  
  .service-modal .service-image-container img,
  .service-modal .carousel-inner img {
    min-height: 300px !important;
    max-height: 400px !important;
  }
}

/* =============================================================================
   PÁGINA DE INICIO - ESTILOS MEJORADOS
   ============================================================================= */

/* Hero Section */
.hero-section {
  padding: 4rem 0;
  position: relative;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #6c757d;
  margin-bottom: 3rem;
}

.hero-buttons .btn {
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-custom-primary {
  background: linear-gradient(135deg, var(--primary-color), #1f3a5b);
  border: none;
  color: white;
}

.btn-custom-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(18, 34, 53, 0.3);
  color: white;
}

.btn-custom-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-custom-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(18, 34, 53, 0.3);
}

/* Hero Carousel */
.hero-carousel-img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  border-radius: 20px !important;
}

.carousel-inner {
  border-radius: 20px;
  overflow: hidden;
}

/* Asegurar aspect ratio consistente en ambos carruseles */
#carouselHero .carousel-inner,
#carouselResults .carousel-inner {
  aspect-ratio: 4/3;
}

#carouselHero .carousel-item,
#carouselResults .carousel-item {
  height: 100%;
}

/* Responsive adjustments for carousels */
@media (max-width: 768px) {
  .hero-carousel-img,
  .results-carousel-img {
    aspect-ratio: 4/3;
    border-radius: 15px !important;
  }
  
  #carouselHero .carousel-inner,
  #carouselResults .carousel-inner {
    aspect-ratio: 4/3;
    border-radius: 15px;
  }
}

/* Cards Section */
.feature-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.feature-card .card-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
  display: block;
}

.feature-card .card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card .card-text {
  color: #6c757d;
  line-height: 1.6;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary-color), #1f3a5b);
  color: white;
  padding: 4rem 0;
  border-radius: 30px;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="1000,0 1000,100 0,100"/></svg>');
  background-size: cover;
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Services Preview */
.service-preview-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.service-preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-preview-card .service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Animaciones */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--accent-color), #e0a800);
  color: var(--primary-color);
  padding: 4rem 3rem;
  border-radius: 30px;
  text-align: center;
  margin: 4rem 0;
}

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

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-section .btn {
  background: var(--primary-color);
  border: none;
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.cta-section .btn:hover {
  background: #0d1a2a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
}

/* Why Choose Us Section */
.why-choose-us {
  padding: 4rem 0;
}

.results-carousel-img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  border-radius: 15px !important;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.feature-text h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-text p {
  color: #6c757d;
  margin-bottom: 0;
  line-height: 1.5;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #6c757d;
  margin-bottom: 3rem;
}

/* =============================================================================
   PÁGINA DE INFORMACIÓN - ESTILOS ESPECÍFICOS
   ============================================================================= */

.info-section {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(18,34,53,0.1);
  border-left: 5px solid #122235;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(18,34,53,0.15);
}

.section-icon {
  font-size: 2.5rem;
  color: #122235;
  margin-bottom: 1rem;
}

.commitment-item {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid #122235;
  transition: all 0.3s ease;
}

.commitment-item:hover {
  background: linear-gradient(135deg, #122235 0%, #1a2f47 100%);
  color: white;
  transform: translateX(10px);
}

.contact-card {
  background: linear-gradient(135deg, #122235 0%, #1a2f47 100%);
  border-radius: 20px;
  padding: 2rem;
  color: white;
  text-align: center;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: scale(1.02);
}

.contact-item {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.payment-method {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.payment-method:hover {
  border-color: #122235;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(18,34,53,0.15);
}

.payment-icon {
  font-size: 2rem;
  color: #122235;
  margin-bottom: 1rem;
}

.highlight-box {
  background: linear-gradient(135deg, #f4e2d8 0%, #e8d5c4 100%);
  border-radius: 15px;
  padding: 2rem;
  border: 2px solid #122235;
  margin: 2rem 0;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Tablas de precios */
.table {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table thead th {
  background: linear-gradient(135deg, #122235 0%, #1a2f47 100%) !important;
  color: white !important;
  border: none !important;
  font-weight: 600;
}

.table tbody td {
  vertical-align: middle;
  padding: 1rem;
}

.table-hover tbody tr:hover {
  background-color: rgba(18, 34, 53, 0.05);
}

.table .badge {
  font-size: 0.9rem !important;
  padding: 0.5rem 0.75rem;
}