/* Html */
* {
  font-family: 'Montserrat', sans-serif;
}

:root {
  --nav-h:90px;
  --color-principal: #8EB35F;
  --fuente-principal: 'Montserrat', sans-serif;
}

body {
  font-family: var(--fuente-principal);
  font-display: swap;
}

body, html {
  overflow-x: hidden;
}

nav {
  background-color: #FA9539;
}

.navbar-brand {
  font-weight: bold;
  color: white;
}

.navbar-brand:hover {
  color: grey;
}

body nav li {
  font-weight: bold;
  padding-left: 15px; 
  padding-right: 15px;
  color: white;
}

.nav-verde {
  padding-top: 5px;
  display: flex;
  background-color: #8EB35F;
  justify-content: flex-end;  
  color: white; /* Añadido para que el texto sea visible */
}

/* =========================
   HERO SECTION
========================= */
.hero{
  position:relative;
  min-height:60vh;
  background:url("../optimized/fondo.webp") center/cover no-repeat;
}
.hero picture{ display:none; } 

.hero__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero__overlay {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.4);
  color: #fff;
  text-align: center;
  padding: 2rem;
  z-index: 1;
}

.hero__overlay h1 {
  font-family: 'Lobster', cursive;
  font-size: 3rem;
  margin-bottom: .5em;
  line-height: 1.2;
}

.hero__overlay p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* =========================
   CONTACT SECTION
========================= */
.image-container {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 390px;
  overflow: hidden;
  align-items: stretch;
} 

.image-container img {
  width: 100%;
  min-height: 550px;
  display: block;
  object-fit: cover; /* Añadido para que la imagen de contacto no se deforme */
}

.contact__overlay {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.4);
  color: #fff;
  text-align: center;
  padding: 2rem;
  z-index: 1;
}

.contact__overlay h2 {
  font-family: 'Lobster', cursive;
  font-size: 2.5rem;
  margin-bottom: 0.5em;
}

.contact__overlay p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 1.5em;
}

nav.navbar{
  padding:0;
}

.navbar-collapse ul {
  text-align: center;
}

/* =========================
   CAROUSEL RESPONSIVE OPTIMIZADO (SECCIÓN CORREGIDA)
========================= */
.custom-carousel {
  position: relative;
  max-width: 1200px; /* Un ancho máximo para el contenedor en desktop */
  margin: 0 auto;    /* Centra el carrusel */
  padding: 2rem 50px; /* Padding para dejar espacio a los botones */
  box-sizing: border-box;
  min-height: 400px;
}

.carousel-inner {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 0;
  padding: 1rem 0;
  min-height: 350px;
  width: 100%;
}
.carousel-inner::-webkit-scrollbar {
  display: none;
}

/* Base para los items */
.carousel-item {
  background-color: transparent; /* Quita el rojo */
  height: 320px;
  width: 280px;
  margin: 0 10px; /* Espacio entre items */
  display: block; /* MANTÉN block, no flex */
  flex-shrink: 0; /* Evita que se encoja */
  box-sizing: border-box;
}

@media (max-width: 576px) {
  .carousel-item {
    width: 250px;
    height: 280px;
  }
}

@media (min-width: 992px) {
  .carousel-item {
    width: 300px;
    height: 340px;
  }
}

/* Cards del carousel */
.card {
  border-color: #FA9539;
  border-radius: 15px;
  border-width: 3px;
  height: 100%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto;
  width: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8f9fa;
  border-radius: 10px 10px 0 0;
}

.img-wrapper img,
.img-wrapper picture img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .img-wrapper img,
.card:hover .img-wrapper picture img {
  transform: scale(1.05);
}

.img-ver {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  text-align: center;
  font-weight: bold;
  color: var(--color-principal);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card-body {
  padding: 1rem;
}

/* Controles del carousel optimizados */
.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-principal);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: #FA9539;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.carousel-control-prev {
  left: 10px;
}

.carousel-control-next {
  right: 10px;
}

/* Iconos de los controles */
.carousel-control-prev .fa,
.carousel-control-next .fa {
  color: white;
  font-size: 1.2rem;
}


/* =========================
   VISION-MISSION SECTION
========================= */
.vision-mission {
  background: var(--color-principal);
  padding: 3rem 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 400px));
  gap: 2rem;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  
}

.section-title {
  font-family: 'Lobster', cursive;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  grid-column: 1 / -1;
  text-align: center;
}

.vm-card {
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  color: #fff;
  box-shadow:
    6px 6px 12px rgba(0,0,0,0.1),
   -6px -6px 12px rgba(0,0,0,0.7);
}

.vm-orange {
  background: #FA9539;
}

.vm-green {
  background: #8EB35F;
}

.vm-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.vm-card h3 {
  font-family: 'Lobster', cursive;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.vm-card p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsive para vision-mission */
@media (max-width: 768px) {
  .vision-mission {
    background: var(--color-principal);
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 3rem 1rem;
  }
}

/* =========================
   GENERAL STYLES
========================= */
.col-md-6 {
  display: grid;
  place-items: center;
}

h1, h2, p {
  text-align: center;
}

.btn {
  --bs-btn-font-size: 20px;
}

.h1-titulo {
  margin-top: 50px;
  margin-bottom: 50px;
  font-family: 'Lobster', cursive;
  font-size: 3rem;
  color: var(--color-principal);
}

.lista-productos {
  text-align: center;
  padding: 20px 0 20px 0;
}

.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn img {
  width: 30px;
  height: 30px;
}

/* =========================
   FOOTER MODERNO
========================= */
.footer-modern {
  background: linear-gradient(135deg, #FF9900 0%, #FA9539 100%);
  color: #333;
  padding: 3rem 0 0 0;
  position: relative;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section {
  margin-bottom: 2rem;
}

/* Información de la empresa */
.company-info {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  max-width: 180px;
  height: auto;
  margin-bottom: 0.5rem;
}

.footer-logo h3 {
  font-family: 'Lobster', cursive;
  font-size: 2rem;
  color: #fff;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.company-address,
.company-phone {
  color: #fff;
  margin: 0.5rem 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Redes sociales */
.social-media {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  color: #FF9900;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  color: #FA9539;
}

.social-icon i {
  font-size: 1.2rem;
}

/* Títulos de secciones */
.footer-section h4 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Enlaces del footer */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  opacity: 0.9;
}

.footer-links a:hover {
  color: #333;
  opacity: 1;
}

/* Libro de reclamaciones */
.complaints-book {
  display: flex;
  justify-content: center;
}

.complaints-card {
  background: #fff;
  border: 2px solid #0066cc;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  max-width: 200px;
  transition: transform 0.3s ease;
}

.complaints-card:hover {
  transform: translateY(-2px);
}

.complaints-card h4 {
  color: #0066cc;
  font-size: 0.8rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
}

.complaints-card i {
  color: #0066cc;
  font-size: 1.5rem;
}

/* Newsletter */
.newsletter-section {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 2rem;
}

.newsletter-section p {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem;
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  outline: none;
}

.newsletter-btn {
  background: var(--color-principal);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: #7a9f4f;
}

/* Footer bottom */
.footer-bottom {
  background: var(--color-principal);
  padding: 1rem 0;
  text-align: center;
  margin-top: 2rem;
}

.footer-bottom p {
  color: #fff;
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive para desktop */
@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    gap: 3rem;
  }
  
  .company-info {
    grid-column: 1;
    text-align: left;
  }
  
  .newsletter-section {
    grid-column: 5;
    text-align: left;
  }
  
  .newsletter-form {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .newsletter-input,
  .newsletter-btn {
    width: 100%;
  }
}

/* Responsive para móvil */
@media (max-width: 767px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }
  
  .newsletter-input,
  .newsletter-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .footer-logo h3 {
    font-size: 1.5rem;
  }
  
  .social-media {
    gap: 0.5rem;
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
  }
  
  .complaints-card {
    max-width: 180px;
    padding: 0.75rem;
  }
  
  .complaints-card h5 {
    font-size: 0.7rem;
  }
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 767px) {
  nav.navbar .container {
    max-width: 100%;
    padding-left: 15px; /* Devolvemos un poco de padding para que no se pegue al borde */
    padding-right: 15px;
  }

  .navbar-collapse {
    background: #FA9539;
  }

  .navbar-toggler {
    border-color: #fff;
  }
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }

  .hero__overlay h1 { 
    font-size: 2.2rem; 
  }
  
  .hero__overlay p { 
    font-size: 1rem; 
  }

  .contact__overlay h2 { 
    font-size: 1.8rem; 
  }
  
  .contact__overlay p { 
    font-size: 1rem; 
  }

  .nav-verde {
    display: none;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .h1-titulo {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* 1) Espacio “vertical” por defecto en todas las secciones */
section {
  padding: 4rem 0; /* 4rem arriba y abajo */
}

/* 2) Ajustes concretos para la galería de paralelogramos */
#galeria-negocio {
  /* Si ya tienes padding, solo añade margin-bottom extra: */
  margin-bottom: 4rem;
}
/* O bien al propio contenedor flex */
#parallelogram-gallery {
  display: flex;
  gap: 1rem;          /* separación entre skew-wrappers */
  max-width: 1200px;
  margin: 0 auto 4rem;/* 4rem abajo para separar de la siguiente sección */
  height: 350px;
}

.skew-wrapper {
  flex: 1;
  overflow: hidden;
  /* ajusta la inclinación general: */
  transform: skewX(-15deg);
  transition: transform .3s ease;
  cursor: pointer;
}
.skew-wrapper:hover {
  transform: skewX(-15deg) scale(1.03);
}

.skew-content {
  position: relative;
  width: 100%; height: 100%;
  /* “deshacemos” el skew para que la imagen quede recta */
  transform: skewX(15deg);
  background-size: cover;
  background-position: center;
  background-color: #eee;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Etiqueta sencilla sobre degradado */
.skew-content h3 {
  margin: 0 0 1rem;
  padding: .5rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
  color: #fff;
  font-family: 'Lobster', cursive;
  transform: skewX(15deg); /* mantiene la orientación recta */
}

/* Variantes de color o sombra si quieres diferenciarlos */
.skew-left   .skew-content { box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.skew-center .skew-content { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.skew-right  .skew-content { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* Responsive: reduce altura y tamaños */
@media (max-width: 768px) {
  #parallelogram-gallery {
    height: 250px;
  }
  .parallelogram h3 {
    font-size: 1rem;
    padding: .4rem .8rem;
  }
}