/* MarketSign Books - Estilos Principales */

:root {
  --primary-red: #D32F2F;
  --dark-red: #B71C1C;
  --light-red: #FFCDD2;
  --black: #000000;
  --dark-gray: #212121;
  --medium-gray: #424242;
  --light-gray: #757575;
  --lighter-gray: #BDBDBD;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
}

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

body {
  font-family: 'Arial', 'Helvetica', sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  height: 60px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-item a {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  padding: 10px 0;
}

.nav-item a:hover {
  color: var(--primary-red);
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-red);
  transition: width 0.3s ease;
}

.nav-item a:hover::after {
  width: 100%;
}

.language-switcher {
  display: flex;
  gap: 10px;
}

.lang-btn {
  padding: 8px 15px;
  border: 2px solid var(--primary-red);
  background: transparent;
  color: var(--primary-red);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--primary-red);
  color: var(--white);
  transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--dark-gray);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/business-books.jpg') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero .tagline {
  font-size: 1.5rem;
  color: var(--lighter-gray);
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero .subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease 0.4s both;
}

.cta-button {
  display: inline-block;
  background: var(--primary-red);
  color: var(--white);
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.6s both;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.cta-button:hover {
  background: var(--dark-red);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

/* Sections */
.section {
  padding: 80px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--dark-gray);
  margin-bottom: 20px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-red);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--light-gray);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.card {
  background: var(--white);
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--off-white);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--white);
}

.card h3 {
  font-size: 1.5rem;
  color: var(--dark-gray);
  margin-bottom: 15px;
}

.card p {
  color: var(--light-gray);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--primary-red);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
  color: var(--lighter-gray);
  text-decoration: none;
  line-height: 1.8;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--medium-gray);
  padding-top: 30px;
  text-align: center;
  color: var(--lighter-gray);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .tagline {
    font-size: 1.2rem;
  }
  
  .nav-container {
    height: 70px;
  }
  
  .logo {
    height: 50px;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 15px;
  }
}


/* Estilos para imágenes responsivas */
@media (max-width: 768px) {
    /* Hero section en móvil */
    .hero {
        background-attachment: scroll !important;
    }
    
    /* Grids de historia en móvil */
    section#history div[style*="grid-template-columns"] {
        display: block !important;
        grid-template-columns: none !important;
    }
    
    section#history img {
        width: 100% !important;
        height: 250px !important;
        margin-bottom: 20px;
    }
    
    /* Imagen de About en móvil */
    section#about img {
        height: 250px !important;
    }
    
    /* Imagen de Publish en móvil */
    section#publish img {
        height: 200px !important;
    }
}

/* Efectos hover para imágenes */
section img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3) !important;
}

