/**
 * SERVITECH - Custom Styles
 * Paleta de colores basada en el diseño original
 * Azul oscuro: #0A2647
 * Amarillo: #FFD700
 * Rojo: #DC3545
 */

:root {
  /* Colores principales */
  --primary-blue: #0A2647;
  --primary-yellow: #FFD700;
  --primary-red: #DC3545;
  --secondary-blue: #144272;
  --light-blue: #2C74B3;
  
  /* Colores de soporte */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --dark-gray: #343A40;
  --text-dark: #212529;
  
  /* Tipografía */
  --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Montserrat', 'Roboto', sans-serif;
  
  /* Espaciado */
  --section-padding: 80px;
  --section-padding-mobile: 50px;
}

/* Global Styles */
body {
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Utility Classes */
.bg-primary-blue {
  background-color: var(--primary-blue) !important;
}

.bg-primary-yellow {
  background-color: var(--primary-yellow) !important;
}

.bg-primary-red {
  background-color: var(--primary-red) !important;
}

.text-primary-blue {
  color: var(--primary-blue) !important;
}

.text-primary-yellow {
  color: var(--primary-yellow) !important;
}

.text-primary-red {
  color: var(--primary-red) !important;
}

/* Navigation */
.navbar {
  background-color: var(--primary-blue) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary-yellow) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar-brand:hover {
  color: var(--white) !important;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-yellow) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-yellow);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 35px,
      rgba(255, 255, 255, 0.03) 35px,
      rgba(255, 255, 255, 0.03) 70px
    );
  pointer-events: none;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary-yellow);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--white);
}

.btn-primary-custom {
  background-color: var(--primary-yellow);
  border: none;
  color: var(--primary-blue);
  font-weight: 700;
  padding: 15px 40px;
  font-size: 1.1rem;
  border-radius: 50px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary-custom:hover {
  background-color: var(--white);
  color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-outline-custom {
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 600;
  padding: 15px 40px;
  font-size: 1.1rem;
  border-radius: 50px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  background-color: transparent;
}

.btn-outline-custom:hover {
  background-color: var(--white);
  color: var(--primary-blue);
  border-color: var(--white);
}

/* Section Styles */
.section {
  padding: var(--section-padding) 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-blue);
  text-align: center;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-yellow) 0%, var(--primary-red) 100%);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Service Cards */
.service-card {
  background: var(--white);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-yellow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--primary-yellow);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: rotate(360deg);
  background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-red) 100%);
  color: var(--primary-blue);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-blue);
}

.service-card p {
  color: #6c757d;
  margin-bottom: 0;
}

/* Features Section */
.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-blue);
  flex-shrink: 0;
  margin-right: 20px;
}

.feature-content h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-blue);
}

.feature-content p {
  color: #6c757d;
  margin-bottom: 0;
}

/* Testimonial Cards */
.testimonial-card {
  background: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.testimonial-rating {
  color: var(--primary-yellow);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.testimonial-text {
  font-style: italic;
  color: #6c757d;
  margin-bottom: 20px;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 15px;
}

.testimonial-info h5 {
  margin-bottom: 5px;
  font-size: 1rem;
  color: var(--primary-blue);
}

.testimonial-info p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #6c757d;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  padding: 60px 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-yellow);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

/* Map Section */
.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

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

.footer h5 {
  color: var(--primary-yellow);
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer p,
.footer ul li {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.footer-icon {
  color: var(--primary-yellow);
  margin-right: 10px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-yellow);
  color: var(--primary-blue);
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 30px;
  text-align: center;
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: var(--white);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8);
  }
}

/* Breadcrumbs */
.breadcrumb {
  background-color: transparent;
  padding: 20px 0;
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: var(--primary-blue);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #6c757d;
}

/* FAQ Section */
.accordion-button {
  background-color: var(--light-gray);
  color: var(--primary-blue);
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-yellow);
  color: var(--primary-blue);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

/* Responsive Styles */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--secondary-blue);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
  }
  
  .navbar-nav .nav-link {
    margin: 10px 0;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 50px;
  }
  
  .hero-section {
    padding: 80px 0 50px;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .btn-primary-custom,
  .btn-outline-custom {
    padding: 12px 30px;
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .whatsapp-float,
  .footer {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-yellow);
  color: var(--primary-blue);
  padding: 8px;
  text-decoration: none;
  font-weight: bold;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
