/* ====================== BODY ====================== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  transition: background 0.3s, color 0.3s;
  scroll-behavior: smooth;
}
body.dark {
  background: #121212;
  color: #f5f5f5;
}

/* ====================== NAVBAR SUPERIOR MEJORADO ====================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background: #eee;
  backdrop-filter: blur(8px);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
body.dark .navbar {
  background: rgb(30, 30, 30);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.navbar.hidden {
  transform: translateY(-100%);
}
.navbar-left, .navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  font-weight: bold;
  cursor: pointer;
}
.logo img{
  width: 135px;   
  height: auto;
  display: block;
}
.dark-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
}

/* ====================== BANDERAS ====================== */
.flag {
  width: 26px;
  height: 26px;
  cursor: pointer;
  border-radius: 3px;
  transition: transform 0.3s ease;
}
.flag:hover { transform: scale(1.1); }

/* ====================== HEADER ====================== */
.header {
  height: 100vh;
   background: linear-gradient(135deg, rgb(4, 133, 138, 0.8), rgb(2, 89, 92)), 
              url('img/bannerDataSystems2.png') center/cover no-repeat;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

/* ====================== HEADER CONTENT MEJORADO ====================== */
.header-content {
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  padding: 0 20px;
}

.header h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  background: #ffffff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.5s ease;
  text-transform: uppercase;
}

.header:hover h1 {
  transform: scale(1.02);
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.137);
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin: 0;
  opacity: 0.9;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  display: inline-block;
  padding: 0 20px;
  text-transform: uppercase;
}

.subtitle::before,
.subtitle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-50%);
}

.subtitle::before {
  left: -50px;
}

.subtitle::after {
  right: -50px;
}

/* ====================== RESPONSIVE HEADER ====================== */
@media (max-width: 1024px) {
  .header h1 {
    font-size: 2.8rem;
  }
  
  .subtitle {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2.2rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
    padding: 0 15px;
  }
  
  .subtitle::before,
  .subtitle::after {
    width: 30px;
  }
  
  .subtitle::before {
    left: -40px;
  }
  
  .subtitle::after {
    right: -40px;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.8rem;
  }
  
  .subtitle {
    font-size: 1rem;
    padding: 0 10px;
  }
  
  .subtitle::before,
  .subtitle::after {
    width: 20px;
  }
  
  .subtitle::before {
    left: -30px;
  }
  
  .subtitle::after {
    right: -30px;
  }
}

/* ====================== HEADER NAV ====================== */
.header-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 15px;
  background: rgba(255,255,255,0.88);
  padding: 12px 12px;
  border-radius: 50px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  height: auto;
  min-height: 52px;
}
.header-nav::-webkit-scrollbar { display: none; }
.header-nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  white-space: nowrap;
  padding: 2px 17px;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.header-nav a::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 150%; height: 150%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, transparent 80%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
  border-radius: 50%;
  z-index: 0;
}
.header-nav a:hover::before { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.header-nav a:hover {
  background: rgb(4, 133, 138, 0.8);
  color: #eee;
  box-shadow: 
    0 8px 20px rgba(0,0,0,0.2),       /* sombra exterior */
    inset 0 2px 6px rgba(255,255,255,0.3), /* brillo interno */
    inset 0 -2px 6px rgba(0,0,0,0.2);      /* sombra interna */
  transform: scale(1.05); /* pequeño zoom tipo burbuja */
}
body.dark .header-nav { background: rgba(30,30,30,0.88); }
body.dark .header-nav a { color: #f5f5f5; }

/* ====================== HEADER CONTROLS ====================== */
.header-controls {
  position: absolute;
  top: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ====================== HEADER NAV TRANSFORMADO - MISMOS ESTILOS QUE NAVBAR ====================== */
.header-nav.into-navbar {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  display: flex;
  align-items: center;
  padding: 12px 13px;
  max-width: 90%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  border-radius: 50px;
  gap: 15px;
}

body.dark .header-nav.into-navbar { 
  background: rgba(71,71,71,0.95);
}

/* Enlaces dentro del navbar transformado */
.header-nav.into-navbar a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  white-space: nowrap;
  padding: 17px 16px;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

body.dark .header-nav.into-navbar a {
  color: #f5f5f5;
}

.header-nav.into-navbar a::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 150%; height: 150%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, transparent 80%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
  border-radius: 50%;
  z-index: 0;
}

.header-nav.into-navbar a:hover::before { 
  opacity: 1; 
  transform: translate(-50%, -50%) scale(1); 
}

.header-nav.into-navbar a:hover { 
  background: rgb(4, 133, 138, 0.8);
  color: #eee;
  box-shadow: 
    0 8px 20px rgba(0,0,0,0.2),
    inset 0 2px 6px rgba(255,255,255,0.3),
    inset 0 -2px 6px rgba(0,0,0,0.2);
  transform: scale(1.05);
}

/* ====================== ELEMENTOS LATERALES MEJORADOS ====================== */
.nav-left, .nav-right { 
  display: none; 
  position: fixed; 
  top: 15px; 
  z-index: 1002; 
  gap: 10px; 
  align-items: center; 
}
.nav-left { left: 20px; }
.nav-right { right: 20px; }

.bubble-item, .bubble-group {
  background: rgba(255,255,255,0.85);
  padding: 24px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  backdrop-filter: blur(12px);
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  max-height: 76px;
}

body.dark .bubble-item, 
body.dark .bubble-group {
  background: rgba(71,71,71,0.85);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ====================== SECCIONES ====================== */
section {
  min-height: 85vh;
  /* padding: 100px 20px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: justify;
}
section:nth-child(even) { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); }
body.dark section:nth-child(even) { background: #383838; }
body.dark section:nth-child(odd) { background: rgb(30, 30, 30); }
section h2 { font-size: 36px; margin-bottom: -5px; }
section p { max-width: 800px; line-height: 1.5; font-size: 18px; color: #666;}

/* ====================== FOOTER ====================== */
footer { 
  text-align: center; 
  padding: 30px; 
  background: rgb(2, 89, 92);
  color: #f0f0f0 !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;

}
body.dark footer { background: rgb(30, 30, 30); }

/* ====================== BURBUJA INFERIOR MÓVIL ====================== */
.mobile-bottom-bubble {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 400px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 1003;
  transition: all 0.3s ease;
}
body.dark .mobile-bottom-bubble {
  background: rgba(71,71,71,0.95);
}
.mobile-logo {
  font-size: 24px;
  cursor: pointer;
}
.mobile-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-dark-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
}
.mobile-flag {
  width: 20px;
  height: 20px;
}

/* ====================== SELECTOR MÓVIL EN HEADER ====================== */
.mobile-logo img {
  width: 25px;
  height: auto;
  display: block;
}

.mobile-selector-header {
  display: none;
  margin-top: 30px;
  width: 90%;
  max-width: 300px;
}

.mobile-select-header {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 50px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  font-size: 16px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  height: 65px;
}

body.dark .mobile-select-header {
  background: rgba(71,71,71,0.95);
  color: #f5f5f5;
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23f5f5f5' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
}

/* ====================== SELECTOR MÓVIL STICKY ====================== */
.mobile-selector-sticky {
  display: none;
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  width: 90%;
  max-width: 300px;
}

.mobile-select-sticky {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 50px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  font-size: 16px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
}

body.dark .mobile-select-sticky {
  background: rgba(71,71,71,0.95);
  color: #f5f5f5;
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23f5f5f5' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1024px) {
  .header-controls {
    display: none;
  }
  
  .header-nav {
    display: none;
  }
  
  .mobile-selector-header {
    display: block;
  }
  
  .mobile-bottom-bubble {
    display: flex;
  }
  
  .nav-left, .nav-right {
    display: none !important;
  }
  
  .header-nav.into-navbar {
    display: none;
  }
}

@media (max-width: 768px) {
  .header h1 { font-size: 36px; }
  
  .mobile-bottom-bubble {
    width: 95%;
    padding: 10px 15px;
  }
  
  .mobile-select-header, .mobile-select-sticky {
    padding: 12px 18px;
    font-size: 14px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .header h1 { font-size: 28px; }
  
  .mobile-bottom-bubble {
    width: 85%;
    padding: 8px 12px;
  }
  
  .mobile-logo { font-size: 20px; }
  .mobile-dark-toggle { font-size: 16px; }
  .mobile-flag { width: 18px; height: 18px; }
  
  .mobile-select-header, .mobile-select-sticky {
    padding: 10px 15px;
    font-size: 12px;
  }
}



/* ====================== SWITCH MODO OSCURO ====================== */
.theme-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme-switch .checkbox {
  opacity: 0;
  position: absolute;
}

.theme-switch .label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  border-radius: 50px;
  position: relative;
  height: 18px;
  width: 60px;
  cursor: pointer;
  background-color: #111;
  border: 1px solid #333;
  transition: background-color 0.3s ease;
}

body.dark .theme-switch .label {
  background-color: #f5f5f5;
}

.theme-switch .ball {
    background-color: #fff;
    position: absolute;
    border-radius: 50%;
    left: 2px;
    height: 22px;
    width: 22px;
    transition: transform 0.3s ease;
    z-index: 1;
}

body.dark .theme-switch .ball {
    transform: translateX(43px);
    background-color: #333;
    z-index: 1;
}

.theme-switch .moon,
.theme-switch .sun {
  width: 16px;
  height: 16px;
  z-index: 1;
}

.theme-switch .moon {
    color: #f1c40f;
    transform-origin: center center;
    transition: all 0.5s cubic-bezier(0.76, 0, 0.24, 1);
    transform: rotate(0);
    height: 20px;
}

.theme-switch .sun {
    color: #ff6b00;
    transform-origin: center center;
    transition: all 0.5s cubic-bezier(0.76, 0, 0.24, 1);
    transform: rotate(0);
    height: 20px;
}

.theme-switch .label:hover .moon,
.theme-switch .label:hover .sun {
transform: rotate(360deg);
}

/* Asegurar que el switch esté bien posicionado en el navbar */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}


/* ====================== SWITCH EN BUBBLE GROUP ====================== */
.bubble-group .theme-switch {
  margin: 0;
  padding: 0;
}

.bubble-group .theme-switch .label {
  background-color: #111;
  border: 1px solid #333;
  height: 16px;
  width: 50px;
}

body.dark .bubble-group .theme-switch .label {
  background-color: #f5f5f5;
}

.bubble-group .theme-switch .ball {
  height: 18px;
  width: 18px;
  left: 1px;
}

body.dark .bubble-group .theme-switch .ball {
  transform: translateX(35px);
}

.bubble-group .theme-switch .moon,
.bubble-group .theme-switch .sun {
  width: 14px;
  height: 14px;
}

/* ====================== SWITCH EN HEADER CONTROLS ====================== */
.header-controls .theme-switch {
  margin: 0;
  padding: 0;
}

.header-controls .theme-switch .label {
  background-color: #111;
  border: 1px solid #333;
  height: 16px;
  width: 50px;
}

body.dark .header-controls .theme-switch .label {
  background-color: #f5f5f5;
}

.header-controls .theme-switch .ball {
  height: 18px;
  width: 18px;
  left: 1px;
}

body.dark .header-controls .theme-switch .ball {
  transform: translateX(35px);
}

.header-controls .theme-switch .moon,
.header-controls .theme-switch .sun {
  width: 14px;
  height: 14px;
}

/* ====================== SWITCH MÓVIL ====================== */
.mobile-theme-switch {
  margin: 0;
  padding: 0;
}

.mobile-theme-switch .label {
  background-color: #111;
  border: 1px solid #333;
  height: 14px;
  width: 45px;
}

body.dark .mobile-theme-switch .label {
  background-color: #f5f5f5;
}

.mobile-theme-switch .ball {
  height: 16px;
  width: 16px;
  left: 1px;
}

body.dark .mobile-theme-switch .ball {
  transform: translateX(34px);
}

.mobile-theme-switch .moon,
.mobile-theme-switch .sun {
  width: 12px;
  height: 12px;
}

/* ====================== RESPONSIVE PARA SWITCHES ====================== */
@media (max-width: 768px) {
  .bubble-group .theme-switch .label {
    height: 14px;
    width: 45px;
  }
  
  .bubble-group .theme-switch .ball {
    height: 16px;
    width: 16px;
  }
  
  body.dark .bubble-group .theme-switch .ball {
    transform: translateX(30px);
  }
  
  .bubble-group .theme-switch .moon,
  .bubble-group .theme-switch .sun {
    width: 12px;
    height: 12px;
  }
}

/* ====================== CARDS MEJORADAS ====================== */
#vision {
  padding: 80px 20px;
  background: rgb(255 255 255);
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.dark #vision {
  background: rgb(30, 30, 30);;
}

#vision h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #04858a;
  text-align: center;
}

body.dark #vision h2 {
  color: #04a5ac;
}

body.dark #vision > p {
  color: #ccc;
}

#vision > p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.vision-title {
    font-size: 1.8em;
    color: #fff;
    margin-bottom: 15px;
    transition: all 0.4s ease;
    display: block;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.card {
    background: #287bff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    width: 320px;
    height: 450px;
    margin: 30px;
    border-radius: 20px;
    border-bottom-left-radius: 160px;
    border-bottom-right-radius: 160px;
    box-shadow: 0 15px 0 #fff,
            inset 0 -15px 0 rgba(255, 255, 255, 0.24),
            0 30px 0 rgba(0, 0, 0, 0.15);
    overflow: hidden; /* Mantenemos hidden pero arreglamos el corte */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    isolation: isolate; /* Previene problemas de z-index */
}

.card::before {
    content: "";
    position: absolute;
    top: -140px;
    left: -40%;
    width: 100%;
    height: 120%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2));
    transform: rotate(35deg);
    pointer-events: none;
    filter: blur(5px);
    transition: all 0.5s ease;
    z-index: 2;
}

.card:hover::before {
    transform: rotate(35deg) translateX(20%);
}

.card:nth-child(1) {
    background: linear-gradient(to bottom, rgb(2, 89, 92), rgb(4, 133, 138));
}

.card:nth-child(2) {
    background: linear-gradient(to bottom, rgb(4, 133, 138), rgb(2, 89, 92));
}

.card:nth-child(3) {
    background: linear-gradient(135deg, rgb(2, 89, 92) 0%, rgb(4, 133, 138) 50%, rgb(2, 89, 92) 100%);
}


/* MODO OSCURO PARA LAS CARDS */
body.dark .card:nth-child(1) {
    background: linear-gradient(to bottom, rgb(1, 67, 69), rgb(3, 100, 104));
}

body.dark .card:nth-child(2) {
    background: linear-gradient(to bottom, rgb(3, 100, 104), rgb(1, 67, 69));
}

body.dark .card:nth-child(3) {
    background: linear-gradient(135deg, rgb(1, 67, 69) 0%, rgb(3, 100, 104) 50%, rgb(1, 67, 69) 100%);
}

body.dark .card {
    box-shadow: 0 15px 0 #2b2b2b,
            inset 0 -15px 0 rgba(255, 255, 255, 0.1),
            0 30px 0 rgba(0, 0, 0, 0.3);
}

body.dark .card:hover {
    box-shadow: 0 25px 20px rgba(0, 0, 0, 0.4),
                0 15px 0 #2b2b2b,
                inset 0 -15px 0 rgba(255, 255, 255, 0.15),
                0 40px 0 rgba(0, 0, 0, 0.2);
}

/* CONTENEDOR DEL ICONO MEJORADO */
.card .icon-container {
    position: relative;
    width: 100%;
    height: 140px; /* Altura aumentada para evitar cortes */
    display: flex;
    justify-content: center;
    z-index: 100;
    margin-top: 10px; /* Espacio adicional superior */
}

.card .icon {
    position: relative;
    width: 140px;
    height: 120px;
    background: rgb(255 255 255);
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;
    box-shadow: 0 15px 0 rgba(0, 0, 0, 0.1),
            inset 0 -8px 0 #fff;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    transition: all 0.4s ease;
    overflow: visible;
}

/* MODO OSCURO PARA EL ICONO - CORREGIDO */
body.dark .card .icon {
    background: rgb(30, 30, 30);
    box-shadow: 0 15px 0 rgba(0, 0, 0, 0.3),
                inset 0 -8px 0 #444;
}

.card:hover .icon {
    transform: scale(1.1) translateY(-5px);
}

.card .icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50px;
    width: 50px;
    height: 50px;
    background: transparent;
    border-top-right-radius: 50px;
    box-shadow: 16px -15px 0 14px #ffffff;
    transition: all 0.4s ease;
}

.card:hover .icon::before {
    top: 10px;
}

/* MODO OSCURO PARA LOS PSEUDOELEMENTOS DEL ICONO - CORREGIDO */
body.dark .card .icon::before {
    box-shadow: 16px -15px 0 14px rgb(30, 30, 30) !important;
}

.card .icon::after {
    content: "";
    position: absolute;
    top: 0;
    right: -50px;
    width: 50px;
    height: 50px;
    background: transparent;
    border-top-left-radius: 50px;
    box-shadow: -16px -15px 0 14px #ffffff;
    transition: all 0.4s ease;
}

.card:hover .icon::after {
    top: 10px;
}

/* MODO OSCURO CORREGIDO CON !important */
body.dark .card .icon::after {
    box-shadow: -16px -15px 0 14px rgb(30, 30, 30) !important;
}

/* ICONOS MÁS GRANDES - PROBLEMA DE CORTE SOLUCIONADO */
.card .icon i {
    color: rgb(2, 89, 92);
    position: relative;
    font-size: 4.8em; /* Tamaño optimizado */
    z-index: 1000;
    transition: all 0.4s ease;
    margin-top: 20px; /* Más espacio superior */
    display: block;
}

/* MODO OSCURO PARA LOS ICONOS */
body.dark .card .icon i {
    color: rgb(4, 133, 138);
}

.card:hover .icon i {
    transform: scale(1.12); /* Escala más conservadora */
    color: rgb(2, 89, 92);
}

body.dark .card:hover .icon i {
    color: rgb(4, 133, 138);
}

/* CONTENIDO MEJORADO */
.card .content {
    position: absolute;
    width: 100%;
    padding: 30px;
    padding-top: 120px; /* Aumentado para compensar el icon-container */
    text-align: center;
    transition: all 0.4s ease;
    z-index: 10;
}

.card:hover .content {
    padding-top: 150px;
}

.card .content h2 {
    font-size: 1.8em;
    color: #fff;
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

.card:hover .content h2 {
    transform: translateY(-5px);
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.card .content p {
    color: #fff;
    line-height: 1.5em;
    transition: all 0.4s ease;
    padding: 0px 25px;
}

.card:hover .content p {
    transform: translateY(-3px);
}

/* MODO OSCURO PARA EL CONTENIDO */
body.dark .card .content h2,
body.dark .card .content p {
    color: #f0f0f0;
}

/* BORDE SUPERIOR AL HOVER - SOLUCIÓN */
.card::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    height: 10px;
    background: inherit;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Responsive para las cards */
@media (max-width: 1024px) {
    .container {
        padding: 20px;
    }
    
    .card {
        width: 280px;
        height: 420px;
        margin: 20px;
    }
    
    .card .icon i {
        font-size: 4.2em;
    }
    
    .card .content {
        padding-top: 150px;
    }
    
    .card:hover .content {
        padding-top: 140px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .card {
        width: 90%;
        max-width: 320px;
        height: 400px;
        margin: 30px 0;
    }
    
    .card .icon i {
        font-size: 3.8em;
        margin-top: 15px;
    }
    
    .card .content {
        padding-top: 125px;
    }
    
    .card:hover .content {
        padding-top: 130px;
    }
    
    .card:hover {
        transform: translateY(-8px) scale(1.02);
    }
    
    .card:hover .icon i {
        transform: scale(1.08);
    }
}


/* ====================== SELECTOR PERSONALIZADO ====================== */
.custom-select-header, .custom-select-sticky {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  /* box-shadow: 0 4px 20px rgba(0,0,0,0.15); */
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  color: #333;
  border: 2px solid transparent;
  height: 30px;
  min-height: 25px;
}

body.dark .custom-select-trigger {
  background: rgba(71,71,71,0.95);
  color: #f5f5f5;
}

.custom-select-trigger:focus {
  outline: none;
  border-color: #04858a;
  box-shadow: 0 0 0 3px rgba(4, 133, 138, 0.1);
}

.arrow {
  transition: transform 0.3s ease;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow i {
  font-size: 14px;
  color: inherit;
  transition: all 0.3s ease;
}

/* Efecto hover en el icono */
.custom-select-trigger:hover .arrow i {
  transform: scale(1.1);
}

.custom-select-trigger.active .arrow {
  transform: rotate(180deg);
}

/* Asegurar que el icono herede el color correcto */
body.dark .arrow i {
  color: #f5f5f5;
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  margin-top: -10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  max-height: 300px;
  overflow: hidden; /* Eliminar ambos scrolls */
  padding: 8px;
  margin-top: 10px;
}

body.dark .custom-options {
  background: rgba(71,71,71,0.95);
}

.custom-select-trigger.active + .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
  font-weight: bold;
  border-radius: 20px;
  margin: 2px 0; /* Margen solo arriba y abajo */
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%; /* Ocupar todo el ancho disponible */
  box-sizing: border-box; /* Incluir padding en el ancho */
}

body.dark .custom-option {
  color: #f5f5f5;
}

/* HOVER REDONDEADO Y CENTRADO - CORREGIDO */
.custom-option:hover {
  background: rgb(4, 133, 138, 0.8);
  color: #eee;
  /* transform: scale(1.02); */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), inset 0 2px 6px rgba(255, 255, 255, 0.3), inset 0 -2px 6px rgba(0, 0, 0, 0.2);
  /* Centrado correcto - ya ocupa todo el ancho */
  margin: 5px 0; /* Mantener márgenes iguales */
}

/* Efecto de borde sutil al hover */
.custom-option:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  animation: borderPulse 0.6s ease-out;
}

@keyframes borderPulse {
  0% {
    border-width: 1px;
    opacity: 0.5;
  }
  50% {
    border-width: 3px;
    opacity: 0.8;
  }
  100% {
    border-width: 2px;
    opacity: 0.3;
  }
}

.custom-option.active {
  background: rgb(4, 133, 138, 0.8);
  color: #eee;
  border-radius: 20px;
  box-shadow: 
    0 8px 20px rgba(0,0,0,0.2),       /* sombra exterior */
    inset 0 2px 6px rgba(255,255,255,0.3), /* brillo interno */
    inset 0 -2px 6px rgba(0,0,0,0.2);
  /* Mismo centrado que el hover */
  margin: 5px 0;
}

body.dark .custom-option.active {
  background: rgb(4, 133, 138, 0.8);
  color: #eee;
}

/* Efecto de transición suave para el hover */
.custom-option {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ====================== RESPONSIVE PARA SELECTOR PERSONALIZADO ====================== */
@media (max-width: 768px) {
  .custom-select-trigger {
    padding: 15px 20px;
    height: 30px;
    min-height: 25px;
    font-size: 15px;
  }
  
  .custom-option {
    font-size: 14px;
    min-height: 40px;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .custom-select-trigger {
    padding: 12px 18px;
    height: 30px;
    min-height: 25px;
    font-size: 14px;
  }
  
  .custom-option {
    font-size: 13px;
    min-height: 38px;
    border-radius: 16px;
  }
  
  .custom-select-header, .custom-select-sticky {
    max-width: 280px;
  }
}

/* Ocultar los selects nativos */
.mobile-select-header, .mobile-select-sticky {
  display: none;
}


/* ====================== CARDS DE TECNOLOGÍAS ====================== */
#tecnologias {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.dark #tecnologias {
  background: #383838;
}

body.dark #tecnologias > p {
    color: #ccc;
}

#tecnologias h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #04858a;
  text-align: center;
}

body.dark #tecnologias h2 {
  color: #04a5ac;
}

.tech-tile {
    margin: 0;
    margin-block-end: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0;
    translate: 0 -200%;
    opacity: 1;
    color: #fff;
    transition: color 0.5s, margin-block-end 0.25s, opacity 1s, translate 0.25s;
}

.tech-cards-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tech-card {
  --bg: #fff;
  --title-color: #333;
  --text-color: #666;
  --button-color: #04858a;
  --button-color-hover: #036a6e;
  
  background: var(--bg);
  border-radius: 2rem;
  padding: 0.5rem;
  width: 20rem;
  height: 25rem;
  margin: 1rem;
  overflow: hidden;
  position: relative;
  font-family: 'Lato', 'Montserrat', Helvetica, Arial, sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

/* Modo oscuro para las tech cards */
body.dark .tech-card {
  --bg: #2a2a2a;
  --title-color: #f5f5f5;
  --text-color: #ccc;
  --button-color: #04a5ac;
  --button-color-hover: #038c92;
}

.tech-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 5%;
  border-radius: 1.5rem;
  display: block;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.tech-card > section {
  margin: -17px 0px -16px -1px;
  padding: 1rem;
  background: transparent !important;
  border-radius: 1rem;
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0; /* Importante para flexbox */
}

.tech-card::before {
    content: "";
    position: absolute;
    width: calc(100% - 1rem);
    height: 15%;
    bottom: 0.5rem;
    left: 0.5rem;
    background: linear-gradient(transparent, var(--bg) 106%);
    border-radius: 0 0 0.5rem 0.5rem;
    transform: translateY(0);
    transition: transform 0.25s;
    z-index: 2;
}

.tech-card h2 {
  margin: 0;
  margin-block-end: 1rem;
  font-size: 1.5rem;
  opacity: 0;
  translate: 0 -200%;
  opacity: 1;
  color: #fff;
  transition: color 0.5s, margin-block-end 0.25s, opacity 1s, translate 0.25s;
}

.tech-card p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-color);
  margin: 0 0 1rem 0;
  flex-grow: 1;
  overflow: hidden;
}

.tech-btn {
  border: none;
  border-radius: 1.5rem;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--button-color);
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: auto; /* Esto empuja el botón hacia abajo */
  flex-shrink: 0;
}

.tech-btn.following {
  background: var(--button-color-hover);
}

.tech-btn:hover {
  background: var(--button-color-hover);
  transform: translateY(-2px);
}

/* Efectos hover mejorados - CORREGIDOS */
.tech-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

body.dark .tech-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.tech-card:hover > img {
  height: 60%;
  object-position: 50% 10%;
}

/* Responsive */
@media (max-width: 1024px) {
  .tech-cards-container {
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .tech-card {
    width: 18rem;
    height: 28rem;
  }
}

@media (max-width: 768px) {
  .tech-cards-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .tech-card {
    width: 100%;
    max-width: 22rem;
    height: 26rem;
    margin: 0.5rem 0;
  }
}

@media (max-width: 480px) {
  .tech-card {
    height: 24rem;
  }
  
  .tech-card h2 {
    font-size: 1.3rem;
  }
  
  .tech-card p {
    font-size: 0.85rem;
  }
  
  .tech-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}



/* ====================== MODALES TECNOLOGÍAS ====================== */
.tech-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.tech-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  border-radius: 2rem;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

body.dark .modal-content {
  background: #2a2a2a;
  color: #f5f5f5;
}

.close-modal {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
  z-index: 10;
}

.close-modal:hover {
  color: #ff4444;
}

.modal-content h2 {
  font-size: 2rem;
  margin: 2rem 2rem 1rem;
  color: #04858a;
  text-align: center;
}

body.dark .modal-content h2 {
  color: #04a5ac;
}

.modal-body {
  display: flex;
  gap: 2rem;
  padding: 0 2rem;
  margin-bottom: 2rem;
}

.modal-body img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 1rem;
  flex-shrink: 0;
}

.modal-text {
  flex: 1;
}

.modal-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

body.dark .modal-text h3 {
  color: #f5f5f5;
}

.modal-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #666;
}

body.dark .modal-text p {
  color: #ccc;
}

.modal-text ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.modal-text li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  color: #555;
}

body.dark .modal-text li {
  color: #ddd;
}

.modal-features {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.feature-tag {
  background: #04858a;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  font-weight: bold;
}

body.dark .feature-tag {
  background: #04a5ac;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid #eee;
}

body.dark .modal-footer {
  border-top-color: #444;
}

.modal-contact-btn, .modal-close-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-contact-btn {
  background: #04858a;
  color: white;
}

.modal-contact-btn:hover {
  background: #036a6e;
  transform: translateY(-2px);
}

.modal-close-btn {
  background: #eee;
  color: #333;
}

body.dark .modal-close-btn {
  background: #444;
  color: #f5f5f5;
}

.modal-close-btn:hover {
  background: #ddd;
  transform: translateY(-2px);
}

body.dark .modal-close-btn:hover {
  background: #555;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive para modales */
@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
    text-align: center;
    padding: 0 1rem;
  }
  
  .modal-body img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }
  
  .modal-content h2 {
    font-size: 1.5rem;
    margin: 1.5rem 1rem 1rem;
  }
  
  .modal-text h3 {
    font-size: 1.3rem;
  }
  
  .modal-footer {
    flex-direction: column;
    padding: 1rem 1rem 1.5rem;
  }
  
  .modal-contact-btn, .modal-close-btn {
    width: 100%;
  }
}


/* ====================== SECCIÓN INDUSTRIAS ====================== */
#empresas {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

body.dark #empresas {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

#empresas h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #04858a;
}

body.dark #empresas h2 {
  color: #04a5ac;
}

#empresas > p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

body.dark #empresas > p {
  color: #ccc;
}

/* ====================== SECCIÓN SECTORES ====================== */
#sectores {
  padding: 80px 20px;
  background: rgb(255 255 255);
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.dark #sectores {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

#sectores h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #04858a;
  text-align: center;
}

body.dark #sectores h2 {
  color: #04a5ac;
}

#sectores > p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

body.dark #sectores > p {
  color: #ccc;
}


.industries-container {
  position: relative;
  width: 100%;
  /* max-width: 1200px; */
  margin: 0 auto 4rem;
  overflow: hidden;
  padding: 2rem 0;
}

.industry-slider {
  display: flex;
  gap: 2rem;
  animation: slideIndustries 30s linear infinite;
  padding: 1rem 0;
}

.industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 150px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

body.dark .industry-item {
  background: rgba(42, 42, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.industry-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); */
  transition: left 0.5s ease;
}

.industry-item:hover::before {
  left: 100%;
}

.industry-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 35px rgba(4, 133, 138, 0.2);
}

body.dark .industry-item:hover {
  box-shadow: 0 15px 35px rgba(4, 165, 172, 0.3);
}

.industry-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #04858a, #036a6e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  transition: all 0.3s ease;
  animation: floatIcon 3s ease-in-out infinite;
}

body.dark .industry-icon {
  background: linear-gradient(135deg, #04a5ac, #038c92);
}

.industry-item:hover .industry-icon {
  animation: bounceIcon 0.6s ease;
  background: linear-gradient(135deg, #036a6e, #02585a);
}

body.dark .industry-item:hover .industry-icon {
  background: linear-gradient(135deg, #038c92, #02777c);
}

.industry-name {
  font-weight: bold;
  color: #333;
  font-size: 1rem;
  text-align: center;
  transition: color 0.3s ease;
}

body.dark .industry-name {
  color: #f5f5f5;
}

.industry-item:hover .industry-name {
  color: #04858a;
}

body.dark .industry-item:hover .industry-name {
  color: #04a5ac;
}

/* Animaciones */
@keyframes slideIndustries {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-150px * 6 - 2rem * 6)); /* Ancho de 6 items */
  }
}

@keyframes floatIcon {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-5px) rotate(2deg);
  }
  66% {
    transform: translateY(3px) rotate(-1deg);
  }
}

@keyframes bounceIcon {
  0%, 20%, 60%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  80% {
    transform: translateY(-5px);
  }
}

/* ====================== ESTADÍSTICAS - DISEÑO MEJORADO ====================== */
.industries-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 1rem;
}

.stat-item {
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  border-radius: 1.2rem;
  backdrop-filter: blur(12px);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 110px;
  position: relative;
  overflow: hidden;
}

body.dark .stat-item {
  background: linear-gradient(135deg, rgba(42, 42, 42, 0.95), rgba(35, 35, 35, 0.85));
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Efecto de brillo al hover */
.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); */
  transition: left 0.6s ease;
}

.stat-item:hover::before {
  left: 100%;
}

/* .stat-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 
    0 15px 35px rgba(4, 133, 138, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.dark .stat-item:hover {
  box-shadow: 
    0 15px 35px rgba(4, 165, 172, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
} */

.stat-number {
  font-size: 2.0rem;
  font-weight: 600;
  color: #04858a;
  margin-bottom: 0.5rem;
  line-height: 1;
  background: linear-gradient(135deg, #04858a, #036a6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(4, 133, 138, 0.2);
}

body.dark .stat-number {
  background: linear-gradient(135deg, #04a5ac, #038c92);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(4, 165, 172, 0.3);
}

.stat-label {
  font-size: 1rem;
  color: #555;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

body.dark .stat-label {
  color: #ddd;
}

.stat-item:hover::after {
  transform: scale(1.5);
  opacity: 0.5;
}

body.dark .stat-item::after {
  background: linear-gradient(135deg, #04a5ac, transparent 70%);
}

/* Responsive mejorado */
@media (max-width: 1024px) {
  .industries-stats {
    gap: 1.2rem;
    padding: 0 1.5rem;
  }
  
  .stat-item {
    padding: 1.8rem 0.8rem;
    min-height: 70px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-label {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .industries-stats {
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .stat-item {
    padding: 1.5rem 0.8rem;
    min-height: 70px;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
    letter-spacing: 0.3px;
  }
}

@media (max-width: 480px) {
  .industries-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.5rem;
    max-width: 400px;
    margin-bottom: 10px;
  }
  
  .stat-item {
    padding: 2rem 1rem;
    min-height: 70px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }
}

/* Asegurar que ocupe todo el ancho disponible */
#empresas {
  width: 100%;
}

.industries-stats {
  width: 100%;
  padding: 0px 0px 50px 0px;
}




/* ====================== SECCIÓN TRABAJO CON DISEÑO DE CUADRÍCULA ====================== */

/* #trabajo {
  padding: 80px 20px;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
} */


#trabajo h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #04858a;
  text-align: center;
}

body.dark #trabajo h2 {
  color: #04a5ac;
}

body.dark #trabajo > p {
    color: #ccc;
}

/* Contenedor de tecnologías en cuadrícula */
.tech-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1250px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* Items de tecnología - Rectángulos horizontales */
.tech-grid-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

body.dark .tech-grid-item {
    background: rgba(42, 42, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.tech-grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.5s ease;
}

.tech-grid-item:hover::before {
    left: 100%;
}

.tech-grid-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(4, 133, 138, 0.2);
}

body.dark .tech-grid-item:hover {
    box-shadow: 0 15px 35px rgba(4, 165, 172, 0.3);
}

/* Icono dentro del rectángulo */
.tech-grid-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #04858a, #036a6e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

body.dark .tech-grid-icon {
    background: linear-gradient(135deg, #04a5ac, #038c92);
}

.tech-grid-item:hover .tech-grid-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #036a6e, #02585a);
}

body.dark .tech-grid-item:hover .tech-grid-icon {
    background: linear-gradient(135deg, #038c92, #02777c);
}

/* Nombre de la tecnología */
.tech-grid-name {
    font-weight: bold;
    color: #333;
    font-size: 1.3rem;
    text-align: left;
    transition: color 0.3s ease;
    flex: 1;
}

body.dark .tech-grid-name {
    color: #f5f5f5;
}

.tech-grid-item:hover .tech-grid-name {
    color: #04858a;
}

body.dark .tech-grid-item:hover .tech-grid-name {
    color: #04a5ac;
}

/* ====================== MODALES PARA TRABAJO ====================== */
#modal-trabajo .modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 5vh auto;
}

#modal-trabajo .modal-body {
    max-height: calc(70vh - 150px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 10px;
}

#modal-trabajo .modal-body::-webkit-scrollbar {
    width: 6px;
}

#modal-trabajo .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

body.dark #modal-trabajo .modal-body::-webkit-scrollbar-track {
    background: #2a2a2a;
}

#modal-trabajo .modal-body::-webkit-scrollbar-thumb {
    background: #04858a;
    border-radius: 3px;
}

body.dark #modal-trabajo .modal-body::-webkit-scrollbar-thumb {
    background: #04a5ac;
}

/* Formulario en modal */
.job-form {
    width: 100%;
    box-sizing: border-box;
    padding: 0 5px;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
    font-size: 1rem;
}

body.dark .form-group label {
    color: #f5f5f5;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
    font-family: inherit;
    box-sizing: border-box;
}

body.dark .form-group input,
body.dark .form-group textarea {
    background: #2a2a2a;
    border-color: #444;
    color: #f5f5f5;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #04858a;
    box-shadow: 0 0 0 3px rgba(4, 133, 138, 0.1);
}

body.dark .form-group input:focus,
body.dark .form-group textarea:focus {
    border-color: #04a5ac;
    box-shadow: 0 0 0 3px rgba(4, 165, 172, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
}

.file-info {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

body.dark .file-info {
    color: #999;
}

.file-preview {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    max-height: 120px;
    overflow-y: auto;
}

body.dark .file-preview {
    background: #1a1a1a;
    border-color: #444;
}

.file-preview .file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

body.dark .file-preview .file-item {
    background: #2a2a2a;
}

.file-preview .file-name {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

body.dark .file-preview .file-name {
    color: #f5f5f5;
}

.file-preview .file-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-count {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

body.dark .file-count {
    color: #999;
}

/* Botón de enviar personalizado */
.modal-submit-btn {
    background: #04858a;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-submit-btn:hover {
    background: #036a6e;
    transform: translateY(-2px);
}

body.dark .modal-submit-btn {
    background: #04a5ac;
}

body.dark .modal-submit-btn:hover {
    background: #038c92;
}

/* Icono de confirmación */
.confirmation-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.confirmation-icon .fa-check-circle {
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1024px) {
    .tech-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .tech-grid-item {
        padding: 1.25rem 1.5rem;
        min-height: 90px;
    }
    
    .tech-grid-icon {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
    
    .tech-grid-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .tech-grid-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        max-width: 500px;
    }
    
    .tech-grid-item {
        padding: 1.5rem 2rem;
        min-height: 80px;
    }
    
    .tech-grid-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    
    .tech-grid-name {
        font-size: 1.1rem;
    }
    
    #trabajo {
        padding: 80px 15px;
    }
    
    #trabajo h2 {
        font-size: 2rem;
    }
    
    #modal-trabajo .modal-content {
        width: 95%;
        margin: 2vh auto;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tech-grid-item {
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }
    
    .tech-grid-icon {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
    
    .tech-grid-name {
        font-size: 1rem;
    }
    
    #trabajo > p {
        font-size: 1rem;
    }
    
    .tech-grid-container {
        padding: 0px 0px 50px 0px;
        width: 100%;
    }
}

/* Agrega esto al CSS de la sección trabajo */
.file-size-warning {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.file-size-ok {
    color: #28a745;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.file-input-container {
    position: relative;
}

.file-size-display {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #666;
    background: rgba(255,255,255,0.9);
    padding: 2px 6px;
    border-radius: 4px;
    display: none;
}

body.dark .file-size-display {
    background: rgba(42,42,42,0.9);
    color: #ccc;
}

.field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}



/* ====================== SECCIÓN CONTACTO MEJORADA ====================== */
#contacto {
  padding: 80px 20px;
  background: rgb(255 255 255);
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.dark #contacto {
  background: rgb(30, 30, 30);
}

#contacto h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #04858a;
  text-align: center;
}

body.dark #contacto h2 {
  color: #04a5ac;
}

#contacto > p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

body.dark #contacto > p {
  color: #ccc;
}

/* Grid principal - Misma altura */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch; /* Asegura misma altura */
}

.contact-info-section,
.contact-form-section {
  display: flex;
  flex-direction: column;
}

/* Tarjeta de información */
.contact-info-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex: 1; /* Ocupa toda la altura disponible */
  display: flex;
  flex-direction: column;
}

body.dark .contact-info-card {
  background: #2a2a2a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #04858a;
  text-align: center;
}

body.dark .contact-info-card h3 {
  color: #04a5ac;
}

.contact-info-card > p {
  color: #666;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
}

body.dark .contact-info-card > p {
  color: #ccc;
}

/* Detalles de contacto */
.contact-details {
  margin-bottom: 0;
  flex: 1; /* Empuja el contenido hacia arriba */
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  background: rgba(4, 133, 138, 0.05);
  
}

body.dark .contact-detail-item {
  background: rgba(4, 165, 172, 0.1);
}

.contact-detail-item:hover {
  background: rgba(4, 133, 138, 0.1);
  transform: translateX(5px);
}

body.dark .contact-detail-item:hover {
  background: rgba(4, 165, 172, 0.15);
}

.contact-icon {
  align-self: anchor-center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #04858a, #036a6e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

body.dark .contact-icon {
  background: linear-gradient(135deg, #04a5ac, #038c92);
}

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

.contact-text h4 {
  margin: 0 0 0.25rem 0;
  color: #333;
  font-size: 1rem;
}

body.dark .contact-text h4 {
  color: #f5f5f5;
}

.contact-text p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

body.dark .contact-text p {
  color: #ccc;
}

/* Tarjeta del formulario */
.contact-form-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex: 1; /* Misma altura que la info */
  display: flex;
  flex-direction: column;
}

body.dark .contact-form-card {
  background: #2a2a2a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #04858a;
  text-align: center;
}

body.dark .contact-form-card h3 {
  color: #04a5ac;
}

/* Formulario */
.contact-form {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.form-group {
  text-align: left;
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

body.dark .contact-form label {
  color: #f5f5f5;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
  color: #333;
  font-family: inherit;
  box-sizing: border-box;
}

body.dark .contact-form input,
body.dark .contact-form textarea {
  background: #1a1a1a;
  border-color: #444;
  color: #f5f5f5;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #04858a;
  box-shadow: 0 0 0 3px rgba(4, 133, 138, 0.1);
}

body.dark .contact-form input:focus,
body.dark .contact-form textarea:focus {
  border-color: #04a5ac;
  box-shadow: 0 0 0 3px rgba(4, 165, 172, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 200px;
  flex: 1;
}

/* ====================== SELECT PERSONALIZADO PARA CONTACTO ====================== */
.contact-select-wrapper {
  position: relative;
}

.contact-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  color: #333;
  min-height: 50px;
  box-sizing: border-box;
}

body.dark .contact-select-trigger {
  background: #1a1a1a;
  border-color: #444;
  color: #f5f5f5;
}

.contact-select-trigger:hover {
  border-color: #04858a;
}

body.dark .contact-select-trigger:hover {
  border-color: #04a5ac;
}

.contact-select-trigger.contact-active {
  border-color: #04858a;
  box-shadow: 0 0 0 3px rgba(4, 133, 138, 0.1);
}

body.dark .contact-select-trigger.contact-active {
  border-color: #04a5ac;
  box-shadow: 0 0 0 3px rgba(4, 165, 172, 0.2);
}

.contact-select-trigger.contact-active .contact-arrow i {
  transform: rotate(180deg);
}

.contact-arrow {
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.contact-arrow i {
  font-size: 16px;
  color: inherit;
  transition: all 0.3s ease;
}

/* Opciones del select de contacto - Estilo idéntico al responsive */
.contact-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-top: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  border-radius: 12px;
}

body.dark .contact-select-options {
  background: rgba(71, 71, 71, 0.95);
}

.contact-select-trigger.contact-active + .contact-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-option {
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
  font-weight: bold;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
}

body.dark .contact-option {
  color: #f5f5f5;
}

.contact-option:hover {
  background: rgb(4, 133, 138, 0.8);
  color: #eee;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 
              inset 0 2px 6px rgba(255, 255, 255, 0.3), 
              inset 0 -2px 6px rgba(0, 0, 0, 0.2);
}

.contact-option.contact-option-active {
  background: rgb(4, 133, 138, 0.8);
  color: #eee;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
              inset 0 2px 6px rgba(255, 255, 255, 0.3),
              inset 0 -2px 6px rgba(0, 0, 0, 0.2);
}

body.dark .contact-option.contact-option-active {
  background: rgb(4, 133, 138, 0.8);
  color: #eee;
}

/* Botón de enviar */
.contact-submit {
  width: 100%;
  padding: 15px 30px;
  background: linear-gradient(135deg, #04858a, #036a6e);
  color: white;
  border: none;
  border-radius: 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: auto; /* Empuja el botón hacia abajo */
}

body.dark .contact-submit {
  background: linear-gradient(135deg, #04a5ac, #038c92);
}

.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(4, 133, 138, 0.3);
}

body.dark .contact-submit:hover {
  box-shadow: 0 8px 25px rgba(4, 165, 172, 0.4);
}

.contact-submit:active {
  transform: translateY(0);
}

.contact-submit .btn-text i {
  margin-right: 0.5rem;
}

.btn-loading {
  display: none;
}

.contact-submit.loading .btn-text {
  display: none;
}

.contact-submit.loading .btn-loading {
  display: block;
}

/* Estados del formulario */
.field-error {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1024px) {
  .contact-grid {
    gap: 2rem;
  }
  
  .contact-info-card,
  .contact-form-card {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .contact-info-card,
  .contact-form-card {
    padding: 1.5rem;
  }
  
  #contacto {
    padding: 60px 15px;
  }
  
  #contacto h2 {
    font-size: 2rem;
  }
  
  #contacto > p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .contact-info-card,
  .contact-form-card {
    padding: 1.25rem;
    border-radius: 1.5rem;
  }
  
  .contact-detail-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    text-align-last: center;
  }
  
  .contact-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    margin: 0 auto;
  }
  
  .contact-select-trigger {
    padding: 12px 16px;
    min-height: 46px;
  }
  
  .contact-submit {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

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

.contact-info-card,
.contact-form-card {
  animation: fadeInUp 0.6s ease-out;
}

.contact-form-card {
  animation-delay: 0.2s;
}

.contact-detail-item {
  animation: fadeInUp 0.6s ease-out;
}

.contact-detail-item:nth-child(1) { animation-delay: 0.1s; }
.contact-detail-item:nth-child(2) { animation-delay: 0.2s; }
.contact-detail-item:nth-child(3) { animation-delay: 0.3s; }
.contact-detail-item:nth-child(4) { animation-delay: 0.4s; }

.text-danger {
  color: red;
}



/* ====================== SECCIÓN UBICACIÓN ====================== */
#ubicacion {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.dark #ubicacion {
  background: #383838;
}

#ubicacion h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #04858a;
  text-align: center;
}

body.dark #ubicacion h2 {
  color: #04a5ac;
}

#ubicacion > p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

body.dark #ubicacion > p {
  color: #ccc;
}

/* Contenedor principal */
.location-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.location-info,
.location-map {
  display: flex;
  flex-direction: column;
}

/* Tarjeta de información */
.location-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.dark .location-card {
  background: #2a2a2a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.location-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #04858a;
  text-align: center;
}

body.dark .location-card h3 {
  color: #04a5ac;
}

.location-card > p {
  color: #666;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
}

body.dark .location-card > p {
  color: #ccc;
}

/* Detalles de ubicación */
.location-details {
  margin-bottom: 2rem;
  flex: 1;
}

.location-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  background: rgba(4, 133, 138, 0.05);
}

body.dark .location-detail-item {
  background: rgba(4, 165, 172, 0.1);
}

.location-detail-item:hover {
  background: rgba(4, 133, 138, 0.1);
  transform: translateX(5px);
}

body.dark .location-detail-item:hover {
  background: rgba(4, 165, 172, 0.15);
}

.location-icon {
  align-self: anchor-center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #04858a, #036a6e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

body.dark .location-icon {
  background: linear-gradient(135deg, #04a5ac, #038c92);
}

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

.location-text h4 {
  margin: 0 0 0.25rem 0;
  color: #333;
  font-size: 1rem;
}

body.dark .location-text h4 {
  color: #f5f5f5;
}

.location-text p {
  margin: 0 !important;
  color: #666 !important;
  line-height: 1.5 !important;
  /* font-size: 0.9rem; */
}

body.dark .location-text p {
  color: #ccc !important;
}

/* Botones de acción */
.location-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.location-btn {
  flex: 1;
  padding: 12px 20px;
  background: linear-gradient(135deg, #04858a, #036a6e);
  color: white;
  text-decoration: none;
  border-radius: 1rem;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

body.dark .location-btn {
  background: linear-gradient(135deg, #04a5ac, #038c92);
}

.location-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(4, 133, 138, 0.3);
}

body.dark .location-btn:hover {
  box-shadow: 0 8px 25px rgba(4, 165, 172, 0.4);
}

.location-btn.secondary {
  background: rgba(4, 133, 138, 0.1);
  color: #04858a;
  border: 2px solid #04858a;
}

body.dark .location-btn.secondary {
  background: rgba(4, 165, 172, 0.1);
  color: #04a5ac;
  border-color: #04a5ac;
}

.location-btn.secondary:hover {
  background: #04858a;
  color: white;
}

body.dark .location-btn.secondary:hover {
  background: #04a5ac;
  color: #f8f9fa;
}

/* Contenedor del mapa */
.map-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: #f8f9fa;
}

body.dark .map-container {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: #2a2a2a;
}

.google-map {
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

body.dark .google-map {
  filter: grayscale(50%) invert(90%) hue-rotate(180deg);
}

.map-container:hover .google-map {
  filter: grayscale(0%);
}

body.dark .map-container:hover .google-map {
  filter: grayscale(30%) invert(90%) hue-rotate(180deg);
}

/* Overlay del mapa */
.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-marker {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #04858a, #036a6e);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
  box-shadow: 0 5px 15px rgba(4, 133, 138, 0.4);
}

body.dark .map-marker {
  background: linear-gradient(135deg, #04a5ac, #038c92);
  box-shadow: 0 5px 15px rgba(4, 165, 172, 0.5);
}

.map-marker i {
  color: white;
  font-size: 1.2rem;
  transform: rotate(45deg);
}

@keyframes pulse {
  0% {
    transform: rotate(-45deg) scale(1);
    box-shadow: 0 5px 15px rgba(4, 133, 138, 0.4);
  }
  50% {
    transform: rotate(-45deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(4, 133, 138, 0.6);
  }
  100% {
    transform: rotate(-45deg) scale(1);
    box-shadow: 0 5px 15px rgba(4, 133, 138, 0.4);
  }
}

body.dark .map-marker {
  animation: pulseDark 2s infinite;
}

@keyframes pulseDark {
  0% {
    transform: rotate(-45deg) scale(1);
    box-shadow: 0 5px 15px rgba(4, 165, 172, 0.5);
  }
  50% {
    transform: rotate(-45deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(4, 165, 172, 0.7);
  }
  100% {
    transform: rotate(-45deg) scale(1);
    box-shadow: 0 5px 15px rgba(4, 165, 172, 0.5);
  }
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1024px) {
  .location-container {
    gap: 2rem;
  }
  
  .location-card {
    padding: 2rem;
  }
  
  .map-container {
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .location-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .location-card {
    padding: 1.5rem;
  }
  
  .location-actions {
    flex-direction: column;
  }
  
  .map-container {
    min-height: 350px;
    order: -1;
  }
  
  #ubicacion {
    padding: 60px 15px;
  }
  
  #ubicacion h2 {
    font-size: 2rem;
  }
  
  #ubicacion > p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .location-card {
    padding: 1.25rem;
    border-radius: 1.5rem;
  }
  
  .location-detail-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    align-items: stretch;
  }
  
  .location-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    margin: 0 auto;
  }
  
  .location-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .map-container {
    min-height: 300px;
    border-radius: 1.5rem;
  }
  
  .map-marker {
    width: 50px;
    height: 50px;
  }
  
  .map-marker i {
    font-size: 1rem;
  }
}

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

.location-card,
.map-container {
  animation: fadeInUp 0.6s ease-out;
}

.map-container {
  animation-delay: 0.2s;
}

.location-detail-item {
  animation: fadeInUp 0.6s ease-out;
}

.location-detail-item:nth-child(1) { animation-delay: 0.1s; }
.location-detail-item:nth-child(2) { animation-delay: 0.2s; }
.location-detail-item:nth-child(3) { animation-delay: 0.3s; }
.location-detail-item:nth-child(4) { animation-delay: 0.4s; }


/* ====================== BOTÓN DE INICIO DE SESIÓN ====================== */
.login-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    color: #04858a;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

body.dark .login-btn {
    background: rgba(71, 71, 71, 0.85);
    color: #04a5ac;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.login-btn:hover {
    background: #04858a;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(4, 133, 138, 0.3);
    border-color: #04858a;
}

body.dark .login-btn:hover {
    background: #04a5ac;
    box-shadow: 0 6px 20px rgba(4, 165, 172, 0.4);
    border-color: #04a5ac;
    color:white;
}

.login-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: scale(1.1);
}

/* Tooltip para el botón de login */
.login-btn::after {
    /* content: "Inicio de sesión"; */
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

body.dark .login-btn::after {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.login-btn:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

/* Estilos específicos para cada ubicación */
.navbar-right .login-button {
    margin-left: 5px;
}

.bubble-group .login-button {
    margin: 0;
}

.bubble-group .login-btn {
    width: 25px;
    height: 25px;
}

.bubble-group .login-btn i {
    font-size: 1rem;
}

.header-controls .login-button {
    margin-left: 5px;
}

.header-controls .login-btn {
    width: 42px;
    height: 42px;
}

/* Botón de login móvil */
.mobile-login-button .login-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.9);
}

body.dark .mobile-login-button .login-btn {
    background: rgba(71, 71, 71, 0.9);
}

.mobile-login-button .login-btn i {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .login-btn {
        width: 30px;
        height: 30px;
    }
    
    .login-btn i {
        font-size: 1.1rem;
    }
    
    .bubble-group .login-btn,
    .mobile-login-button .login-btn {
        width: 25px;
        height: 25px;
        margin-left: 10px;
    }
    
    .bubble-group .login-btn i,
    .mobile-login-button .login-btn i {
        font-size: 0.9rem;
    }
    
    .login-btn::after {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
}

/* ====================== PÁGINA LOGIN MEJORADA ====================== */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

body.dark .animated-bg {
  background: #383838;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: #036a6e2c;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  left: 80%;
  animation-delay: 1.5s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  top: 80%;
  left: 20%;
  animation-delay: 3s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 70%;
  animation-delay: 4.5s;
}

.shape-5 {
  width: 70px;
  height: 70px;
  top: 70%;
  left: 60%;
  animation-delay: 6s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Contenedor principal */
.coming-soon-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
  padding: 20px;
  position: relative;
}

/* Tarjeta principal */
.coming-soon-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 2rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  padding: 0;
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideUp 0.8s ease-out;
}

body.dark .coming-soon-card {
  background: rgba(42, 42, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header de la tarjeta */
.card-header {
  background: linear-gradient(135deg, #04858a, #036a6e);
  padding: 3rem 2rem 2rem;
  text-align: center;
  color: white;
  position: relative;
}

body.dark .card-header {
  background: linear-gradient(135deg, #04a5ac, #038c92);
}

.pulse-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

.card-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.progress-bar {
  width: 200px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  margin: 0 auto;
  overflow: hidden;
}

.progress-fill {
  width: 65%;
  height: 100%;
  background: #fff;
  border-radius: 3px;
  animation: progress 3s ease-in-out infinite;
}

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

/* Contenido de la tarjeta */
.card-content {
  padding: 1rem 2rem;
}

.card-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #04858a;
  text-align: center;
}

body.dark .card-content h2 {
  color: #04a5ac;
}

.main-description {
  font-size: 1.2rem;
  color: #666;
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.6;
}

body.dark .main-description {
  color: #ccc;
}

/* Grid de características */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(4, 133, 138, 0.05);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

body.dark .feature-item {
  background: rgba(4, 165, 172, 0.1);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(4, 133, 138, 0.2);
}

body.dark .feature-item:hover {
  box-shadow: 0 10px 25px rgba(4, 165, 172, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #04858a, #036a6e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

body.dark .feature-icon {
  background: linear-gradient(135deg, #04a5ac, #038c92);
}

.feature-item h3 {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

body.dark .feature-item h3 {
  color: #f5f5f5;
}

.feature-item p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

body.dark .feature-item p {
  color: #ccc;
}

/* Contador */
.countdown-container {
  text-align: center;
  margin-bottom: 2rem;
}

.countdown-title {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1rem;
  font-weight: 600;
}

body.dark .countdown-title {
  color: #ccc;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.time-unit {
  text-align: center;
}

.time-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: #04858a;
  background: rgba(4, 133, 138, 0.1);
  padding: 1rem;
  border-radius: 1rem;
  min-width: 80px;
  animation: countdown 1s ease-in-out;
}

body.dark .time-number {
  color: #04a5ac;
  background: rgba(4, 165, 172, 0.2);
}

.time-label {
  display: block;
  margin-top: 0.5rem;
  color: #666;
  font-size: 0.9rem;
  font-weight: 600;
}

body.dark .time-label {
  color: #ccc;
}

@keyframes countdown {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Footer de la tarjeta */
.card-footer {
  background: rgba(4, 133, 138, 0.05);
  padding: 1rem;
  text-align: center;
}

body.dark .card-footer {
  background: rgba(4, 165, 172, 0.1);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 30px;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #04858a, #036a6e);
  color: white;
}

body.dark .btn-primary {
  background: linear-gradient(135deg, #04a5ac, #038c92);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(4, 133, 138, 0.4);
}

.btn-secondary {
  background: rgba(4, 133, 138, 0.1);
  color: #04858a;
  border: 2px solid #04858a;
}

body.dark .btn-secondary {
  background: rgba(4, 165, 172, 0.1);
  color: #04a5ac;
  border-color: #04a5ac;
}

.btn-secondary:hover {
  background: #04858a;
  color: white;
  transform: translateY(-2px);
}

body.dark .btn-secondary:hover {
  background: #04a5ac;
  color: white;
}

/* Redes sociales */
.social-links p {
  color: #666;
  margin-bottom: 1rem;
}

body.dark .social-links p {
  color: #ccc;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(4, 133, 138, 0.1);
  border-radius: 50%;
  color: #04858a;
  text-decoration: none;
  transition: all 0.3s ease;
}

body.dark .social-link {
  background: rgba(4, 165, 172, 0.1);
  color: #04a5ac;
}

.social-link:hover {
  background: #04858a;
  color: white;
  transform: translateY(-2px);
}

body.dark .social-link:hover {
  background: #04a5ac;
}

/* Notificación flotante */
.floating-notification {
  position: fixed;
  top: 100px;
  right: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.8s ease-out;
  border-left: 4px solid #04858a;
}

body.dark .floating-notification {
  background: rgba(42, 42, 42, 0.95);
  border-left-color: #04a5ac;
}

.floating-notification i {
  color: #04858a;
  font-size: 1.2rem;
}

body.dark .floating-notification i {
  color: #04a5ac;
}

.floating-notification span {
  color: #333;
  font-weight: 600;
}

body.dark .floating-notification span {
  color: #f5f5f5;
}

/* Botón volver mejorado */
.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 7px 20px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2rem;
  color: #04858a;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

body.dark .back-btn {
  background: rgba(71, 71, 71, 0.85);
  color: #04a5ac;
}

.back-btn:hover {
  background: #04858a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(4, 133, 138, 0.3);
}

body.dark .back-btn:hover {
  background: #04a5ac;
  box-shadow: 0 6px 20px rgba(4, 165, 172, 0.4);
  color: white;
}

.back-text {
  font-size: 0.9rem;
}

/* Animaciones */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .coming-soon-card {
    margin: 1rem;
  }
  
  .card-header {
    padding: 2rem 1rem 1.5rem;
  }
  
  .card-header h1 {
    font-size: 2rem;
  }
  
  .card-content {
    padding: 2rem 1rem;
  }
  
  .card-content h2 {
    font-size: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .countdown-timer {
    gap: 1rem;
  }
  
  .time-number {
    font-size: 2rem;
    min-width: 60px;
    padding: 0.75rem;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-secondary {
    width: 200px;
    justify-content: center;
  }
  
  .floating-notification {
    top: 80px;
    right: 20px;
    left: 20px;
    text-align: center;
    justify-content: center;
  }
  
  .back-btn .back-text {
    display: none;
  }
  
  .back-btn {
    padding: 10px;
    width: 10px;
    height: 10px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .card-header {
    padding: 1.5rem 1rem 1rem;
  }
  
  .pulse-icon {
    font-size: 3rem;
  }
  
  .countdown-timer {
    gap: 0.5rem;
  }
  
  .time-number {
    font-size: 1.5rem;
    min-width: 50px;
    padding: 0.5rem;
  }
  
  .time-label {
    font-size: 0.8rem;
  }
}
