/* ========== VARIABLES ========== */
:root {
  --primary-color: #FAA945;
  --secondary-color: #044D75;
  --accent-color: #EF4C5B;
  --text-color: #333;
  --light-color: #fff;
  --dark-color: #222;
  --overlay-color: rgba(0, 0, 0, 0.6);
  --social-icon-size: 40px;
  --transition-speed: 0.3s;
  --menu-bg: rgba(0, 0, 0, 0.7);
  --mobile-menu-bg: rgba(0, 0, 0, 0.9);
  --design-bg-color: rgba(255, 255, 255, 0.9);
  --design-overlay-color: rgba(255, 255, 255, 0.7);
  --design-accent-color: #008080;
  --design-text-color: #333;
  --design-nav-bg: #f9f9f9;
  --design-nav-hover-bg: #e0f0f0;
  --design-nav-active-bg: #d0f4f4;
  --design-arrow-color: #008080;
}

/* ========== BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* ========== LOADING SCREEN ========== */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--light-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.spinner {
  width: 70px;
  height: 70px;
  border: 8px solid rgba(0, 168, 128, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== HEADER & NAVIGATION ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: 1000;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-speed) ease;
}

header.scrolled {
  background-color: var(--menu-bg);
  padding: 0.5rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  height: clamp(50px, 7vw, 80px);
  min-height: 50px;
  transition: all var(--transition-speed) ease;
  z-index: 1001;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 100%;
  width: auto;
  max-width: min(100%, 180px);
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
}

.desktop-nav > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav > ul > li {
  position: relative;
  margin: 0 12px;
}

.desktop-nav a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 10px 5px;
  position: relative;
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
}

.desktop-nav a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 5px;
  left: 0;
  background-color: var(--light-color);
  transition: width var(--transition-speed) ease;
}

.desktop-nav a:hover::after {
  width: 100%;
}

.desktop-nav a i {
  margin-right: 8px;
  font-size: 0.9rem;
}

/* Submenu Styles */
.desktop-nav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-speed) ease;
  z-index: 100;
  border-radius: 5px;
  padding: 10px 0;
  list-style: none;
}

.desktop-nav > ul > li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.desktop-nav .submenu li {
  padding: 5px 15px;
}

.desktop-nav .submenu a {
  padding: 8px 0;
  font-size: 0.85rem;
  text-transform: none;
}

.desktop-nav .has-submenu > a .fa-chevron-down {
  margin-left: 8px;
  font-size: 0.7rem;
  transition: transform var(--transition-speed) ease;
}

.desktop-nav .has-submenu:hover > a .fa-chevron-down {
  transform: rotate(180deg);
}

/* Social Icons */
.social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 25px;
  position: relative;
  z-index: 1001;
}

.social-icon {
  width: var(--social-icon-size);
  height: var(--social-icon-size);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--light-color);
  transition: all var(--transition-speed) ease;
  text-decoration: none;
  border: 1px solid var(--light-color);
  background-color: transparent;
  font-size: 0.9rem;
}

.social-icon:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

/* ========== MOBILE MENU ========== */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1100;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hamburger i {
  position: absolute;
  font-size: 1.8rem;
  color: var(--light-color);
  transition: all var(--transition-speed) ease;
}

.hamburger .fa-bars {
  opacity: 1;
  transform: rotate(0deg);
}

.hamburger .fa-times {
  opacity: 0;
  transform: rotate(-90deg);
}

.hamburger.active .fa-bars {
  opacity: 0;
  transform: rotate(90deg);
}

.hamburger.active .fa-times {
  opacity: 1;
  transform: rotate(0deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  background-color: var(--mobile-menu-bg);
  z-index: 1050;
  padding: 80px 25px 30px;
  overflow-y: auto;
  transition: right var(--transition-speed) ease;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu > ul > li {
  margin-bottom: 8px;
}

.mobile-menu a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  transition: all var(--transition-speed) ease;
  border-radius: 5px;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}

.mobile-menu a i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.mobile-menu .submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease;
  padding-left: 15px;
  background-color: rgba(0, 0, 0, 0.15);
}

.mobile-menu .submenu.show {
  max-height: 500px;
}

.mobile-menu .submenu a {
  font-size: 0.9rem;
  padding: 10px 15px;
}

.mobile-menu .has-submenu > a::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: auto;
  transition: transform var(--transition-speed) ease;
  font-size: 0.8rem;
}

.mobile-menu .has-submenu > a.active::after {
  content: '\f078';
  transform: rotate(180deg);
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--light-color);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1051;
}

/* ========== HERO SLIDER ========== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--light-color);
}

.slide.active {
  opacity: 1;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-color);
}

.slide-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
  margin-bottom: 100px;
}

.slide h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.slide .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 30px;
  position: relative;
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
}

.slide .subtitle::before,
.slide .subtitle::after {
  content: "──────";
  margin: 0 15px;
  opacity: 0.7;
}

.progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  z-index: 10;
}

.progress-bar {
  height: 100%;
  width: 0;
  background-color: var(--primary-color);
  animation: progress 5s linear forwards;
}

@keyframes progress {
  0% { width: 0; }
  100% { width: 100%; }
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1;
}

.slider-nav button {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: var(--light-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-nav button:hover {
  background: rgba(255, 255, 255, 0.6);
}

.start-button {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  border: 1px solid var(--light-color);
  background-color: transparent;
  color: var(--light-color);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 30px;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.start-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* ========== CONTACT SECTION ========== */
.contact-section {
  background-color: var(--light-color);
  padding: 50px 0;
  color: var(--text-color);
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.contact-content h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 15px;
  text-transform: uppercase;
  color: var(--dark-color);
}

.contact-text {
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.focus-frame2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #FFE258;
  border-radius: 50%;
  width: 60px;
  height: 60px;
}

.focus-icon2 {
  font-size: 24px;
  color: #FFE258;
}

.focus-frame {
  margin: 20px auto;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.focus-icon {
  font-size: 1.8rem;
  margin: 0 15px;
  color: var(--accent-color);
}

.focus-frame::before,
.focus-frame::after {
  content: "──────";
  color: var(--accent-color);
  opacity: 0.6;
}

.white-lines::before,
.white-lines::after {
  color: #ffffff;
}

.contact-form {
  max-width: 800px;
  margin: 30px auto 0;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  transition: all var(--transition-speed) ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(250, 169, 69, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.is-invalid {
  border-color: var(--accent-color) !important;
}

.submit-btn {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 30px 12px 50px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  background-color: #d43f4e;
  transform: translateY(-2px);
}

.submit-btn .btn-text {
  position: relative;
  z-index: 1;
}

.submit-btn .spinner {
  display: none;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

.submit-btn .icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.submit-btn.loading .icon {
  display: none;
}

.submit-btn.loading .spinner {
  display: block;
}

.submit-btn.loading .btn-text {
  padding-right: 25px;
}

@keyframes ellipsis {
  0% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}

.submit-btn.loading .btn-text::after {
  content: '...';
  animation: ellipsis 1.5s infinite;
  display: inline-block;
  width: 20px;
  text-align: left;
}

/* ============ NUESTROS VALORES SECTION ============ */
.valores-intro {
  color: #fff;
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 1000px;
  margin: 0 auto 2rem auto;
  padding: 0 1rem;

  position: relative;   /* <- NECESARIO para que z-index funcione */
  z-index: 2;            /* <- lo eleva por encima del overlay */
}

.valores-section {
  position: relative;
  background: url('../img/webp/nuestros-valores.webp') no-repeat center center / cover;
  color: white;
  padding: 80px 0;
  overflow: hidden;
}

.valores-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(239, 76, 91, 0.6);
  z-index: 1;
}

.triangles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.triangle {
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.2);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: float 20s infinite linear;
}

.triangle1 { top: 10%; left: 10%; animation-delay: 0s; }
.triangle2 { top: 40%; left: 70%; animation-delay: 5s; }
.triangle3 { top: 70%; left: 30%; animation-delay: 10s; }

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-100px) rotate(360deg); }
}

.valores-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  z-index: 3;
}

.valores-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #FFE258;
}

.valores-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.valores-mision-vision {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.valores-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: #FFE258;
  margin-bottom: 15px;
}

.valores-description {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #f0f0f0;
  text-align: justify;
}

.valores-list-container {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.valores-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.valores-list li {
  margin-bottom: 25px;
  display: flex;
  align-items: flex-start;
}

.valores-list-title {
  font-weight: 700;
  color: #FFE258;
  min-width: 130px;
  display: inline-block;
  position: relative;
  padding-right: 10px;
  font-size: 1.1rem;
}

.valores-list-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #f1c40f;
  transition: width 0.3s ease;
}

.valores-list li:hover .valores-list-title::after {
  width: 100%;
}

.valores-list-text {
  text-align: justify;
  font-weight: 400;
  font-size: 0.95rem;
  flex: 1;
  color: #f0f0f0;
}

/* ========== SOCIAL MEDIA SECTION ========== */
.social-media-section {
  position: relative;
  width: 100%;
  min-height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--light-color);
  padding: 80px 20px;
}

.social-media-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-color);
}

.social-media-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.social-media-content h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 30px;
  text-transform: uppercase;
}

.social-media-text {
  margin-bottom: 40px;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.social-media-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-media-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--light-color);
  font-size: 1.2rem;
  transition: all var(--transition-speed) ease;
  text-decoration: none;
  border: 1px solid var(--light-color);
  background-color: transparent;
}

.social-media-icon:hover {
  transform: translateY(-5px);
  opacity: 0.9;
}

/* ========== FOOTER ========== */
footer {
  background-color: var(--light-color);
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.made-with {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 1rem;
}

.heart {
  color: var(--accent-color);
  margin: 0 5px;
}

.copyright {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(0, 168, 128, 0.8);
  color: var(--light-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

/* ========== ALERT STYLES ========== */
#alert-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

#alert-container .alert {
  padding: 15px 20px;
  border-radius: 5px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: alertAppear 0.3s ease-out forwards;
  font-size: 0.95rem;
  font-weight: 500;
  background-color: var(--alert-bg, transparent) !important;
  border-left: var(--alert-border, none) !important;
}

#alert-container .alert-success {
  --alert-bg: #28a745;
  --alert-border: 5px solid #218838;
}

#alert-container .alert-error {
  --alert-bg: #dc3545;
  --alert-border: 5px solid #c82333;
}

.alert-message {
  flex: 1;
}

.alert-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 15px;
}

@keyframes alertAppear {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 1200px) {
  .logo {
    height: clamp(45px, 6.5vw, 70px);
  }
  
  header.scrolled .logo {
    height: clamp(35px, 5vw, 60px);
  }
}

@media (max-width: 992px) {
  .desktop-nav, .social-icons {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .slide .subtitle::before,
  .slide .subtitle::after {
    margin: 0 10px;
  }
  
  .social-media-section {
    min-height: 60vh;
    padding: 60px 20px;
  }
}

@media (max-width: 768px) {
  .valores-title {
    font-size: 2rem;
  }
  
  .valores-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .valores-mision-vision,
  .valores-list-container {
    max-width: 100%;
  }

  header {
    padding: 0.8rem 1.5rem;
  }
  
  .logo {
    height: 50px;
  }
  
  header.scrolled .logo {
    height: 40px;
  }
  
  .mobile-menu {
    width: 90%;
    padding-top: 70px;
  }
  
  .slide .subtitle::before,
  .slide .subtitle::after {
    content: "───";
    margin: 0 8px;
  }
  
  .focus-frame::before,
  .focus-frame::after {
    content: "───";
  }
  
  .start-button {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .contact-section {
    padding: 40px 0;
  }
  
  .social-media-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 1rem;
    bottom: 20px;
    right: 20px;
  }

  #alert-container {
    top: 80px;
    left: 20px;
    right: 20px;
    max-width: calc(100% - 40px);
  }

  .about-columns {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .slide-content {
    margin-bottom: 80px;
  }
  
  .slider-nav button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .contact-form {
    margin-top: 20px;
  }
  
  .submit-btn {
    width: 100%;
    padding: 12px 20px;
  }
  
  .social-media-icons {
    gap: 15px;
  }
}

/* ========== ABOUT SECTION ========== */
.about-section {
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
  color: #fff;
  text-align: center;
}

.about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 40, 0.6);
  z-index: -1;
}

.about-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.about-title h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #FFE258;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.about-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 1000px;
  text-align: justify;
  margin-bottom: 50px;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

.about-highlight {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid #FFE258;
  padding: 30px 20px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  max-width: 280px;
}

.highlight-subtitle {
  font-size: 1rem;
  line-height: 1.5;
  color: #ffffff;
}

.highlight-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFE258;
  margin-bottom: 10px;
}

.about-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../assets/img/webp/city_background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -2;
}

.about-background::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: rgba(249, 219, 66, 0.963);
  clip-path: polygon(0 70%, 100% 0, 100% 100%, 0% 100%);
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

.about-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.about-columns {
  display: flex;
  gap: 40px;
  margin-top: 50px;
}

.about-column {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.8;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-column.visible {
  opacity: 1;
  transform: translateY(0);
}

.highlight-box {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 30px;
  margin-top: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.highlight-box p:first-child {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.highlight-box p:last-child {
  font-size: 1.4rem;
  line-height: 1.4;
}

/* Efecto de scroll suave para todas las secciones */
html {
  scroll-behavior: smooth;
}

/* ========== SERVICES SECTION ========== */
.services-section {
  position: relative;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #044D75 0%, #00A880 100%);
  overflow: hidden;
  color: white;
}

.services-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.services-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #FFE258, transparent);
}

.services-tabs {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin: 0 auto 3rem;
}

.service-tab-btn {
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  text-align: center;
  backdrop-filter: blur(5px);
  border-radius: 8px;
  margin-bottom: 10px;
}

.service-tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 88, 0.3), transparent);
  transition: 0.5s;
}

.service-tab-btn:hover::before {
  left: 100%;
}

.service-tab-btn.active {
  background: rgba(239, 76, 91, 0.8);
  box-shadow: 0 4px 15px rgba(239, 76, 91, 0.4);
}

.sub-tabs-container {
  max-width: 1000px;
  margin: 0 auto;
}

.sub-tabs-header {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sub-tab-btn {
  padding: 0.8rem 1.5rem;
  background: transparent;
  border: 2px solid #FFE258;
  color: #FFE258;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}

.sub-tab-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 226, 88, 0.2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
  z-index: -1;
}

.sub-tab-btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.sub-tab-btn.active {
  background: #FFE258;
  color: #044D75;
  box-shadow: 0 4px 15px rgba(255, 226, 88, 0.4);
}

.sub-tab-content {
  display: none;
  animation: fadeIn 0.5s ease forwards;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sub-tab-content.active {
  display: block;
}

.img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.img-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.transport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.transport-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.transport-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transport-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 88, 0.2), transparent);
  transition: 0.5s;
  z-index: 1;
}

.transport-item:hover::before {
  left: 100%;
}

.transport-item:hover .transport-image {
  transform: scale(1.05);
}

.transport-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.transport-label {
  position: relative;
  width: 100%;
  padding: 1rem;
  background: rgba(4, 77, 117, 0.9);
  color: white;
  font-weight: bold;
  text-align: center;
  margin-top: 0;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.sub-tab-content {
  display: none;
}

.sub-tab-content.active {
  display: block;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.particles-js-canvas-el {
  opacity: 0.3;
}

/* ========== DESIGN SECTION ========== */
.design-section {
            position: relative;
            padding: 60px 20px 80px;
            background: #0a122a;
            color: #e1e5f2;
            overflow: hidden;
        }
        
        .design-section .overlay {
            position: absolute;
            inset: 0;
            background: rgba(10, 18, 42, 0.85);
            pointer-events: none;
            z-index: 0;
        }
        
        #particles-design {
            position: absolute;
            inset: 0;
            z-index: 0;
            opacity: 0.3;
            pointer-events: none;
        }
        
        .design-section .section-title {
            font-size: 2.8rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 1.5rem;
            letter-spacing: 1.1px;
            color: #f1f3f8;
            position: relative;
            padding-bottom: 15px;
        }
        
        .design-section .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: #00aaff;
        }
        
        /* MENÚ TABS DESKTOP (MODIFICADO) */
        .design-submenu {
            display: flex;
            justify-content: center;
            margin-bottom: 2rem;
            border-bottom: 2px solid #1f2a52;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            z-index: 10;
        }
        
        .design-submenu::-webkit-scrollbar {
            display: none;
        }
        
        .design-submenu ul {
            display: flex;
            gap: 0;
            padding: 0;
            margin: 0;
            list-style: none;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .design-submenu li {
            cursor: pointer;
            font-size: 1rem;
            line-height: 1.2;
            padding: 12px 20px;
            border-bottom: 3px solid transparent;
            color: #eee;
            white-space: nowrap;
            transition: all 0.3s ease;
            user-select: none;
            margin-bottom: -2px;
            position: relative;
        }
        
        .design-submenu li.active,
        .design-submenu li:hover {
            color: white;
            background: rgba(255, 255, 255, 0.05);
        }
        
        .design-submenu li.active {
            border-bottom-color: #00aaff;
            font-weight: 600;
        }
        
        .design-submenu li::after {
            content: '';
            position: absolute;
            top: 50%;
            right: 0;
            transform: translateY(-50%);
            width: 1px;
            height: 16px;
            background: rgba(255, 255, 255, 0.2);
        }
        
        .design-submenu li:last-child::after {
            display: none;
        }
        
        /* CONTENEDOR DE CONTENIDO */
        .design-content-container {
            position: relative;
            min-height: 320px;
            z-index: 1;
        }
        
        /* CADA SUBSECCIÓN */
        .design-item {
            display: none;
            animation: fadeIn 0.5s ease forwards;
        }
        
        .design-item.active {
            display: block;
        }
        
        /* CONTENIDO INTERNO: IMAGEN + TEXTO */
        .design-inner {
            display: flex;
            gap: 2.5rem;
            align-items: center;
            flex-wrap: wrap;
        }
        
        .design-image {
            flex: 1 1 300px;
            min-width: 280px;
            max-width: 400px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
            flex-shrink: 0;
        }
        
        .design-image img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
            transition: transform 0.4s ease;
            border-radius: 12px;
        }
        
        .design-image img:hover {
            transform: scale(1.05);
        }
        
        .design-text {
            flex: 2 1 400px;
            color: #d1d7ee;
            font-size: 1.1rem;
            line-height: 1.65;
            max-width: 100%;
        }
        
        .design-text h3 {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            color: #f1f3f8;
            position: relative;
            padding-bottom: 10px;
        }
        
        .design-text h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: #00aaff;
        }
        
        .design-text ul {
            padding-left: 1.3rem;
            margin: 0.5rem 0 1.3rem;
            list-style-type: disc;
            color: #c6cce4;
        }
        
        .design-text ul li {
            margin-bottom: 0.45rem;
            position: relative;
            padding-left: 10px;
        }
        
        .design-text ul li::before {
            content: '•';
            position: absolute;
            left: -15px;
            color: #00aaff;
            font-size: 1.2rem;
        }
        
        /* ACORDEÓN PARA MÓVIL */
        .accordion-container {
            display: none;
            margin-bottom: 1.5rem;
            position: relative;
            z-index: 10; /* superior al z-index:0 de partículas */
        }
        
        .accordion-item {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }
        
        .accordion-item.active {
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .accordion-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            padding: 15px 20px;
            background: transparent;
            border: none;
            color: white;
            font-size: 1.1rem;
            font-weight: 500;
            text-align: left;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .accordion-header:hover {
            background: rgba(255, 255, 255, 0.08);
        }
        
        .accordion-icon {
            font-size: 1.1rem;
            transition: transform 0.3s ease;
            min-width: 20px;
            text-align: center;
        }
        
        .accordion-item.active .accordion-icon {
            transform: rotate(45deg);
        }
        
        .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            background: rgba(0, 0, 0, 0.2);
        }
        
        .accordion-item.active .accordion-content {
            max-height: 2000px;
        }
        
        .accordion-inner {
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .accordion-image {
            width: 100%;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }
        
        .accordion-image img {
            width: 100%;
            display: block;
            transition: transform 0.4s ease;
        }
        
        .accordion-image img:hover {
            transform: scale(1.03);
        }
        
        .accordion-text h3 {
            font-size: 1.5rem;
            margin-bottom: 0.8rem;
            color: #f1f3f8;
            position: relative;
            padding-bottom: 8px;
        }
        
        .accordion-text h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 2px;
            background: #00aaff;
        }
        
        .accordion-text ul {
            padding-left: 1.2rem;
            margin: 0.5rem 0 1rem;
            list-style-type: disc;
            color: #c6cce4;
        }
        
        .accordion-text ul li {
            margin-bottom: 0.4rem;
            position: relative;
            padding-left: 8px;
        }
        
        .accordion-text ul li::before {
            content: '•';
            position: absolute;
            left: -15px;
            color: #00aaff;
            font-size: 1.1rem;
        }
        
        /* ANIMACIONES */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes iconPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }
        
        .accordion-icon {
            animation: none;
        }
        
        .accordion-header:hover .accordion-icon {
            animation: iconPulse 0.6s ease;
        }
        
        /* RESPONSIVE */
        @media (max-width: 1200px) {
            .design-inner {
                gap: 1.5rem;
            }
        }
        
        @media (max-width: 992px) {
            .design-inner {
                flex-direction: column;
            }
            
            .design-image {
                max-width: 100%;
                min-width: auto;
            }
            
            .design-text {
                max-width: 100%;
            }
            
            .design-submenu li {
                font-size: 0.95rem;
                padding: 10px 16px;
            }
        }
        
        @media (max-width: 768px) {
            .design-section .section-title {
                font-size: 2.2rem;
            }
            
            .design-text h3 {
                font-size: 1.5rem;
            }
        }
        
        @media (max-width: 700px) {
            .design-submenu {
                display: none;
            }
            
            .accordion-container {
                display: block;
            }
            
            .design-content-container {
                display: none;
            }
        }
        
        @media (max-width: 576px) {
            .design-section .section-title {
                font-size: 2rem;
                margin-bottom: 1rem;
            }
        }

/* MAPS */
.map-section {
  padding: 60px 20px;
  background-color: #f4f4f4;
}

.map-section .section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.map-section .map-address {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.map-section .map-address a {
  color: #007bff;
  text-decoration: none;
}

.map-section .map-address a:hover {
  text-decoration: underline;
}

.map-embed-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.map-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Estilo para tendencias de empaque */
.empaque-tendencias {
  margin: 2rem 0;
  padding-left: 1.5rem;
  list-style: none;
  color: #495057;
  font-size: 1rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-left: 4px solid rgba(255, 255, 255, 0.2);
}

.empaque-tendencias li {
  position: relative;
  padding-left: 1.5rem;
}

.empaque-tendencias li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: #495057;
  font-size: 1.2rem;
  line-height: 1;
}

.empaque-tendencias strong {
  display: block;
  color: #044D75; /* Amarillo dorado para destacar los títulos */
  margin-bottom: 0.3rem;
  font-weight: 600;
}

/* Responsive */
@media (min-width: 992px) {
  .services-tabs {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }

  .service-tab-btn {
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .transport-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .transport-image-container {
    height: 150px;
  }

  .design-tab:not(.active) {
    flex: 0 0 60px;
  }
  
  .design-section .section-title {
    font-size: 2rem;
  }
  
  .section-title::after {
    width: 60px;
    height: 3px;
  }

  .design-tab {
    flex-direction: row !important;
    min-width: 100% !important;
  }

  .design-tab-header .vertical-title {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    padding: 1rem !important;
    white-space: normal !important;
    text-align: center;
  }

  .design-tab.active {
    flex: 1 !important;
  }
}