/* ================= PALETA RIBATECH ================= */
:root {
  --ribatech-azul: #1b3661;        /* azul oscuro elegante */
  --ribatech-azul-claro: #2e4368;  /* hover suave */
  --ribatech-acento: #3f8fa3;      /* turquesa apagado */
  --ribatech-turquesa: #1aa0bf;
  --ribatech-gris: #f2f2f2;
  --ribatech-texto: #222;
}


/* ===== SLIDER GALERÍA ===== */
/* ===== SLIDER FULL WIDTH ===== */
.slider-gallery {
  padding: 0;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease;
}

.slide {
  position: relative;
  min-width: 100%;  
  aspect-ratio: 16 / 9;
  height: auto;

}

.slide img {
  width: 100%;
  display: block;
}

.slide-content {
  position: absolute;
  bottom: 40px;
  /* distancia desde abajo */
  left: 40px;
  /* distancia desde la izquierda */
  color: white;
  background: rgba(0, 0, 0, 0);
  /* opcional, para mejor legibilidad */
  padding: 15px;
  max-width: 800px;
}

.slide-content h3 {
  margin: 0 0 5px;
  font-size: 4rem;
    color: white;

}

.slide-content p {
  margin: 0 0 10px;
  font-size: 3rem;
}

.slide-content a {
  color: white;
  text-decoration: none;
}

/* BOTONES */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  font-size: 40px;
  width: 35px;
  height: 85px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
  opacity: 0.3;

}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

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

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

/* DOTS */
.slider-dots {
  position: absolute;
  bottom: 40px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slider-dots span {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.slider-dots span.active {
  background: var(--ribatech-acento);
}

/* RESPONSIVE */
@media (max-width: 768px) {
 
.slide-content h3 {
  font-size: 3rem;
}

.slide-content p {
  font-size: 2rem;
}
}
@media (max-width: 468px) {
 
.slide-content h3 {
  font-size: 2.5rem;
}

.slide-content p {
  font-size: 1.5rem;
}

}

/* =====HERO ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 6rem 8%;
  background: #fff;
  overflow: hidden;
      height: 720px;

}

/* IMAGEN */
.hero__image {
  flex: 0 0 55%;
  position: relative;
  z-index: 1;
}

.hero__image img {
  width: 700px;
}

/* TEXTO (encima de la imagen) */
.hero__content {
  position: relative;
  z-index: 2;
  margin-left: -120px; /* 🔥 ESTE ES EL SOLAPADO */
  margin-bottom: -200px;
  padding: 50px;
  max-width: 520px;
  background: white;
}
.hero__cta {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end; /* 🔥 ESTO */
}
.hero__line {
  display: block;
  width: 40px;
  height: 3px;
  background: #333;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 1.7rem;
  line-height: 1.4;
}

.hero h1 strong {
  font-weight: 600;
}

.btn-outline {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2rem!important;
  border: 2px solid var(--ribatech-azul)!important;
  color: var(--ribatech-azul);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  
}

.btn-outline:hover {
  background: var(--ribatech-azul);
  color: #fff;
}

.quote-outside {
  text-align: center;
  padding: 0rem 15% 7rem 15%;
  color: #4a4a4a;
  background: #f9f9f9;
}

.quote-outside p {
  font-size: 2.5rem;
  font-style: italic;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.quote-outside span {
  display: block;
  font-size: 1rem;
  color: #777;
}

/* =========================
   HERO RESPONSIVE
========================= */

@media (max-width: 1224px) {
  .hero {
   
    height: 1020px;
  }

 
}

@media (max-width: 1024px) {
  .hero {
   
    height: 1120px;
  }
  .hero__content {
    margin-left: -80px;
  }
}

@media (max-width: 868px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero__image{
  flex: 0 0 0%;

  }
  .hero__content {
    margin-left: 0;
  }
}


@media (max-width: 768px) {

    .quote-outside p {
    font-size: 1.2rem;
  }

  .quote-outside {
    padding: 2rem 5%;
  }
}

@media (max-width: 568px) {
  .hero {
    height: 1220px;
  }

}
@media (max-width: 468px) {
  .hero {
    height: 1420px;
  }

}
/* =====VENTAJAS ===== */
.advantages {
  padding: 60px 0;
  background: #fafafa;
}

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

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #222;
}

.advantage-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.advantage-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

/* Botón de cada ventaja */
.advantage-toggle {
  width: 100%;
  text-align: left;
  padding: 16px;
  font-size: 1.1rem;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background 0.3s;
}

.advantage-toggle:hover {
  background: #f5f5f5;
}

/* Icono a la izquierda */
.adv-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* Signo + al final */
.plus {
  margin-left: auto;
  font-weight: bold;
  font-size: 1.3rem;
}

/* Contenido oculto inicialmente */
.advantage-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 16px;
  background: #fafafa;
}

.advantage-content p {
  margin: 12px 0;
}

/* Clase activa para abrir el acordeón */
.advantage-item.active .advantage-content {
  max-height: 200px;
  /* ajusta según contenido */
  padding: 12px 16px;
}

/* ===== MENSAJE INTRO ===== */
.mensaje-intro {
  padding: 80px 5% 0px 5%;
  background: #ffffff;
}

.mensaje-intro-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.mensaje-intro-text h2 {
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 32px;

}

.mensaje-intro-text p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #333;
  font-size: 20px;


}

/* ==== INTRO ===== */
.intro {
  padding: 80px 5%;
  background: #ffffff;
  
}

.intro-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-image img {
  width: 100%;
  display: block;
}

.intro-text h2,
.intro-text .highlight {
  color: var(--ribatech-azul);
  margin-bottom: 20px;
  text-align: justify;
}

.intro-text .highlight {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

.intro-text p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: var(--ribatech-texto);
  text-align: justify;

}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  border: 2px solid var(--ribatech-turquesa);
  color: var(--ribatech-turquesa);
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: var(--ribatech-turquesa);
  color: #fff;
}
@media (max-width: 900px) {
  .intro {
      text-align: center;

  }
}


/* ===== GALERÍA 6 IMÁGENES CON TÍTULO ===== */
.gallery-6 {
  padding: 80px 5%;
  background: var(--ribatech-azul);
  color: white;
  text-align: center;
}

.gallery-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: var(--ribatech-gris);
}

/* GRID */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  position: relative;
}

/* IMÁGENES */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(70%);
}

/* OVERLAY DE TÍTULO */
.gallery-item .overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

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

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

  .gallery-title {
    font-size: 2rem;
  }

  .gallery-item .overlay {
    font-size: 1.2rem;
  }
}


/* ===== ADVANTAGES ===== */
.advantages {
  background: var(--ribatech-azul);
  color: white;
  padding: 80px 5%;
}

.advantages-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.advantages h2 {
  margin-bottom: 15px;
  color: white;
}

.subtitle {
  max-width: 800px;
  margin: 0 auto 50px;
  opacity: 0.9;
}

/* GRID DE TARJETAS */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: white;
  color: #333;
}

.card img {
  width: 100%;
  display: block;
}

.card p {
  padding: 15px;
  text-align: left;
  color: var(--ribatech-azul);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .intro-container {
    grid-template-columns: 1fr;
      text-align: center;

  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* ===== SECCIÓN CONFORT ===== */
.comfort {
  padding: 100px 5%;
  background: #f1f1f1d9;
    text-align: center;

}

.comfort-container {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

/* IMAGEN */
.comfort-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* TEXTO */
.comfort-text h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #333;
}

.comfort-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #777;
  margin-bottom: 20px;
}

.comfort-text strong {
  color: #333;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .comfort-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .comfort-text h2 {
    font-size: 28px;
  }
}


/* ===== MENSAJE ===== */
.mensaje {
  padding: 80px 5%;
  background: #ffffff;
}

.mensaje-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.mensaje-text h2 {
  color: var(--ribatech-azul);
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 40px;
}

.mensaje-text p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: var(--ribatech-azul);
  font-size: 25px;

}

/* ===== SELLOS SLIDER ===== */
.quality-slider {
  background: #f7f7f7;
  padding: 50px 0 30px;
}

.quality-wrapper {
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
  /* ocultamos lo que no cabe */
  position: relative;
  cursor: grab;
  padding-bottom: 30px;
  /* espacio para dots */
}

.quality-wrapper:active {
  cursor: grabbing;
}

.quality-track {
  display: flex;
  transition: transform 0.3s ease;
  /* suaviza movimiento al click */
}

.quality-item {
  flex: 0 0 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}

.quality-item img {
  max-height: 60px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.quality-item img:hover {
  opacity: 1;
}

/* DOTS */
.quality-slider .slider-dots {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.quality-slider .slider-dots span {
  width: 12px;
  height: 12px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.quality-slider .slider-dots span.active {
  background: #000000;
}

/* Responsive */
@media (max-width: 768px) {
  .quality-item {
    flex: 0 0 50%;
  }

  .quality-item img {
    max-height: 45px;
  }
}