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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: 'Coolvetica';
}

p {
  font-family: "Montserrat", sans-serif;
}

/* Contenedor */
.header-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.header-container-dktp {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  justify-content: space-between;
  align-items: center;
  display: none;
}

/* Header */
.site-header {
  background-color: #111;
  color: white;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #030303;
  /* o el color que estés usando */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* sombra opcional */
}

.logo img {
  height: 4rem;
}

.nav-btn {
  display: flex;
  justify-content: center;
}

[id] {
  scroll-margin-top: 250px;
}

.main-nav button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

.nav-links {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 1rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    max-height 1s ease-in-out,
    opacity 1s ease-in-out,
    transform 1s ease-in-out;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: clamp(1rem, 2.5vw, 2.5rem);
}


.nav-links.active {
  max-height: 500px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.secondary-nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.secondary-nav-links a {
  text-decoration: none;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  color: white;
  font-family: 'Coolvetica';
}

.hero-img {
  width: auto;
  height: 650px;
  background-image: url(img/hero2.jpg);
  background-size: 370%;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  object-fit: cover;
}

.ache {
  position: absolute;
  width: 75px;
  right: 20px;
  top: 20px;
}

.dark-bg {
  background-color: black;
}

.languaje {
  color: white;
  text-decoration: none;
  font-size: 12px;
}

.text-container {
  width: 100%;
  height: auto;
  padding: 35px 20px;
  display: block;
  text-align: justify;
}

.text-container h1 {
  font-size: 27px;
}

.text-container p {
  font-size: 14px;
}

.dark-container h1 {
  border: solid 1px white;
  padding: 5px;
  width: 65%;
  margin: 0 auto 10px;
  text-align: center;
}

.dark-container {
  background: radial-gradient(circle at center,
      #3c3b3b 0%,
      /* gris oscuro al centro */
      #000000 100%
      /* negro en los bordes */
    );
  color: white;
}

.light-container {
  color: black;
}

.light-container h1 {
  padding: 5px;
  width: 65%;
  margin: 0 auto 10px;
  text-align: center;
}

.light-container h2 {
  color: #555555;
}

.car-stls h1,
h2,
h3 {
  text-align: center;
}

/* Carrousel */
/* Cambiar color de las flechas */
.swiper-button-next::after,
.swiper-button-prev::after {
  color: white;
  font-size: 15px;
}

/* Dots normales (no activos) */
.swiper-pagination-bullet {
  background-color: #ffffff !important;
  opacity: 0.5;
}

/* Dot activo (el que indica la slide actual) */
.swiper-pagination-bullet-active {
  background-color: #ffffff !important;
  opacity: 1;
}

.background-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;

}

.centered-title {
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  width: 45%;
  height: auto;
  text-align: center;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
}

.split-section {
  display: flex;
  width: 100%;
  flex-wrap: nowrap;
}

.split-left,
.split-right {
  padding: 0;
  box-sizing: border-box;
}

.split-left {
  width: 45%;
  background-color: #f0f0f0;
}

.split-right {
  width: 55%;
  background-color: #ddd;
}

.split-right img {
  display: flex;
}

.split-left h3 {
  text-align: left;
}

.text-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
}

.text-area h2 {
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
}

.text-area p {
  font-size: 0.5rem;
  text-align: center;
  margin-top: 0.5rem;
}

/*cuadricula*/


.car-back-sp {
  background: radial-gradient(circle at center,
      #5d5b5b 0%,
      /* gris oscuro al centro */
      #000000 100%
      /* negro en los bordes */
    );
}

/* Modal */
.cata-wrapper {
  width: 100%;
  display: flex;
}

.catalog-open-btn {
  padding: 12px 24px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  margin: 40px auto;
  font-size: 16px;
  width: 50%;
  border-radius: 30px;
}

/* Fondo del modal */
.catalog-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.catalog-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.catalog-modal-content {
  background: url('img/form/bg-catalogo.png') no-repeat center center;
  background-size: cover;
  padding: 40px;
  border-radius: 10px;
  width: 90%;
  height: 80%;
  max-width: 500px;
  color: white;
  position: relative;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 1.2em;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.catalog-modal-overlay.show .catalog-modal-content {
  transform: scale(1);
  opacity: 1;
}

.catalog-modal-content h2 {
  margin-top: 0;
}

/* Formulario */
.catalog-modal-content form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.catalog-modal-content input[type="email"] {
  padding: 10px;
  border: none;
  border-radius: 5px;
}

.catalog-modal-content label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-button {
  border-radius: 16px;
  box-shadow: 0 50px 50px rgba(0, 0, 0, 0.50);
}

/* Botón cerrar */
.catalog-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
}

.customcard-section {
  display: none;
}

/* FORM */
.form-harmony {
  background: url('img/form/bg-catalogo.png') no-repeat center center;
  background-size: cover;
  padding: 2rem 1.5rem;
  color: white;
  text-align: center;
}

.form-harmony-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

#form-harmony-contacto {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-harmony-label {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 0.9rem;
}

.form-harmony-input {
  padding: 0.7rem;
  border: 1px solid #fff;
  background: transparent;
  color: white;
  font-size: 1rem;
  border-radius: 4px;
}

.form-harmony-input::placeholder {
  color: #ccc;
}

.form-harmony-button {
  background: white;
  color: black;
  padding: 0.8rem;
  border: none;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
}

.form-harmony-info {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #ccc;
}

/* FORM */


/* Footer */
.footer {
  background: #000;
  padding: 2rem 1rem;
  text-align: center;
}

.footer-logo {
  font-weight: bold;
  margin-bottom: 1rem;
  width: 100px;
  margin: 0 auto;
}

.footer-social a {
  margin: 0 0.5rem;
  display: inline-block;
}

.footer-social img {
  width: 24px;
  height: 24px;
  filter: invert(1);
  /* hacer íconos blancos si son SVG negros */
}

.footer-copy {
  font-size: 0.8rem;
  margin-top: 1rem;
  color: #ccc;
}

/* Desktop styles */
@media (min-width: 768px) {
  .header-container {
    display: none;
  }

  .header-container-dktp {
    max-width: 550px;
    display: flex;
  }

  [id] {
    scroll-margin-top: 190px;
  }

  .hero-img {
    background-size: cover;
  }

  .logo img {
    height: 4rem;
  }

  .tray-carsl {
    display: none;
  }

  .customcard-section {
    display: flex;
    justify-content: center;
  }

  .text-area h2 {
    font-size: 2rem;
  }

  .text-area p {
    font-size: 1.5rem;
  }

  .form-harmony {
    padding: 3rem 4rem;
    text-align: left;
  }

  #form-harmony-contacto {
    max-width: 600px;
    margin: 0 auto;
  }

  .form-harmony-title {
    text-align: center;
    font-size: 2rem;
  }

  .form-harmony-label {
    font-size: 1rem;
  }

  .form-harmony-button {
    width: 200px;
    margin-left: auto;
  }

  .accordion {
    width: 85%;
    margin: 0 auto;
  }

  .carousel-item {
    padding: 20px;
  }


}

@media (max-width: 900px) {
  .customcard-card {
    flex: 0 0 calc((100% / 2) - (2rem / 2));
  }
}

@media (min-width: 1024px) {

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
  }

  .nav-items {
    display: flex;
    gap: 2rem;
  }

  .logo img {
    height: 6rem;
  }

  .text-container h1 {
    font-size: 40px;
  }

  .light-container h2 {
    font-size: 40px;
  }

  .header-container-dktp {
    max-width: 800px;
    display: flex;
  }

  .text-container {
    width: 70%;
    margin: 0 auto;
    padding: 55px;
  }

  .text-container p {
    font-size: 18px;
    text-align: center;
  }

  .background-banner {
    width: 100%;
    display: flex;
    margin: 0 auto;
    height: 200px;
    overflow: hidden;
  }

  .catalog-open-btn {
    width: 15%;
  }

  .text-area h2 {
    font-size: 4rem;
  }

  .text-area p {
    font-size: 2rem;

  }

  .form-harmony {
    padding: 4rem 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #form-harmony-contacto {
    width: 700px;
  }

  .form-harmony-title {
    font-size: 2.2rem;
  }

  .form-harmony-info {
    font-size: 1rem;
    margin-top: 3rem;
    text-align: center;
  }

}


/* cards */
/* === CARDS CONTAINER GENERAL (tu clase) === */
.cards-container {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.card {
  width: 300px;
  cursor: pointer;
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  width: 100%;
  height: auto;
}

/* === MODAL GENERAL ORIGINAL === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content-dktp {
  background: #fff;
  padding: 2rem;
  max-width: 90%;
  width: 900px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
}

.carousel-area {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.carousel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.thumbnails img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s;
}

.thumbnails img.active {
  border-color: #333;
}

.description-box {
  flex: 1;
}

/* === CUSTOM CARDS Y SLIDER === */
.customcard-section {
  padding: 2rem;
}

/* SLIDER WRAPPER */
.customcard-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 1024px;
  /* o el ancho exacto que necesitas */
  margin: 0 auto;
  overflow: hidden;
}

/* ZONA SCROLLEABLE */
.customcard-slider {
  width: 100%;
  overflow: hidden;
}

/* CONTENEDOR DE CARDS */
.customcard-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 1rem;
  /* da espacio a los extremos */
  box-sizing: border-box;
}

.customcard-card {
  flex: 0 0 calc((100% / 3) - (2rem * 2 / 3));
  /* resto proporcional del gap */
  height: 320px;
}

.customcard-card:hover {
  transform: scale(1.05);
}

.customcard-card img {
  width: 19rem;
  height: 285px;
  background-size: cover;
}

.customcard-card p {
  font-size: 25px;
  text-align: center;
}

.customcard-slider,
.customcard-container {
  overflow-y: hidden;
}

/* === FLECHAS DE NAVEGACIÓN === */
.customcard-prev,
.customcard-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.customcard-prev {
  left: 0;
}

.customcard-next {
  right: 0;
}





/* Modal */
.cardmodal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cardmodal-modal.show {
  display: flex;
  opacity: 1;
}

.cardmodal-modal-content {
  background-color: #201f1f;
  width: 90%;
  max-width: 1000px;
  display: flex;
  padding: 1rem;
  gap: 1rem;
  border-radius: 10px;
  position: relative;
  animation: modalFade 0.3s ease;
}

@keyframes modalFade {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.cardmodal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

.cardmodal-modal-body {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 1rem;
}

.cardmodal-carousel {
  flex: 1;
}

.cardmodal-carousel img {
  width: 100%;
  display: block;
}

.customcard-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.customcard-thumbnails img {
  width: calc(20% - 0.4rem);
  height: auto;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s;
}

.customcard-thumbnails img.active {
  border: 2px solid #000;
}

.customcard-description {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

.customcard-description h3 {
  font-size: 25px;
}

/* cards end */



.accordion-button {
  background-color: #000000;
  color: white;
  font-size: 1.5rem;
  padding: 1rem 1.5rem;
  /* top-bottom / left-right */
  height: 70px;
}

.accordion-button:not(.collapsed) {
  background-color: #4b4949;
  color: #f0eeee;
}

/* Cambiar dirección de la flecha al colapsar o expandir */
.accordion-button::after {
  transform: rotate(-90deg);
  /* flecha apunta a la izquierda por defecto */
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(0deg);
  /* apunta hacia la derecha al abrir */
}




.cardmodal-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999999;
}
.cardmodal-modal[aria-hidden="false"] { display: block; }

.cardmodal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}

.cardmodal-modal-content {
  position: relative;
  max-width: 900px;
  width: calc(100% - 32px);
  margin: 6vh auto 0;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.cardmodal-close {
  position: absolute;
  top: 8px; right: 10px;
  font-size: 26px;
  background: transparent;
  border: 0; cursor: pointer;
}

/* Asegurar que el carrusel no tape el modal */
.customcard-section, .customcard-slider-wrapper, .customcard-slider,
.customcard-container { z-index: 1; }

.customcard-slider-wrapper { position: relative; }  /* nuevo */
.customcard-prev, .customcard-next { z-index: 100; pointer-events: auto; }
