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

body {
  font-family: 'Cabinet Grotesk', sans-serif;
  line-height: 1.6;
  color: #333;
}

#productos, #locales, #franquicias, #nosotros, #contacto {
  scroll-margin-top: 85px; /* altura de tu header */
}


/* Títulos principales con Cabinet Grotesk (ya está por defecto) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 600;
}

/* Títulos cortos decorativos con Dancing Script */
h1.title-script, 
h2.title-script, 
h3.title-script {
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
}

button.title-script {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 25px;
  font-weight: normal;
  padding-left: 40px;
}


/*separators */

.wave-separator {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  background: #FDFFFC; /* debe coincidir con el fondo de #productos */
  padding-top: 0px; /* para evitar que el SVG se corte */
}

.wave-separator svg {
  display: block;
  width: 100%;
  height: 100.6%;
}

.wave-separator path {
  fill: #BBD1C8; /* debe coincidir con el fondo de #locales */
  animation: waveFloat 6s ease-in-out infinite;
}

/* Animación sutil para dar vida */
@keyframes waveFloat {
  0%, 100% {
    d: path("M0,0 C480,100 960,0 1440,100 L1440,0 L0,0 Z");
  }
  50% {
    d: path("M0,0 C480,80 960,80 1440,0 L1440,0 L0,0 Z");
  }
}

.wave-separator-down {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  background: #FDFFFC; /* coincide con el fondo de #locales */
  padding-top: 0px; /* para evitar que el SVG se corte */
}

.wave-separator-down svg {
  display: block;
  width: 100%;
  height: 100.6%;
}

.wave-separator-down path {
  fill: #37775D; /* fondo de #franquicias */
  animation: waveFloatReverse 6s ease-in-out infinite;
}

/* Animación invertida */
@keyframes waveFloatReverse {
  0%, 100% {
    d: path("M0,100 C480,0 960,100 1440,0 L1440,100 L0,100 Z");
  }
  50% {
    d: path("M0,100 C480,20 960,80 1440,20 L1440,100 L0,100 Z");
  }
}

.wave-separator-top {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  background: transparent;
  padding-top: 0px; /* para evitar que el SVG se corte */
}

.wave-separator-top svg {
  display: block;
  width: 100%;
  height: 100.6%;
}

.wave-separator-top path {
  fill: #BBD1C8;
  animation: waveFloatTop 6s ease-in-out infinite;
}

@keyframes waveFloatTop {
  0%, 100% {
    d: path("M0,100 C480,0 960,100 1440,0 L1440,100 L0,100 Z");
  }
  50% {
    d: path("M0,100 C480,20 960,80 1440,20 L1440,100 L0,100 Z");
  }
}

.wave-separator-top {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  background: #fff;
  padding-top: 1px; /* para evitar que el SVG se corte */
}

.wave-separator-top svg {
  display: block;
  width: 100%;
  height: 100.6%;
}

.wave-separator-top path {
  fill: #BBD1C8; /* Color acorde a tu diseño */
  animation: waveFloatTop 6s ease-in-out infinite;
}

@keyframes waveFloatTop {
  0%, 100% {
    d: path("M0,100 C480,0 960,100 1440,0 L1440,100 L0,100 Z");
  }
  50% {
    d: path("M0,100 C480,20 960,80 1440,20 L1440,100 L0,100 Z");
  }
}

.wave-separator-bottom {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  background: #fff; /* color superior: Nosotros */
  padding-top: 0px; /* para evitar que el SVG se corte */
}

.wave-separator-bottom svg {
  display: block;
  width: 100%;
  height: 100.6%;
}

.wave-separator-bottom path {
  fill: #BBD1C8; /* color inferior: Contacto */
  animation: waveFloatBottom 6s ease-in-out infinite;
}

@keyframes waveFloatBottom {
  0%, 100% {
    d: path("M0,0 C480,100 960,0 1440,100 L1440,0 L0,0 Z");
  }
  50% {
    d: path("M0,0 C480,80 960,20 1440,80 L1440,0 L0,0 Z");
  }
}

.wave-separator-top-2 {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  background: #37775D;
  padding-top: 1px; /* para evitar que el SVG se corte */
}

.wave-separator-top-2 svg {
  display: block;
  width: 100%;
  height: 100.6%;
}

.wave-separator-top-2 path {
  fill: #BBD1C8;
  animation: waveFloatTop2 6s ease-in-out infinite;
}



@keyframes waveFloatTop2 {
  0%, 100% {
    d: path("M0,100 C480,0 960,100 1440,0 L1440,100 L0,100 Z");
  }
  50% {
    d: path("M0,100 C480,20 960,80 1440,20 L1440,100 L0,100 Z");
  }
}

@keyframes waveFloatGeneric {
  0%, 100% {
    d: path("M0,100 C480,0 960,100 1440,0 L1440,100 L0,100 Z");
  }
  50% {
    d: path("M0,100 C480,20 960,80 1440,20 L1440,100 L0,100 Z");
  }
}

/*fin separators */



/*fin carusel mobile */

/* General */


.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ddd;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 80px; /*60*/
  margin: 5px 0 -2px 0; /*10*/
}

/* Estilos para el menú de navegación */

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  font-size: 21px;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

nav a:hover {
  color: #37775D;
}

nav {
  position: relative;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  margin-left: auto;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #000;
  transition: 0.3s;
}

/* Menú responsive */
.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
}

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

  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    font-size: 20px;
    border-radius: 10px;
  }

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

  nav ul li a {
    padding: 0.5rem 0;
    display: block;
  }
}

/* Mostrar solo en desktop */
.nav-desktop {
  display: flex;
}

.nav-mobile,
.hamburger {
  display: none;
}

.nav-desktop a.active {
  color: #37775D;
  font-weight: bold;
  position: relative;
}

.nav-desktop a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #37775D;
}


@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: block;
  }

  .hamburger {
    display: flex;
  }
}


/* fin nav */

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 95vh; 
  margin: auto;
  background: #fff;
}

.carousel.dragging {
  cursor: grabbing; /* mano cerrada mientras arrastrás */
}

.slides-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%; 
  height: 100%;

}

.slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative; /* opcional para que active quede en flujo normal */
}

.slide .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro */
  z-index: 1;
}

.slide .text {
  position: absolute;
  top: 35%;
  left: 10%;
  transform: translateY(0); 
  color: white;
  max-width: 750px;
}

.slide h1 {
  font-size: 3.5rem;   
  font-weight: 700;
  margin-bottom: 0.3em; /* Ajusta espacio debajo del título */
  line-height: 1.1;
}

.slide p {
  font-size: 1.5rem;   /* Subtítulo más grande */
  margin: 0 0 1em 0;
}

.slide .buttons button {
  font-size: 1.25rem;  /* Botón más grande */
  padding: 12px 28px;  /* Más alto y ancho */
  cursor: pointer;
  border: none;
  border-radius: 50px;
  background-color: #37775D;
  color: white;
  transition: background-color 0.3s ease;
  letter-spacing: 1px;
}

.slide .buttons button:hover {
  background-color: #0E131F;
}


/* Responsive */
@media (max-width: 768px) {
  .carousel {
    height: 70vh; /* más chico que desktop */
  }

  .slide {
    position: relative;
    height: 100%;
  }

  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
  }

  .slide .text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: white;
    padding: 10px;
    width: 90%;
  }

  .slide h1 {
    font-size: 2.3rem;
  }

  .slide p {
    font-size: 1.1rem;
  }

  .slide .buttons {
    margin-top: 10px;
  }

  .slide .buttons button {
    font-size: 1rem;
    padding: 10px 20px;
  }
}


/* Carousel Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;              /* ancho fijo */
  height: 40px;             /* alto igual al ancho */
  font-size: 1.5rem;        /* opcionalmente ajustá el tamaño del ícono */
  background: rgba(0, 0, 0, 0.3);
  color: white;
  display: flex;            /* centrado de ícono */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  user-select: none;
  border-radius: 50%;
  transition: background 0.3s;
}


.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.5);
}

.carousel-arrow.left {
  left: 10px;
}

.carousel-arrow.right {
  right: 10px;
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: #37775D;
}

/*fin carusel */

.text {
  position: relative;
  z-index: 1;
}


/* Secciones */
section {
  padding: 5px 0;
}

/*Productos*/

.productos {
  background: #BBD1C8;
}

.productos h2 {
  text-align: center;
  color: #37775D;
  margin-bottom: 30px;
  font-weight: 700;
  font-size: 60px;
  margin-top: 20px;
}

.accordion {
  max-width: 700px;
  margin: 0 auto;
  border-radius: 35px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
  background: #fff;
  overflow: hidden;
}

.accordion-item + .accordion-item {
  border-top: 1px solid #ddd;
}

.accordion-header {
  width: 100%;
  background: #37775D;
  color: white;
  cursor: pointer;
  padding: 18px 25px;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  outline: none;
  transition: background 0.3s ease;
  user-select: none;
  border-radius: 0;
}

.accordion-header:hover,
.accordion-header[aria-expanded="true"] {
  background: #4a8d71;
}

.accordion-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  user-select: none;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg); /* Cambia + a x */
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: #f9f9f9;
  padding: 0 25px;
  display: block;
}

.accordion-content ul {
  list-style-type: disc;
  padding: 15px 0 20px 20px;
  margin: 0;
  color: #333;
}

.accordion-content.open {
  position: relative;
  padding: 15px 25px 20px;
  max-height: fit-content !important;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden; /* Para que no se escape el overlay */
}

.accordion-content.open::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/img/tramaBlanco.png'); /* reemplazá por tu ruta real */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.3; /* Cambiá este valor: 0 = invisible, 1 = totalmente visible */
  z-index: 0;
}

.mini-card {
  position: relative;  /* IMPORTANTE: permite aplicar z-index */
  z-index: 1;           /* Lo pone por encima del fondo */
  background: white;
  border-radius: 10px;
  padding: 15px 20px;
  width: 100%;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
  transition: box-shadow 0.3s ease;
  cursor: default;
  margin-bottom: 15px;
}


.mini-card:last-child {
  margin-bottom: 0; /* sin margen en la última */
}

.mini-card:hover {
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
}

.mini-card h3 {
  color: #224839;; 
  font-weight: 700;
  font-size: 1.2rem;
}

.mini-card p {
  color: #2a5c47;;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}


/* Responsive */
@media (max-width: 600px) {
  .accordion-header {
    font-size: 1.1rem;
    padding: 14px 18px;
  }

  .productos h2 {
    font-size: 50px;
    margin-bottom: 20px;
  }
}

@media (max-width: 700px) {
  .mini-card {
    width: 100%;
  }
}

@media (max-width: 1000px) {
  .accordion-header {
    font-size: 20px !important;
  }
}



.locales {
  padding: 5px 20px;
  background: #FDFFFC;
}

.locales h2 {
  text-align: center;
  color: #37775D;
  font-size: 60px;
  margin-bottom: 40px;
  font-weight: 700;
}

.accordion-locales {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item-local {
  background: #fff;
  border-radius: 45px;
  margin-bottom: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}

.accordion-header-local {
  width: 100%;
  background: #37775D;
  color: white;
  padding: 18px 25px;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  user-select: none;
}

.accordion-header-local:hover,
.accordion-header-local[aria-expanded="true"] {
  background: #4a8d71;
}

.icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-location svg {
  stroke: white;
}

.subtitulo {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 2px;
}

.accordion-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.accordion-header-local[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content-local {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: #f9f9f9;
}

.accordion-content-local.open {
  max-height: 600px; /* ajuste suficiente para el iframe */
}

.title-local {
  text-align: left;
  margin-left: 10px;
  font-size: 20px;
}

@media (max-width: 600px) {
  .locales h2, .franquicias h2 {
    font-size: 50px !important;
  }

  .accordion-header-local {
    font-size: 1rem;
    padding: 14px 18px;
  }

  .accordion-content-local iframe {
    height: 250px;
  }
}

/* franquicias start */

.franquicias {
  background: #37775D;
  color: white;
  padding: 5px 20px;
  text-align: center;
}

.franquicias h2 {
  font-size: 60px;
  margin-bottom: 10px;
}

.franquicias .subtitulo {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.franquicias .intro {
  max-width: 90%;
  margin: 0 auto 20px;
  font-size: 20px;
  line-height: 1.3;
  text-align: justify;
  color: #fff;
}

.card.beneficios {
  background: #F2FFFA;
  color: #333;
  padding: 30px 50px;
  border-radius: 10px;
  max-width: 90%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 40px auto;
}

.card.beneficios h3 {
  margin-bottom: 25px;
  font-size: 1.5rem;
  color: #37775D;
  text-align: center;
}

.items-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.items-grid ul {
  flex: 1 1 45%;
  list-style: none;
  padding-left: 0;
}

.items-grid li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1rem;
}

.icono {
  width: 20px;
  color: #37775D;
  margin-right: 10px;
  display: flex;
  align-items: center;
}

.card .btn-wrapper {
  text-align: center;
  margin-top: 30px;
}

.card button {
  background: #37775D;
  color: white;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.card button:hover {
  background: #4a8d71;
}

/* Responsive */
@media (max-width: 768px) {
  .items-grid {
    flex-direction: column;
  }

  .items-grid ul {
    flex: 1 1 100%;
  }

  .franquicias .intro {
    text-align: center;
  }
}

/* fin franquicias */

/*inicio footer*/
footer {
  background: #37775D;
  color: white;
  padding: 40px 20px 20px;
  font-family: sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.logo-footer{
  display: grid;
}

.logo-footer .kalli {
  height: 50px;
}

.logo-footer .almacen {
  height: 100px;
}

.logo-footer p {
  margin-top: 10px;
  font-size: 1rem;
}

.enlaces h4,
.social-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.enlaces ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.enlaces a,
.contacto p,
.footer-bottom a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
}

.contacto p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 0.95rem;
}

.contacto svg {
  min-width: 20px;
  height: 20px;
}

.social-icons {
  display: block !important;
  gap: 15px;
  margin-top: 10px;
}

.social-icons svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid #ccc;
  padding-top: 20px;
  margin-top: 30px;
}

.footer-bottom a {
  margin: 0 5px;
}

.footer-bottom p:last-of-type {
  margin-top: 10px;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* iOS phone & mail link override */
a[href^="tel"],
a[href^="mailto"] {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
  cursor: default;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-footer,
  .enlaces,
  .contacto {
    width: 100%;
  }

  .contacto p {
    justify-content: center;
  }

  .logo-footer{
    display: block;
  }

  .kalli{
    margin: 20px 15px;
  }
}


/*fin footer*/

.contacto {
  color: white;
}

.contacto p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0;
}

.contacto svg {
  width: 25px;
  height: 25px;
  stroke: white;
  flex-shrink: 0;
}

.social {
  margin-top: 20px;
}

.social-title {
  margin-top: 10px;
  margin-bottom: 10px;
  font-weight: bold;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons svg {
  width: 24px;
  height: 24px;
  stroke: white;
  transition: transform 0.2s ease;
}

.social-icons svg:hover {
  transform: scale(1.1);
  stroke: #0d1f18; /* Color destacado al pasar el mouse */
}





/*Nosotros section*/

.nosotros-section {
  background-color: #BBD1C8;
  padding: 10px 20px;
  position: relative;
  overflow: visible;
}

.nosotros-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.nosotros-content {
  flex: 1 1 500px;
  animation: fadeInUp 1s ease-in-out;
}

.nosotros-title {
  font-size: 60px;
  margin-bottom: 10px;
  color: #37775d;
  font-weight: 700;
}

.nosotros-subtitle {
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 30px;
  font-weight: 500;
}

.nosotros-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
}

.nosotros-text.destacado {
  font-weight: bold;
  color: #000;
}

.nosotros-images {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nos-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transition: transform 0.4s ease;
}

.img-left:hover {
  transform: rotate(-2deg) scale(1.02);
}

.img-right:hover {
  transform: rotate(2deg) scale(1.02);
}

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

/* Responsive */
@media (max-width: 768px) {
  .nosotros-container {
    flex-direction: column;
    gap: 30px;
  }

  .nosotros-images {
    flex-direction: column;
    gap: 15px;
  }

  .nos-img {
    width: 100%;
  }
}


/*Fin Nosotros */

/*Inicio Contacto */

.contacto-section {
  background-color: #ffffff;
  padding: 5px 20px 70px 20px;
  color: #333;
}

.contacto-container {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-in-out both;
}

.contacto-header {
  text-align: center;
  margin-bottom: 40px;
}

.contacto-header h2 {
  font-size: 60px;
  margin-bottom: 10px;
  color: #37775d;
}

.contacto-header p {
  font-size: 1.1rem;
  color: #555;
}

.contacto-form {
  width: 80%;
  max-width: 800px; /* Máximo ancho para no estirarlo demasiado */
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

/* Responsive a partir de 900px hacia abajo */
@media (max-width: 900px) {
  .contacto-form {
    padding: 0 20px; /* margen interno para que no toque los bordes */
    gap: 18px;
  }
}

/* Responsive a partir de 600px hacia abajo */
@media (max-width: 600px) {
  .contacto-form {
    width: 100%;
    gap: 16px;
  }
  
  .contacto-header h2 {
    font-size: 36px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #37775D;
  box-shadow: 0 0 0 3px #37775d33;
  outline: none;
}

.contacto-btn {
  background-color: #37775D;
  color: white;
  padding: 12px 24px;
  font-size: 1.25rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 35%;
  margin: 0 auto;
}

.contacto-btn:hover {
  background-color: #0E131F;
}

/* Modal base */
  .modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  .modal.show {
    opacity: 1;
    visibility: visible;
  }

  /* Contenido del modal */
  .modal-content {
    background: #fff;
    position: relative;
    padding: 20px 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: translateY(-20px);
    transition: transform 0.4s ease;
  }
  .modal.show .modal-content {
    transform: translateY(0);
  }

  /* Checkmark */
  .checkmark {
    font-size: 50px;
    color: green;
    margin-bottom: 10px;
  }

  /* Botón cerrar */
  .close-btn {
    position: absolute;
    right: 10px;
    top: 0px;
    font-size: 30px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
  }
  .close-btn:hover {
    color: #000;
  }

  /* Que el select tenga el mismo estilo que inputs y textarea */
.form-group select {
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #fff;
  appearance: none; /* Elimina estilo por defecto */
}

.form-group select:focus {
  border-color: #37775D;
  box-shadow: 0 0 0 3px #37775d33;
  outline: none;
}

/* Checkbox verde */
input[type="checkbox"] {
  accent-color: #37775D; /* Verde personalizado */
}

.form-group select {
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #fff;
  appearance: none; /* Quita estilo por defecto */
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2337775D' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  color: #a7a7a7;
}

.form-group select:focus {
  border-color: #37775D;
  box-shadow: 0 0 0 3px #37775d33;
  outline: none;
}

.modal-title-sent {
  font-size: 40px;
  color: #37775D;
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
}

/* end modal */

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 600px) {
  .contacto-header h2 {
    font-size: 50px;
  }

  .contacto-form {
    gap: 16px;
  }
}


/* fin contacto */ 


/* Estado inicial: invisible y desplazado a la izquierda */
.fade-slide-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Estado inicial: invisible y desplazado a la derecha */
.fade-slide-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Cuando queremos mostrar el elemento, removemos la traslación y ponemos opacidad 1 */
.fade-slide-left.visible,
.fade-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}


/*elegirnos */
.elegirnos {
  position: relative;
  background:  #37775D; /* color base por si no carga la imagen */
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* importante para que el pseudo-elemento no se salga */
  z-index: 1; /* asegura que el contenido esté por encima */
}

.elegirnos::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url('/assets/img/tramaVerde.png'); /* reemplazá por tu imagen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.6; /* ajustá el nivel de opacidad */
  z-index: 0;
}


.elegirnos h2 {
  position: relative; /* asegura que esté por encima del ::before */
  z-index: 1;
  font-size: 45px;
  color: #F2FFFA;
  text-align: center;
  margin: 0 0 30px 0;
}


.motivos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  perspective: 1000px; /* importante para efecto 3D */
}

.motivo-flip {
  width: 100%;
  height: 115px;
  perspective: 1000px;
}

.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.motivo-flip:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backface-visibility: hidden;
}

.flip-front {
  background: white;
  color: #0E131F;
  font-weight: bold;
  font-size: 17px;
}

.flip-back {
  background: #0E131F;
  color: white;
  transform: rotateY(180deg);
  font-size: 17px;
  text-align: center;
}

@media (max-width: 768px) {
  .motivo-flip {
    height: auto;
    perspective: none;
  }

  .flip-inner {
    transform: none !important;
    transition: none;
    transform-style: flat;
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .flip-front,
  .flip-back {
    position: static;
    width: 100%;
    height: auto;
    backface-visibility: visible;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
  }

  .flip-front {
    background: white;
    color: #37775D;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    position: relative;
    cursor: pointer;
    padding-right: 2rem;

  }

  .flip-front::after {
    content: '▼'; 
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s;
    font-size: 13px;
    color: #37775D;
  }

  .motivo-flip.active .flip-front::after {
    transform: translateY(-50%) rotate(180deg); 
  }

  .flip-back {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1rem;
  }

  .motivo-flip.active .flip-back {
    padding: 1rem;
  }

  .flip-back {
    transform: none !important; /* <-- evita que se vea al revés en mobile */
  }
}

/* Fin elegirnos */

/*btn wsp*/

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #2A5644;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 999;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 70px;
    height: 70px;
  }
  .whatsapp-float img {
    width: 40px;
    height: 40px;
  }
}

/* Reseñas Section */
.reseñas-section {
  background-color: #BBD1C8;
  padding: 10px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.reseñas-title {
  font-size: 48px;
  margin-bottom: 30px;
  color: #37775d;
  font-weight: 700;
}

.carousel-reseña {
  position: relative;
  overflow: hidden; 
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  padding: 5px 0px;
  touch-action: pan-y; /* permite scroll vertical normal pero captura swipe horizontal */
  cursor: grab;
}

.carousel-track:active {
  cursor: grabbing;
}

/* Cards */
.reseña-card {
  flex: 0 0 calc(25% - 20px);
  margin: 0 10px;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  transition: transform 0.3s;
}

.reseña-card:hover {
  transform: translateY(-5px);
}

/* Header */
.reseña-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.reseña-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #37775d;
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.reseña-nombre {
  font-weight: bold;
  color: #333;
}

.reseña-fecha {
  font-size: 0.85rem;
  color: #777;
}

/* Estrellas */
.reseña-estrellas {
  color: #f4c430;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Texto */
.reseña-texto {
  font-size: 15px;
  color: #444;
  margin-bottom: 15px;
  line-height: 1.5;
}

/* Puntos */
.reseña-puntos {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reseña-puntos li {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
}

/* Controles */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #37775d33;
  color: #fff;
  border: none;
  padding: 14px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
  transition: background 0.3s;
  width: 50px;
}

.carousel-btn:hover {
  background: #28574698;
}

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


/* Responsive */
@media (max-width: 992px) {
  .reseña-card {
    flex: 0 0 calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .reseña-card {
    flex: 0 0 100%;
  }
}

@media (max-width: 992px) {
  .prev { left: 0px; }
  .next { right: 0px; }
}

/* Tablet (2 cards) */
@media (max-width: 1024px) {
  .reseña-card {
    flex: 0 0 calc(50% - 20px);
  }
}

/* Mobile (1 card) */
@media (max-width: 768px) {
  .reseña-card {
    flex: 0 0 calc(100% - 20px);
  }
}
