/* ===== ESTILOS GENERALES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Baloo 2', cursive;
}

body {
  background-color: #f8fafc;
  color: #2d3748;
  overflow-x: hidden;
  line-height: 1.6;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  /* No necesitas calcular alturas ni añadir padding al body */
}

/* El contenido fluye naturalmente debajo del header */

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
}

.logo h2 {
  font-weight: 700;
  font-size: 1.5rem;
  color: rgb(0, 27, 100);
}

.header nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #002e69;
  font-weight: 600;
  transition: 0.3s;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
}

.header nav a:hover {
  color: white;
  background-color: rgba(55, 72, 255, 0.368);
}

.header nav a.logout {
  color: #fc8181;
  border: 1px solid #fc8181;
  padding: 0.5rem 1rem;
}

.header nav a.logout:hover {
  background-color: #fc8181;
  color: white;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.6rem;
  background: none;
  border: none;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #9dc4ff 50%, #5a6aff 100%);
  color: white;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero-container div {
  margin: 20px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  padding-right: 40px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 35px;
  opacity: 0.9;
  max-width: 500px;
  line-height: 1.6;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ===== BOTONES ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #1073d6;
  color: white;
}

.btn-primary:hover {
  background: #2b88e5;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(51, 140, 255, 0.26);
}

/* ===== SECCIÓN NOVEDADES ===== */
.novedades {
  text-align: center;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 4rem 1rem;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.novedades h2 {
  color: #2d3748;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
}

.carousel {
  position: relative;
  overflow: hidden;
  width: 75%;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
}

.slide img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.slide p {
  margin-top: 0.7rem;
  font-weight: 600;
  color: #2d3748;
  font-size: 1.2rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 32, 44, 0.7);
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  color: #ffffff;
  transition: 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(26, 32, 44, 0.9);
}

.prev { left: 15px; }
.next { right: 15px; }

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: #e2e8f0;
}

.footer-container {
  display: flex;
  text-align: center;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-container > div {
  flex: 1;
  min-width: 250px;
  margin: 1rem;
  align-items: center;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-logo p {
  max-width: 300px;
  color: #a0aec0;
}

.footer-links h4, .footer-social h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-top: 0.8rem;
}

.footer-links a {
  color: #cbd5e0;
  text-decoration: none;
  transition: 0.3s;
}

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

.footer-social {
  text-align: center;
}

.footer-social .icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-social .icons a {
  color: #cbd5e0;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.footer-social .icons a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #a0aec0;
  border-top: 1px solid #4a5568;
}

/* ===== BOTONES FLOTANTES ===== */
.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
}

.chat-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 0.9rem 1.5rem;
  transition: all 0.3s ease;
  background: #0077b6;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  width: 60px;
  height: 60px;
  overflow: hidden;
  cursor: pointer;
}

.chat-box span {
  display: none;
}

.chat-box:hover {
  width: auto;
  transform: scale(1.05);
}

.chat-box:hover span {
  display: inline;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 50px;
    padding-right: 0;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle { 
    display: flex; 
  }

  .header {
    flex-wrap: wrap;
  }

  .header h2 {
    font-size: 1.2rem;
  }

  .nav {
    width: 100%;
    flex-direction: column;
    text-align: center;
    margin-top: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .nav a {
    padding: 0.8rem;
    display: block;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-left: 0;
  }

  .nav.show {
    max-height: 300px;
  }

  .hero {
    padding: 60px 20px;
    min-height: auto;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .carousel {
    width: 90%;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .carousel {
    width: 95%;
  }
  
  .slide {
    padding: 1rem;
  }
  
  .chat-box {
    width: 50px;
    height: 50px;
  }
}