/**
 * Reusable Component Styles
 * Header, Footer, Navigation, Buttons, Cards, Forms, etc.
 */

/* ========== HEADER ========== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(132, 117, 228, 0.15);
  transition: var(--transition-smooth);
}

header:hover {
  background: rgba(255, 255, 255, 0.85);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

header .logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--purple-dark), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  transition: var(--transition-smooth);
}

header .logo:after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-light), transparent);
  transition: var(--transition-smooth);
}

header .logo:hover:after {
  width: 100%;
}

/* ========== NAVIGATION ========== */
nav {
  display: flex;
  gap: 1.5rem;
}

nav ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

nav ul li {
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--purple-dark);
  padding: 0.5rem 0;
  position: relative;
  font-weight: 500;
  transition: var(--transition-smooth);
}

nav a:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple-light);
  transition: var(--transition-smooth);
}

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

nav a:hover:before {
  width: 100%;
}

nav .menu-item-has-children {
  position: relative;
}

nav .menu-item-has-children > a:after {
  content: '▼';
  font-size: 0.6rem;
  margin-left: 5px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

nav .menu-item-has-children:hover > a:after {
  transform: rotate(180deg);
}

nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 200px;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(60, 35, 105, 0.1);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 100;
  border: 1px solid var(--glass-border);
  display: block;
  overflow: hidden;
}

nav .sub-menu li {
  display: block;
}

nav .sub-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  border-radius: 0;
  position: relative;
}

nav .sub-menu a:before {
  display: none;
}

nav .sub-menu a:hover {
  background: rgba(132, 117, 228, 0.1);
  color: var(--purple-light);
  padding-left: 2rem;
}

/* ========== BUTTONS ========== */
.btn-ingresar,
button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--purple-medium), var(--purple-light));
  color: var(--text-light);
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(106, 85, 185, 0.3);
}

.btn-ingresar:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(106, 85, 185, 0.4);
}

.btn-platform {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-medium));
  color: var(--text-light);
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 6px 20px rgba(60, 35, 105, 0.3);
}

.btn-platform:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(60, 35, 105, 0.4);
  background: linear-gradient(135deg, var(--purple-medium), var(--purple-light));
}

/* ========== CARDS ========== */
.card,
.benefit-card,
.product-card,
.sector-card-enhanced {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card:hover,
.benefit-card:hover,
.product-card:hover,
.sector-card-enhanced:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

.about-card,
.contact-location {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.about-card:hover,
.contact-location:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

/* ========== SEPARATOR LINE ========== */
.separator-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-light), var(--purple-medium));
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* ========== HERO SECTION ========== */
.hero,
.product-hero {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-medium));
  color: var(--text-light);
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1,
.product-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.product-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  color: var(--text-light);
}

/* ========== SECTION TITLES ========== */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.portfolio-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--purple-dark);
}

/* ===========================
   FOOTER STYLES - MEJORADO
   =========================== */
footer {
  background: linear-gradient(135deg, var(--purple-dark) 0%, #2a1a4a 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.footer-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2.5rem 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.5fr 0.8fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

/* Footer Sections */
.footer-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-light);
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #4A90E2, #7ED321);
  border-radius: 2px;
}

/* About Section */
.footer-section.about p {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

/* Contact Section */
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-icon {
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.email-icon {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}

.phone-icon {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>');
}

.contact-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #4A90E2;
}

/* Locations Section */
.locations-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.location-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  aspect-ratio: auto;
  min-height: 220px;
}

.location-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px) scale(1.08);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  aspect-ratio: auto;
  min-height: 220px;
}

.location-flag {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  margin-bottom: 0.6rem;
}

.location-card:hover .location-flag {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.85rem;
}

.colombia-flag {
  background-image: url('https://flagcdn.com/w320/co.png');
}

.usa-flag {
  background-image: url('https://flagcdn.com/w320/us.png');
}

.location-content {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.location-content h4 {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--text-light);
  font-weight: 700;
  transition: all 0.3s ease;
}

.location-card:hover .location-content h4 {
  margin-bottom: 0.85rem;
}

.location-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  transform: translateY(-10px);
  width: 100%;
}

.location-card:hover .location-details {
  max-height: 160px;
  opacity: 1;
  transform: translateY(0);
}

.location-address {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
}

.location-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #4A90E2;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.4rem 0.75rem;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 6px;
}

.location-phone::before {
  content: '📞';
  font-size: 0.85rem;
}

.location-phone:hover {
  color: #7ED321;
  background: rgba(126, 211, 33, 0.1);
  transform: scale(1.05);
}

/* Social Section */
.social-icons {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  
}
/* facebook */
.social-icon-f {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.social-icon-f::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #4A90E2, var(--purple-light));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.social-icon-f:hover::before {
  opacity: 1;
}

.social-icon-f:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.social-icon-f i {
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 1;
}

/* instagram */
.social-icon-i {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.social-icon-i::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #e24a4a, var(--purple-light));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.social-icon-i:hover::before {
  opacity: 1;
}

.social-icon-i:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(226, 92, 74, 0.4);
}

.social-icon-i i {
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 1;
}

/* linkedin */
.social-icon-l {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.social-icon-l::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1327dd, var(--purple-light));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.social-icon-l:hover::before {
  opacity: 1;
}

.social-icon-l:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(74, 102, 226, 0.4);
}

.social-icon-l i {
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 1;
 
}

.social-icon-facebook {
  background-image: url('https://cdn.iconscout.com/icon/free/png-512/free-facebook-logo-icon-svg-download-png-438134.png?f=webp&w=1000');
}

.social-icon-instagram {
  background-image: url('https://cdn.iconscout.com/icon/free/png-512/free-instagram-logo-icon-svg-download-png-95498.png?f=webp&w=1000');
}

.social-icon-linkedin {
  background-image: url('https://cdn.iconscout.com/icon/free/png-512/free-linkedin-logo-icon-svg-download-png-438140.png?f=webp&w=1000');
}


/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  position: relative;
}

.footer-bottom-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4A90E2;
  transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--text-light);
}

.footer-bottom-links a:hover::after {
  width: 100%;
}

/* ========== WHATSAPP FLOAT BUTTON ========== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  color: white;
}

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

/* ========== FORMS ========== */
input,
textarea,
select {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(132, 117, 228, 0.2);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.8);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(132, 117, 228, 0.1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-wrapper {
    padding: 3rem 1.5rem 1.5rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 0 1rem;
  }

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

  .location-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .hero h1,
  .product-hero h1 {
    font-size: 2rem;
  }

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

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .footer-section h3 {
    font-size: 1.1rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}