/* ==============================
   VARIABLES
================================ */
:root {
  --blue: #235ECB;
  --blue-dark: #1f2f67;
  --gray-strip: #e6e6e6;
}

/* ==============================
   HERO DESKTOP
================================ */
.rf-hero {
    width: 100%;
    height: 520px;

    background-image: url("../img/inicioimagen.png");
    background-size: cover;
    background-position: center 45%;
    background-repeat: no-repeat;

    display: flex;
    align-items: flex-start;
}

.rf-hero-content {
    margin-top: 12px;
    margin-left: 80px;
    max-width: 600px;
}

.rf-hero-content h1 {
    font-size: 42px;
    color: var(--blue);
    line-height: 1.2;
    margin-bottom: 20px;
}

.rf-hero-content p {
    max-width: 520px;
    font-size: 16px;
    line-height: 1.8;
    color: #ffffff;
}

/* ==============================
   PRODUCTS
================================ */
.rf-products {
  padding: 60px;
}

.rf-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.rf-card {
  background: #f4f6fb;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  box-shadow: inset 0 -3px 0 0 transparent;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.rf-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.rf-card:nth-child(1) { transition-delay: 0s; }
.rf-card:nth-child(2) { transition-delay: 0.12s; }
.rf-card:nth-child(3) { transition-delay: 0.24s; }
.rf-card:nth-child(4) { transition-delay: 0.36s; }

.rf-card:hover {
  box-shadow: inset 0 -4px 0 0 #2b3e88;
}

.rf-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
}

.rf-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #2b3e88;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rf-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0;
}

.rf-products-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* ==============================
   BOTÓN WHATSAPP 3D
================================ */

.whatsapp-link {
  text-decoration: none;
  display: inline-block;
}

.custom-btn {
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}

.whats-btn.btn-12 {
  width: 240px;
  height: 55px;
  position: relative;
  perspective: 500px;
  display: inline-block;
}

.whats-btn.btn-12 span {
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  font-size: 14px;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: 50% 50% -27.5px;
  backface-visibility: hidden;
}

.whats-btn i {
  font-size: 18px;
  margin-right: 10px;
}

.whats-btn.btn-12 span:nth-child(1) {
  transform: rotateX(90deg);
}

.whats-btn.btn-12 span:nth-child(2) {
  transform: rotateX(0deg);
}

.rf-button-container {
  text-align: center;
  margin-top: -30px;
  margin-bottom: 30px;
}

.whats-btn.btn-12:hover span:nth-child(1) {
  transform: rotateX(0deg);
}

.whats-btn.btn-12:hover span:nth-child(2) {
  transform: rotateX(-90deg);
}

/* ==============================
   CINTILLO LOGOS
================================ */
.rf-about-strip {
  width: 100%;
  background: var(--gray-strip);
  padding: 50px 0;
  overflow: hidden;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.rf-about-strip-track {
  display: flex;
  align-items: center;
  gap: 50px;
  animation: rfStripScroll 30s linear infinite;
  width: max-content;
}

.rf-logo-item img {
  height: 70px;
  width: 130px;
  object-fit: contain;
  background: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid #ddd;
  box-shadow: 0px 3px 8px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.rf-logo-item img:hover {
  transform: scale(1.1);
}


@keyframes rfStripScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==============================
   RESPONSIVE TABLET
================================ */
@media (max-width: 1000px) {

  .rf-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rf-hero {
    height: 450px;
    background-position: center 35%;
  }

  .rf-hero-content {
    margin-top: 100px;
    margin-left: 40px;
  }

  .rf-hero-content h1 {
    font-size: 34px;
  }
}

/* ==============================
   RESPONSIVE MÓVIL
   Texto arriba + Imagen abajo
================================ */
@media (max-width: 1000px) {

  .rf-hero {
    height: auto;
    background: none;
    display: block;
    padding: 40px 20px;
  }

  .rf-hero-content {
    margin: 0;
    max-width: 100%;
  }

  .rf-hero-content h1 {
    font-size: 30px;
    color: var(--blue);
  }

  .rf-hero-content p {
    color: #333;
  }

  /* Imagen debajo */
  .rf-hero::after {
    content: "";
    display: block;
    width: 100%;
    height: 260px;
    margin-top: 30px;

    background-image: url("../img/inicioimagen.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 12px;
  }

  .rf-products-grid {
    grid-template-columns: 1fr;
  }

  .rf-logo-item img {
    width: 100px;
    height: 60px;
    padding: 8px 12px;
  }

  .rf-about-strip-track {
    gap: 30px;
  }
}
