/* Estilo General */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

/* Menú de Navegación */

/* ==========================
   NAVBAR
========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #;
  z-index: 1000;
  transition: all 0.4s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Logo a la izquierda, menú a la derecha */
  padding: 1rem 2rem;
  gap: 2rem;
}

.logo img {
  height: 70px;
  transition: all 0.3s;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: #532E87;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu li a:hover {
  color: #3f216a;
}

/* Navbar al hacer scroll */
.navbar.scrolled {
  background-color: #532E87;
}

.navbar.scrolled .logo img {
  content: url('img/logo-purple.png'); /* logo alternativo */
}

.navbar.scrolled .nav-menu li a {
  color: #fff; /* enlaces normales */
}

/* Menú hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #532E87;
  transition: all 0.3s;
}

/* Menú hamburguesa activo */
.nav-menu.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  background-color: #fff;
  padding: 1rem;
}

/* Cambiar color enlaces menú hamburguesa al hacer scroll */
.navbar.scrolled .nav-menu.active {
  background-color: #532E87;
}

.navbar.scrolled .nav-menu.active li a {
  color: #fff;
}

.navbar.scrolled .nav-menu.active li a:hover {
  color: #ddd;
}
.navbar.scrolled .hamburger span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s;
}


/* ==========================
   HEADER
========================== */
.hero {
  background-color: #532E87;
  color: #fff;
  padding: 3rem 2rem;
  padding-top: 120px; /* espacio para navbar fijo */
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.hero-btn {
  display: inline-block;
  background-color: #fff;
  color: #532E87;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.hero-btn:hover {
  background-color: #3f216a;
  color: #fff;
}

.hero-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
}

/* ==========================
   RESPONSIVE
========================== */
@media(max-width:1024px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-image img {
    max-width: 300px;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
  }
}

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

  .nav-menu {
    display: none; /* oculto por defecto */
  }

  .nav-menu.active {
    display: flex;
  }
}

@media(max-width:600px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .hero-image img {
    max-width: 200px;
  }
}



/* Header principal */
.hero {
  background-color: #fff;
  color: #532E87;
  padding: 3rem 2rem;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

/* Texto */
.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-text p {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  color: #019939;
  
}

.hero-btn {
  display: inline-block;
  background-color: #532E87;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.hero-btn:hover {
  background-color: #3f216a;
  color: #fff;
}

/* Imagen a la derecha */
.hero-image img {
  max-width: 800px;
  width: 100%;
  height: auto;
}

/* Responsivo */
@media(max-width:1024px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-image img {
    max-width: 300px;
    margin-bottom: 1.5rem;
  }
}

@media(max-width:600px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .hero-image img {
    max-width: 200px;
  }
}











/* Encabezado y Slider */
header {
  position: relative;
  max-height: 100%;
  overflow: hidden;
}

.carousel-inner {
  position: relative;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  max-height: 700px;
}

.carousel-caption {
  
 
  position: absolute;
  top: 50%; /* Centra verticalmente */
  left: 50%;
  transform: translate(-50%, -50%); /* Ajusta el texto para que esté completamente centrado */
  color: white;

}

.carousel-caption h5 {
  font-size: 2em;
  font-weight: bold;
  color: #532E87;
}

.carousel-caption p {
  font-size: 1.2em;
  background-color: #532E87;
}

.carousel-caption .btn {
  background-color: #532E87;
  color: white;
  padding: 10px 20px;
  font-size: 1.2em;
}

.carousel-caption .btn:hover {
  background-color: #381D63;
}





/* Sección de Servicios */
#servicios {
  padding: 50px 0;
  background-color: #f4f4f4;
}

#servicios h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: #532E87;
  font-weight: 600;
}

#servicios .row .col-md-4 {
  margin-bottom: 30px;
}

#servicios .col-md-4 img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#servicios h4 {
  font-size: 1.5em;
  margin-top: 20px;
  color: #532E87;
  font-weight: 600;
}

#servicios p {
  font-size: 1.1em;
  color: #666;
}


/* Sección de Teléfonos */
#telefonos {
  background-image: url('img/telefono.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 30px 0;
  text-align: center;
}

#telefonos h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: 600;
}

#telefonos p {
  font-size: 1.5em;
  margin-bottom: 10px;
}

#telefonos strong {
  font-size: 2em;
  color: #fff;
}


/* Sección de Teléfonos2 */
#telefonos2 {
  background-image: url('img/telefono.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5px 0;
  text-align: center;
}

#telefonos2 h2 {
  font-size: 2em;
  font-weight: 600;
}

#telefonos2 p {
  font-size: 1.5em;
  margin-bottom: 5px;
}

#telefonos2 strong {
  font-size: 2em;
  color: #fff;
}


/* Sección de Nosotros */
#nosotros {
  background-color: #f4f4f4;
  padding: 50px 0;
}

#nosotros h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #532E87;
  font-weight: 600;
}

#nosotros .row {
  display: flex;
  align-items: center;
}

#nosotros .col-md-6 {
  padding: 20px;
}

#nosotros img {
  width: 100%;
  border-radius: 10px;
  
}





/* estilos carrusel productos */

.productos {
  padding: 3rem 2rem;
  text-align: center;
  background: #f9f9f9;
}

.productos h2 {
  font-size: 2rem;
  color: #532E87;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* Contenedor del slider */
.slider-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.slider {
  display: flex;
  gap: 1rem;
  overflow: hidden;
}

/* Productos visibles */
.product-item {
  flex: 0 0 25%; /* 4 visibles */
  background: #fff;
  border-radius: 10px;
  padding: 0.8rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.product-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.6rem;
}

.product-item h3 {
  font-size: 1rem;
  color: #532E87;
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-item a {
  text-decoration: none;
  color: inherit;
}

/* Botones de navegación centrados */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #532E87;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
}

.slider-btn.prev {
  left: -50px;
}

.slider-btn.next {
  right: -50px;
}

/* Responsive */
@media(max-width:1024px) {
  .product-item { flex: 0 0 45%; }
  .slider-btn.prev { left: -40px; }
  .slider-btn.next { right: -40px; }
}

@media(max-width:600px) {
  .product-item { flex: 0 0 80%; }
  .slider-btn.prev { left: -30px; }
  .slider-btn.next { right: -30px; }
}



/* ==========================
   VIDEO SECTION
========================== */
.video-section {
  padding: 3rem 1.5rem;
  background-color: #fff;
  text-align: center;
}

.video-section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #532E87;
  font-weight: 600;
}

.video-section p {
  margin-bottom: 1.5rem;
  color: #444;
  font-size: 1rem;
}

/* Wrapper del video */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;  /* ancho máximo */
  margin: 0 auto;
  aspect-ratio: 16 / 9; /* mantiene proporción */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}




/* ==========================
   FOOTER
========================== */
.footer {
  background-color: #333;
  color: #fff;
  padding: 1.5rem 2rem;
  
}

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

/* Menú horizontal */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-menu li a:hover {
  color: #ddd;
}

/* Redes sociales */
.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  color: #fff;
  font-size: 1.3rem;
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: #ddd;
}

/* Línea inferior */
.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-menu {
    justify-content: center;
    gap: 1.2rem;
  }

  .footer-socials {
    justify-content: center;
  }
}

/* ============================= */
/* Banner de cabecera contacto   */
/* ============================= */
.contact-banner {
  width: 100%;
  height: 40vh;
  background: url('img/banner-contacto-web.jpg') no-repeat center center/cover;
}

/* Banner móvil */
@media (max-width: 768px) {
  .contact-banner {
    background: url('img/banner-contacto-mobile.jpg') no-repeat center center/cover;
    height: 30vh;
    padding-top: 300px;
  }
}

/* ============================= */
/* Sección de contacto           */
/* ============================= */
.contact-section {
  padding: 60px 20px;
  background: #f9f9f9;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Formulario */
.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #532E87;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form button {
  background: #532E87;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #3e2265;
}

/* Información de contacto */
.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #532E87;
}

.contact-info p {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  color: #532E87;
  font-size: 1.2rem;
}

/* Redes sociales */
.socials {
  margin-top: 15px;
}

.socials a {
  display: inline-block;
  margin-right: 15px;
  font-size: 1.5rem;
  color: #532E87;
  transition: 0.3s;
}

.socials a:hover {
  color: #3e2265;
}



/* ============================= */
/* Jarabes productos              */
/* ============================= */
/* Banner escritorio */
.jarabes-banner {
  width: 100%;
  height: 40vh;
  background: url('img/banner-jarabes-web.jpg') no-repeat center center/cover;
}

/* Banner móvil */
@media (max-width: 768px) {
  .jarabes-banner {
    background: url('img/banner-jarabes-mobile.jpg') no-repeat center center/cover;
    height: 25vh;
    padding-top: 300px;
  }
}


/* ============================= */
/* Pulpas productos              */
/* ============================= */
/* Banner escritorio */
.products-banner {
  width: 100%;
  height: 40vh;
  background: url('img/banner-pulpas-web.jpg') no-repeat center center/cover;
}

/* Banner móvil */
@media (max-width: 768px) {
  .products-banner {
    background: url('img/banner-pulpas-mobile.jpg') no-repeat center center/cover;
    height: 25vh;
    padding-top: 300px;
  }
}

/* ============================= */
/* Sección productos             */
/* ============================= */
.products-section {
  padding: 60px 20px;
  background: #f9f9f9;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.product-card h3 {
  font-size: 1.2rem;
  color: #532E87;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 8px;
}

.product-card span {
  font-size: 1.1rem;
  font-weight: bold;
  color: #000;
}

/* ============================= */
/* Responsivo                    */
/* ============================= */
@media (max-width: 992px) {
  .products-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .products-container {
    grid-template-columns: 1fr;
  }
}






/* Banner blog */
#banner-blog {
  width: 100%;
  height: 40vh;
  background: url('img/banner-blog-web.jpg') no-repeat center center/cover;
}

@media (max-width: 768px) {
  #banner-blog {
    background: url('img/banner-blog-mobile.jpg') no-repeat center center/cover;
    height: 20vh;
    padding-top: 300px;
  }
}

/* Blog section vertical centrada */
.blog-section {
  padding: 40px 20px;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas fijas */
  gap: 30px; /* menos espacio entre tarjetas */
  max-width: 1000px;
  margin: 0 auto;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  padding: 10px; /* menos padding interno */
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.blog-card img {
  width: 100%;
  height: 180px; /* imagen más chica */
  object-fit: cover;
  border-radius: 8px;
}

.blog-card h3 {
  margin: 10px 0 5px; /* menos margen */
  font-size: 1.1em; /* tamaño de fuente más pequeño */
  color: #532E87;
}

.blog-card p {
  color: #555;
  padding: 0 5px;
  font-size: 0.9em; /* texto más compacto */
}

.blog-card .blog-author {
  color: #999;
  margin-top: 5px;
  font-size: 0.8em; /* autor más pequeño */
}

/* Responsivo */
@media(max-width: 992px) {
  .blog-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 600px) {
  .blog-container {
    grid-template-columns: 1fr;
  }
}

/* Formulario blog */
#contacto-blog {
  max-width: 600px;
  margin: 50px auto;
  text-align: center;
}

#contacto-blog h2 {
  color: #532E87;
  margin-bottom: 20px;
}

#contacto-blog .contact-form input,
#contacto-blog .contact-form textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 0.95em;
}

#contacto-blog .contact-form textarea {
  resize: vertical;
  height: 100px;
}

#contacto-blog .contact-form button {
  background-color: #532E87;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  margin-top: 10px;
  transition: background-color 0.3s;
}

#contacto-blog .contact-form button:hover {
  background-color: #7b4bbf;
}

/* Datos de contacto y redes sociales blog */
#contacto-blog-info {
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
  font-size: 0.95em;
  color: #555;
}

#contacto-blog-info h3 {
  color: #532E87;
  margin-bottom: 10px;
}

#contacto-blog-info a {
  color: #532E87;
  text-decoration: none;
  margin: 0 5px;
}

#contacto-blog-info a:hover {
  text-decoration: underline;
}
.blog-detail-section {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.blog-detail-title {
  color: #532E87;
  text-align: center;
  margin-bottom: 10px;
}

.blog-detail-author {
  text-align: center;
  color: #999;
  margin-bottom: 30px;
}

.blog-detail-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
}

.blog-detail-content h2 {
  color: #532E87;
  margin-top: 20px;
}

.blog-detail-content ul,
.blog-detail-content ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.blog-detail-content p {
  color: #555;
  line-height: 1.6;
}


.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s, transform 0.3s;
  z-index: 999;
}

.whatsapp-btn:hover {
  background-color: #1ebe57;
  transform: scale(1.05);
}

.whatsapp-btn i {
  font-size: 1.5em;
}
