/* Estilos Generales */
:root {
  --primary-color: #2962ff;
  --secondary-color: #00c853;
  --dark-color: #0d47a1;
  --light-color: #bbdefb;
  --text-color: #263238;
  --text-light: #eceff1;
  --background: #f5f7fa;
  --card-bg: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--dark-color);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
#main-header {
  background-color: var(--dark-color);
  color: var(--text-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  font-size: 2rem;
  color: var(--secondary-color);
}

.logo h1 {
  margin: 0;
  font-size: 1.8rem;
  color: white;
}

/* Navegación */
#main-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

#main-nav a {
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
}

#main-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(41, 98, 255, 0.8), rgba(0, 200, 83, 0.8)), 
              url('../images/crypto-bg.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 5rem 1rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Botones */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.btn:hover {
  background-color: var(--dark-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* Ticker de Precios */
.price-ticker {
  background-color: var(--card-bg);
  padding: 1rem;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.ticker-content {
  display: flex;
  gap: 2rem;
  animation: ticker 20s linear infinite;
}

.ticker-content span {
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
}

/* Tarjetas de Criptomonedas */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.crypto-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.crypto-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.crypto-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: var(--transition);
}

.crypto-card img:hover {
  opacity: 0.9;
}

.crypto-card-content {
  padding: 1.5rem;
}

.crypto-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  height: 200px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  transition: var(--transition);
}

.gallery-item:hover .overlay {
  background-color: rgba(41, 98, 255, 0.8);
}

.gallery-text {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 1rem 0;
  padding: 1rem;
  background-color: var(--light-color);
  border-radius: 8px;
  display: none;
}

/* Audio Section */
.audio-section {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: var(--shadow);
  text-align: center;
}

audio {
  width: 100%;
  max-width: 500px;
  margin: 1rem auto;
}

/* Formulario de Contacto */
#contact-form {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--text-light);
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: var(--light-color);
}

.footer-section a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 0.5rem;
  color: var(--light-color);
}

/* Animaciones */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  #main-nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
}