/* Bruno Ace Font */
@font-face {
  font-family: 'Bruno Ace';
  src: url('./fonts/bruno_ace/BrunoAce-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
  position: relative;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* Language Selector */
.language-selector {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
}

.lang-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
}

.lang-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
}

.lang-btn .flag {
  font-size: 13px;
}

.lang-btn .lang-text {
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeInDown 0.6s ease;
}

.logo {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: bounceIn 0.8s ease;
}

.header h1 {
  font-family: 'Bruno Ace', sans-serif;
  font-size: 3rem;
  font-weight: 200;
  color: white;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-family: 'Bruno Ace', sans-serif;
  font-size: 1.2rem;
  font-weight: 100;
  color: rgba(255, 255, 255, 0.9);
}

/* Download Section */
.download-section {
  background: white;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.6s ease;
}

.download-section h2 {
  font-family: 'Bruno Ace', sans-serif;
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #333;
}

/* Download Buttons */
.download-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

/* Responsive: 2 columnas en tablets */
@media (max-width: 1024px) {
  .download-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: 1 columna en móviles */
@media (max-width: 640px) {
  .download-buttons {
    grid-template-columns: 1fr;
  }
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 25px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.download-btn i {
  font-size: 2.5rem;
}

/* Desktop icons container */
.desktop-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.desktop-icons i {
  font-size: 1.8rem;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-text .small {
  font-size: 0.75rem;
  opacity: 0.9;
}

.btn-text .large {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Colores específicos */
.android {
  background: linear-gradient(135deg, #4285F4 0%, #3367D6 100%);
}

.ios {
  background: linear-gradient(135deg, #000000 0%, #434343 100%);
}

.desktop {
  background: linear-gradient(135deg, #0078D4 0%, #005A9E 100%);
}

.chrome {
  background: linear-gradient(135deg, #4285F4 0%, #3367D6 100%);
}

.edge {
  background: linear-gradient(135deg, #0078D7 0%, #005A9E 100%);
}

/* Web Player Button */
.web-player {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.web-player p {
  margin-bottom: 15px;
  color: #666;
}

.web-player-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.web-player-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.web-player-btn i {
  font-size: 1.3rem;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.feature {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature i {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 15px;
}

.feature h3 {
  font-family: 'Bruno Ace', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333;
}

.feature p {
  color: #666;
  line-height: 1.6;
}

/* Footer */
.footer {
  text-align: center;
  color: white;
  padding: 20px 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-links a {
  color: white;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

.footer p {
  margin: 5px 0;
  font-size: 0.9rem;
}

.footer a {
  color: white;
  text-decoration: underline;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

.modal-header {
  margin-bottom: 20px;
}

.modal-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  border-radius: 18px;
}

.modal-content h2 {
  font-family: 'Bruno Ace', sans-serif;
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 15px;
}

.modal-content p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-install {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-install:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-cancel {
  padding: 12px 30px;
  background: transparent;
  color: #666;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

/* Responsive */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }
  
  .download-section {
    padding: 25px;
  }
  
  .language-selector {
    top: 10px;
    right: 10px;
    padding: 6px;
  }
  
  .lang-btn {
    padding: 2px 4px;
  }
  
  .lang-btn .lang-text {
    display: none;
  }
  
  .lang-btn .flag {
    font-size: 13px;
  }
}
