/* =======================================================
*  ATD PERU - Modern Website Styles
*  Built with Bootstrap 5 and modern CSS
* ======================================================= */

:root {
  /* Colors - Professional Palette */
  --primary-color: #c41e3a;
  --primary-dark: #a0172e;
  --primary-light: #e74c3c;
  --primary-100: #f8d7da;
  --primary-200: #f5a5a5;
  --primary-300: #e74c3c;
  --primary-400: #c41e3a;
  --primary-500: #a0172e;

  /* Header Colors - Darker Professional Gray */
  --header-bg: #1a252f;
  --header-bg-light: #2c3e50;
  --header-bg-dark: #0f1419;

  /* CTA Section Colors - Lighter Professional Gray */
  --cta-bg: #4a5568;
  --cta-bg-light: #718096;
  --cta-bg-dark: #2d3748;

  --secondary-color: #2c3e50;
  --accent-color: #d4af37;
  --accent-green: #27ae60;

  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --text-muted: #8e9aaf;

  --bg-light: #f8f9fa;
  --bg-lighter: #fafbfc;
  --bg-dark: #2c3e50;
  --white: #ffffff;

  --border-color: #e9ecef;
  --border-light: #f1f3f4;

  /* Typography */
  --font-primary: "Montserrat", sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 0 15px;

  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

/* =======================================================
*  Base Styles
* ======================================================= */

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

/* =======================================================
*  Accessibility - Skip Links
* ======================================================= */

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--white);
  padding: 12px 16px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  font-weight: 600;
  transition: top 0.3s;
  font-size: 16px;
  border: 2px solid var(--white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.skip-link:focus {
  top: 6px;
  color: var(--white);
  text-decoration: none;
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

/* =======================================================
*  Accessibility - Focus Management
* ======================================================= */

/* High contrast focus indicators */
*:focus {
  outline: 3px solid var(--primary-color) !important;
  outline-offset: 2px !important;
}

/* Remove focus outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none !important;
}

/* Enhanced focus for keyboard users */
*:focus-visible {
  outline: 3px solid var(--primary-color) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.3) !important;
}

/* Skip link specific focus */
.skip-link:focus-visible {
  outline: 3px solid var(--white) !important;
  outline-offset: 2px !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--white) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
}

/* High contrast text for better readability */
.text-muted {
  color: #495057 !important; /* Better contrast than --text-light */
}

.text-light {
  color: #6c757d !important; /* Better contrast than original --text-light */
}

.lead {
  font-size: 1.25rem;
  font-weight: var(--font-weight-light);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

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

a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Buttons */
.btn {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  color: var(--white);
  border: none;
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
  transition: all 0.3s ease;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-color) 100%
  );
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Botones en headers con mejor contraste */
.page-header .btn-primary {
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  color: var(--header-bg);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  font-weight: 600;
  text-shadow: none;
}

.page-header .btn-primary:hover {
  background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
  color: var(--header-bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  background: transparent !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}

.btn-outline-primary:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3) !important;
}

/* Estilo específico para botones de servicios */
.service-card .btn-outline-primary {
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  background: transparent !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 25px !important;
}

.service-card .btn-outline-primary:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4) !important;
}

/* =======================================================
*  Team Gallery Carousel
* ======================================================= */
.team-gallery-swiper {
  padding: 2rem 0;
  overflow: hidden;
}

.team-gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  height: 450px;
  background: #f8f9fa;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16/9;
}

.team-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.team-gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

.team-gallery-item:hover .team-gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}

.team-gallery-item:hover img {
  transform: scale(1.05);
}

.team-gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.team-gallery-overlay h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.team-gallery-overlay p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Navigation buttons */
.team-gallery-next,
.team-gallery-prev {
  color: var(--primary-color) !important;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.team-gallery-next:hover,
.team-gallery-prev:hover {
  background: var(--primary-color);
  color: white !important;
  transform: scale(1.1);
}

.team-gallery-next:after,
.team-gallery-prev:after {
  font-size: 18px;
  font-weight: bold;
}

/* Pagination */
.team-gallery-pagination {
  position: relative;
  margin-top: 2rem;
}

.team-gallery-pagination .swiper-pagination-bullet {
  background: rgba(196, 30, 58, 0.3);
  opacity: 1;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  transition: var(--transition);
}

.team-gallery-pagination .swiper-pagination-bullet-active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
  .team-gallery-item {
    height: 350px;
    max-width: 100%;
    margin: 0 1rem;
    aspect-ratio: 16/9;
  }

  .team-gallery-overlay {
    padding: 1.5rem 1rem 1rem;
  }

  .team-gallery-overlay h5 {
    font-size: 1.2rem;
  }

  .team-gallery-overlay p {
    font-size: 0.9rem;
  }

  .team-gallery-next,
  .team-gallery-prev {
    width: 45px;
    height: 45px;
    margin-top: -22px;
  }

  .team-gallery-next:after,
  .team-gallery-prev:after {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .team-gallery-item {
    height: 300px;
    margin: 0 0.5rem;
    aspect-ratio: 16/9;
  }

  .team-gallery-overlay h5 {
    font-size: 1.1rem;
  }

  .team-gallery-overlay p {
    font-size: 0.85rem;
  }
}

/* =======================================================
*  Layout & Sections
* ======================================================= */

.section-padding {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  display: block;
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* =======================================================
*  Navigation
* ======================================================= */

.navbar {
  padding: 0.75rem 0;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.navbar-brand img {
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  max-height: 60px;
  width: auto;
}

.navbar-brand img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.navbar-nav .nav-link {
  font-weight: var(--font-weight-medium);
  color: var(--text-dark) !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: 25px;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(196, 30, 58, 0.1);
  font-weight: 600;
}

.iso-badges .badge {
  font-size: 0.7rem;
  padding: 0.5rem 0.75rem;
  border-radius: 15px;
  font-weight: var(--font-weight-medium);
}

/* =======================================================
*  Hero Section
* ======================================================= */

.hero-section {
  height: 35vh;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.hero-swiper {
  height: 100%;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 8vh;
  padding-bottom: 4vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9);
  line-height: 1.2;
  text-align: center;
  background: transparent;
  padding: 15px 25px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
  line-height: 1.3;
  text-align: center;
  background: transparent;
  padding: 10px 20px;
  border-radius: 8px;
  backdrop-filter: blur(3px);
}

.hero-content .btn {
  font-size: 1rem;
  padding: 12px 30px;
  font-weight: var(--font-weight-semibold);
  text-shadow: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
  color: var(--white);
  background: rgba(253, 38, 38, 0.8);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: var(--transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.swiper-pagination-bullet {
  background: var(--white);
  opacity: 0.7;
}

.swiper-pagination-bullet-active {
  background: var(--primary-color);
  opacity: 1;
}

/* =======================================================
*  About Section
* ======================================================= */

.about-content {
  padding-right: 2rem;
}

.about-image img {
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  display: block;
}

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

/* =======================================================
*  Mission Vision Section
* ======================================================= */

.mission-card,
.vision-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--bg-lighter) 100%);
  border: 1px solid var(--border-light);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.08);
  transition: var(--transition);
  height: 100%;
}

.mission-card:hover,
.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Clase eliminada - usar p-4 de Bootstrap en su lugar */

.icon-wrapper {
  width: 100px;
  height: 100px;
  background: linear-gradient(
    135deg,
    var(--primary-100) 0%,
    rgba(196, 30, 58, 0.1) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 2px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(196, 30, 58, 0.1);
}

.icon-wrapper i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

/* =======================================================
*  Services Section
* ======================================================= */

.service-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--bg-lighter) 100%);
  border: 1px solid var(--border-light);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.08);
  transition: var(--transition);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 75px;
  height: 75px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
  border: 2px solid var(--white);
}

.service-icon i {
  font-size: 1.875rem;
  color: var(--white);
}

/* Clase eliminada - usar p-4 de Bootstrap en su lugar */

/* =======================================================
*  Stats Section
* ======================================================= */

#stats {
  position: relative;
  background-attachment: fixed;
}

#stats .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}

.stat-counter {
  padding: 2rem 1rem;
}

.counter-number {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  color: var(--white);
  display: block;
  margin-bottom: 0.5rem;
}

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

/* =======================================================
*  Map Section
* ======================================================= */

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

#peru-map {
  border-radius: 10px;
}

.map-popup {
  min-width: 200px;
}

.map-popup h6 {
  color: var(--primary-color);
  font-size: 1rem;
}

.map-popup ul {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* =======================================================
*  Partners Section
* ======================================================= */

.partners-carousel {
  padding: 2rem 0;
}

.partner-logo {
  max-width: 189.75px;
  height: auto;
  filter: grayscale(0%);
  transition: var(--transition);
  opacity: 1;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.15);
}

/* =======================================================
*  Footer
* ======================================================= */

.footer {
  background: var(--bg-dark);
}

.footer h5 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: var(--font-weight-semibold);
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* =======================================================
*  Back to Top Button
* ======================================================= */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.back-to-top.show {
  display: flex;
}

/* =======================================================
*  Loading Spinner
* ======================================================= */

.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-wrapper.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* =======================================================
*  Responsive Design
* ======================================================= */

@media (max-width: 991.98px) {
  /* Evitar jank en móviles por parallax */
  #stats {
    background-attachment: scroll;
  }

  .hero-section {
    height: 40vh;
    min-height: 350px;
  }

  .hero-content {
    padding-top: 6vh;
    padding-bottom: 3vh;
  }

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

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-content .btn {
    font-size: 0.9rem;
    padding: 10px 25px;
  }

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

  .about-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .iso-badges {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    height: 45vh;
    min-height: 300px;
  }

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

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

  .hero-content {
    padding-top: 4vh;
    padding-bottom: 2vh;
  }

  .hero-content .btn {
    font-size: 0.85rem;
    padding: 8px 20px;
  }

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

  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }

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

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

@media (max-width: 575.98px) {
  .hero-section {
    height: 50vh;
    min-height: 250px;
  }

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

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-content {
    padding-top: 3vh;
    padding-bottom: 1.5vh;
  }

  .hero-content .btn {
    font-size: 0.8rem;
    padding: 6px 16px;
  }

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

  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* =======================================================
*  Utility Classes
* ======================================================= */

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

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}
.shadow {
  box-shadow: var(--shadow) !important;
}
.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.transition {
  transition: var(--transition) !important;
}
.transition-fast {
  transition: var(--transition-fast) !important;
}

/* =======================================================
*  Animation Classes
* ======================================================= */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* =======================================================
*  Page Header Styles
* ======================================================= */

.page-header {
  background: linear-gradient(
    135deg,
    var(--header-bg) 0%,
    var(--header-bg-light) 50%,
    var(--header-bg) 100%
  ) !important;
  position: relative;
  overflow: hidden;
  color: #ffffff !important;
}

.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4,
.page-header h5,
.page-header h6 {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p,
.page-header .lead {
  color: #f8f9fa !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Override bg-primary for page headers to use gray instead of red */
.bg-primary.page-header {
  background: linear-gradient(
    135deg,
    var(--header-bg) 0%,
    var(--header-bg-light) 50%,
    var(--header-bg) 100%
  ) !important;
}

.bg-primary.page-header h1,
.bg-primary.page-header h2,
.bg-primary.page-header h3,
.bg-primary.page-header h4,
.bg-primary.page-header h5,
.bg-primary.page-header h6 {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-primary.page-header p,
.bg-primary.page-header .lead {
  color: #f8f9fa !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Override bg-primary for CTA sections to use lighter gray instead of red */
.bg-primary {
  background: linear-gradient(
    135deg,
    var(--cta-bg) 0%,
    var(--cta-bg-light) 50%,
    var(--cta-bg) 100%
  ) !important;
  color: #ffffff !important;
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6 {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-primary p,
.bg-primary .lead {
  color: #f8f9fa !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bg-primary .btn-primary {
  background: linear-gradient(135deg, #c41e3a 0%, #e74c3c 100%) !important;
  color: #ffffff !important;
  border: 2px solid #c41e3a !important;
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3) !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.bg-primary .btn-primary:hover {
  background: linear-gradient(135deg, #a0172e 0%, #c41e3a 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4) !important;
  border-color: #a0172e !important;
}

.page-header::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.12)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.8;
}

.page-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 70%
  );
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

/* =======================================================
*  Timeline Styles
* ======================================================= */

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--primary-color) 0%,
    var(--primary-light) 50%,
    var(--primary-color) 100%
  );
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 1.2rem;
  height: 1.2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.timeline-marker {
  position: absolute;
  left: -3rem;
  top: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: var(--font-weight-bold);
  font-size: 0.9rem;
  box-shadow: 0 3px 10px rgba(196, 30, 58, 0.4);
  border: 2px solid var(--white);
}

.timeline-content {
  background: linear-gradient(135deg, var(--white) 0%, var(--bg-lighter) 100%);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.1);
  border: 1px solid var(--border-light);
  position: relative;
}

.timeline-content::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 1rem;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid var(--white);
}

.timeline-content h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* =======================================================
*  Identity Cards
* ======================================================= */

.identity-card {
  background: var(--white);
  border: none;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.identity-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.values-list {
  list-style: none;
  padding: 0;
}

.values-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.values-list li:last-child {
  border-bottom: none;
}

/* =======================================================
*  Team Member Styles
* ======================================================= */

.team-member {
  padding: 1rem;
}

.member-photo img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 4px solid var(--primary-color);
}

/* =======================================================
*  Certification Cards
* ======================================================= */

.certification-card {
  background: var(--white);
  border: none;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.certification-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.certification-icon {
  width: 80px;
  height: 80px;
  background: rgba(253, 38, 38, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.certification-icon i {
  font-size: 2.5rem;
}

/* =======================================================
*  Contact Styles
* ======================================================= */

.contact-info {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

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

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(253, 38, 38, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.5rem;
}

.contact-details h5 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.contact-details p {
  margin-bottom: 0;
}

.contact-form-wrapper {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

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

.form-label {
  font-weight: var(--font-weight-medium);
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(253, 38, 38, 0.25);
}

/* =======================================================
*  Map Container
* ======================================================= */

.map-container {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrapper {
  position: relative;
}

/* =======================================================
*  FAQ Accordion
* ======================================================= */

.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-button {
  background: var(--white);
  border: none;
  padding: 1.5rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-dark);
}

.accordion-button:not(.collapsed) {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border: none;
}

.accordion-body {
  padding: 1.5rem;
  background: var(--white);
}

/* =======================================================
*  Service Detail Styles
* ======================================================= */

.service-detail {
  padding: 3rem 0;
}

.service-content {
  padding-right: 2rem;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
}

.service-features li i {
  margin-right: 0.75rem;
  color: var(--primary-color);
}

.service-image img {
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}

/* =======================================================
*  Advantage Cards
* ======================================================= */

.advantage-card {
  background: var(--white);
  padding: 2rem 1rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.advantage-icon {
  width: 60px;
  height: 60px;
  background: rgba(253, 38, 38, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.advantage-icon i {
  font-size: 1.5rem;
}

/* =======================================================
*  Project Styles
* ======================================================= */

.project-filters {
  margin-bottom: 2rem;
}

.filter-btn {
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-weight: var(--font-weight-medium);
  transition: var(--transition);
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  background: transparent !important;
}

.filter-btn:hover {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.filter-btn.active {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.filter-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.25);
}

.project-card {
  background: var(--white);
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(253, 38, 38, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay i {
  color: var(--white);
  font-size: 2rem;
}

.project-info {
  padding: 1.5rem;
}

.project-details {
  margin: 1rem 0;
}

.detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.detail-item i {
  margin-right: 0.5rem;
  width: 16px;
}

/* =======================================================
*  Job Card Styles
* ======================================================= */

.job-card {
  background: var(--white);
  border: none;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.job-requirements {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-requirements li {
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.job-requirements li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* =======================================================
*  Benefit Item Styles
* ======================================================= */

.benefit-item {
  padding: 2rem 1rem;
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: rgba(253, 38, 38, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.benefit-icon i {
  font-size: 1.5rem;
}

/* =======================================================
*  Process Step Styles
* ======================================================= */

.process-step {
  padding: 2rem 1rem;
}

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

/* =======================================================
*  Culture Feature Styles
* ======================================================= */

.culture-features {
  margin-top: 2rem;
}

.culture-feature {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.culture-feature i {
  margin-right: 0.75rem;
  color: var(--primary-color);
}

/* =======================================================
*  Print Styles
* ======================================================= */

@media print {
  .navbar,
  .back-to-top,
  .loader-wrapper {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .hero-section {
    height: auto;
    min-height: auto;
  }

  .hero-content {
    padding-top: 2rem;
  }

  .hero-title {
    color: var(--text-dark);
    text-shadow: none;
  }

  .hero-subtitle {
    color: var(--text-light);
    text-shadow: none;
  }
}

/* Estilos específicos para botones en CTA */
.bg-primary .btn-outline-light {
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  background: transparent !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease !important;
  border-radius: 8px !important;
}

.bg-primary .btn-outline-light:hover {
  background: #ffffff !important;
  color: #6c757d !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3) !important;
  border-color: #ffffff !important;
}
