/* Language Selector Styles */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.lang-btn .fa-globe {
    font-size: 16px;
}

.current-lang {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    z-index: 1000;
    overflow: hidden;
    margin-top: 8px;
    animation: slideDown 0.3s ease;
}

.lang-dropdown-content.show {
    display: block;
}

.lang-option {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.lang-option.active {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
}

.lang-option .flag {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Animation for dropdown */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-selector {
        top: 15px;
        right: 15px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .lang-dropdown-content {
        right: -10px;
        min-width: 160px;
    }
    
    .lang-option {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .lang-dropdown-content {
        background: #2d3748;
        border: 1px solid #4a5568;
    }
    
    .lang-option {
        color: #e2e8f0;
        border-bottom-color: #4a5568;
    }
    
    .lang-option:hover {
        background-color: #4a5568;
        color: #63b3ed;
    }
    
    .lang-option.active {
        background-color: #2c5282;
        color: #90cdf4;
    }
}

/* WhatsApp Floating Button con texto - tamaño pequeño y elegante */
.whatsapp-float-wrap {
  position: fixed;
  left: 30px;
  bottom: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
}
.whatsapp-float {
  position: static;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: box-shadow 0.2s, transform 0.2s;
}
.whatsapp-float img {
  width: 32px;
  height: 32px;
  display: block;
}
.whatsapp-label {
  background: #25D366;
  color: #fff;
  font-weight: 600;
  font-size: 1em;
  padding: 8px 16px;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  white-space: nowrap;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  line-height: 1.2;
}
.whatsapp-float-wrap:hover .whatsapp-label {
  background: #1ebe57;
}
@media (max-width: 600px) {
  .whatsapp-float-wrap {
    left: 10px;
    bottom: 10px;
    gap: 6px;
  }
  .whatsapp-float {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
  }
  .whatsapp-float img {
    width: 26px;
    height: 26px;
  }
  .whatsapp-label {
    font-size: 0.95em;
    padding: 6px 10px;
  }
}

/* Portafolio: grid 3x3, celdas 350x350px en escritorio, 90vw en mobile */
.portfolio-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 350px);
  grid-template-rows: repeat(3, 350px);
  gap: 12px;
  justify-content: center;
  margin: 0 auto 40px auto;
  background: transparent;
  padding: 0;
  max-width: 1100px;
}

.portfolio-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  background: #eaeaea;
}

@media (max-width: 1200px) {
  .portfolio-wrapper {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    max-width: 98vw;
  }
}
@media (max-width: 700px) {
  .portfolio-wrapper {
    grid-template-columns: 1fr;
    max-width: 98vw;
  }
  .portfolio-wrapper img {
    width: 90vw;
    height: 90vw;
    max-width: 90vw;
    max-height: 90vw;
  }
}

/* Si había estilos originales para .portfolio-wrapper o .each-portfolio img, restáuralos aquí. Si no, puedes dejarlo vacío o solo con los estilos generales del sitio. */ 