/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #374151;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Utility Classes */
.text-red {
  color: #d72323;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-title.white {
  color: white;
}

/* Scrollbar Hide */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-down {
  animation: slideDown 1s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

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

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.5s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.nav-logo .logo-img {
  height: 3.5rem;
  width: auto;
  transition: opacity 0.5s ease;
  opacity: 0;
}

.navbar.scrolled .logo-img {
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
}

.navbar.scrolled .nav-link {
  color: #374151;
}

.nav-link:hover,
.nav-link:focus {
  color: #d72323;
  outline: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar.scrolled .mobile-menu-btn {
  color: #374151;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.mobile-link {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.mobile-link:hover,
.mobile-link:focus {
  color: #d72323;
  outline: none;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 42rem;
}

.hero-logo {
  margin-bottom: 2rem;
}

.hero-logo-img {
  width: 330px;
  height: 111px;
  max-width: 100%;
  height: auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.25rem;
  color: #e5e7eb;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-btn {
  background: #d72323;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-btn:hover,
.hero-btn:focus {
  background: #b91c1c;
  transform: scale(1.05);
  outline: 2px solid #d72323;
  outline-offset: 2px;
}

/* Carousel Section */
.carousel-section {
  padding: 4rem 0;
  background: #f9fafb;
}

.carousel-container {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
}

.carousel {
  position: relative;
  height: 33.6rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: all 0.7s ease;
  transform: scale(1.05);
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.carousel-slide:hover img {
  transform: scale(1.1);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #374151;
}

.carousel-btn:hover,
.carousel-btn:focus {
  background: white;
  transform: translateY(-50%) scale(1.1);
  outline: 2px solid #d72323;
  outline-offset: 2px;
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

.carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover,
.indicator:focus {
  background: #d72323;
  outline: 2px solid rgba(215, 35, 35, 0.3);
  outline-offset: 2px;
}

/* About Section */
.about {
  padding: 5rem 0;
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.about-content .section-title {
  text-align: left;
  font-size: 2.5rem;
  color: #374151;
}

.about-text {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.counter {
  text-align: center;
}

.counter-number {
  font-size: 3rem;
  font-weight: bold;
  color: #d72323;
  margin-bottom: 0.5rem;
}

.counter-label {
  color: #6b7280;
  font-weight: 500;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background: #222831;
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-description {
  font-size: 1.25rem;
  color: #d1d5db;
  max-width: 48rem;
  margin: 0 auto;
}

.services-grid {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.service-card {
  flex-shrink: 0;
  width: 20rem;
  background: #222831;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-card:hover,
.service-card:focus-within {
  background: #374151;
  transform: scale(1.05);
}

.service-image {
  height: 12rem;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.service-icon {
  width: 2rem;
  height: 2rem;
  color: #d72323;
  margin-right: 0.75rem;
  font-size: 2rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
}

.service-description {
  color: #d1d5db;
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: white;
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-description {
  font-size: 1.25rem;
  color: #6b7280;
}

.contact-form-container {
  margin-bottom: 4rem;
}

.contact-form-wrapper {
  background: #222831;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.form-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-form {
  max-width: 64rem;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #6b7280;
  background: #000000;
  color: white;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #d72323;
  box-shadow: 0 0 0 3px rgba(215, 35, 35, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  text-align: center;
}

.submit-btn {
  background: #d72323;
  color: white;
  padding: 1rem 3rem;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover,
.submit-btn:focus {
  background: #b91c1c;
  transform: scale(1.05);
  outline: 2px solid #d72323;
  outline-offset: 2px;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-header {
  margin-bottom: 2rem;
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #374151;
  margin-bottom: 1.5rem;
}

.contact-info-description {
  color: #6b7280;
  line-height: 1.6;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background: #d72323;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.contact-label {
  font-weight: 600;
  color: #374151;
}

.contact-value {
  color: #6b7280;
}

.contact-value a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-value a:hover,
.contact-value a:focus {
  color: #d72323;
  text-decoration: underline;
}

.map-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #374151;
}

.map-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.map-iframe {
  width: 100%;
  height: 24rem;
}

/* WhatsApp Section */
.whatsapp-section {
  padding: 3rem 0;
  background: #f9fafb;
  text-align: center;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #25d366;
  color: white;
  padding: 1rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.whatsapp-btn:hover,
.whatsapp-btn:focus {
  background: #128c7e;
  transform: scale(1.05);
  outline: 2px solid #25d366;
  outline-offset: 2px;
}

.whatsapp-btn i {
  font-size: 1.5rem;
}

/* Partners Section */
.partners-section {
  padding: 4rem 0;
  background: white;
  text-align: center;
}

.partners-description {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 48rem;
  margin: 0 auto 3rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.partner-item {
  position: relative;
  padding: 2rem;
  background: #f9fafb;
  border-radius: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.partner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: white;
}

.partner-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.partner-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.partner-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-item:hover .partner-logo img {
  transform: scale(1.1);
}

.partner-icon {
  font-size: 3rem;
  color: #d72323;
  transition: transform 0.3s ease;
}

.partner-item:hover .partner-icon {
  transform: scale(1.1);
}

.partner-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin-top: 0.5rem;
}

/* Tooltip */
.partner-item::before {
  content: attr(data-tooltip);
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #374151;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
}

.partner-item::after {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #374151;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.partner-item:hover::before,
.partner-item:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Social Section */
.social-section {
  padding: 4rem 0;
  background: #f9fafb;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-link {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.social-link:hover,
.social-link:focus {
  transform: scale(1.1);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.social-link.facebook {
  background: #1877f2;
}

.social-link.facebook:hover {
  background: #166fe5;
}

.social-link.instagram {
  background: #e4405f;
}

.social-link.instagram:hover {
  background: #d73652;
}

.social-link.linkedin {
  background: #0a66c2;
}

.social-link.linkedin:hover {
  background: #095bb5;
}

.social-link.twitter {
  background: #1da1f2;
}

.social-link.twitter:hover {
  background: #1a94da;
}

/* Footer */
.footer {
  background: #222831;
  color: white;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-company {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  height: 3.5rem;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: #d72323;
  margin-bottom: 1rem;
}

.footer-description {
  color: #9ca3af;
  line-height: 1.6;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-size: 1rem;
}

.footer-link:hover,
.footer-link:focus {
  color: white;
  outline: none;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.footer-social-link:hover,
.footer-social-link:focus {
  color: white;
  outline: none;
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright,
.footer-credits {
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu.active {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-logo-img {
    width: 250px;
    height: 84px;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-content .section-title {
    text-align: center;
  }

  .counters {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .social-links {
    flex-wrap: wrap;
  }

  .footer-social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .carousel {
    height: 20rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .counter-number {
    font-size: 2rem;
  }

  .service-card {
    width: 18rem;
  }

  .social-links {
    gap: 1rem;
  }

  .social-link {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
  }

  .partners-grid {
    gap: 1rem;
  }

  .partner-logo {
    height: 60px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .carousel-section,
  .whatsapp-section,
  .social-section,
  .partners-section {
    display: none;
  }

  .hero {
    height: auto;
    padding: 2rem 0;
  }

  .hero-background {
    display: none;
  }

  .hero-content {
    color: black;
  }

  .hero-title {
    color: black;
  }

  .hero-description {
    color: #666;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .hero-overlay {
    background: rgba(0, 0, 0, 0.8);
  }

  .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
  }

  .mobile-menu {
    background: rgba(255, 255, 255, 0.98);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}
