/* ========== RESET GENERAL ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Times New Roman', Times, serif;
}

body {
  overflow-x: hidden;
  background-color: var(--rtb-white);
}

/* ========== VARIABLES GLOBALES ========== */
:root {
  --rtb-light: #57c5b6;
  --rtb-medium: #159895;
  --rtb-dark: #1a5f7a;
  --rtb-deep: #002b5b;
  --rtb-white: #ffffff;
  --rtb-gold: #ad9551;
  --rtb-black: #000000;
  --rtb-nav: #246a62;
  --transition: 0.2s ease-in-out;
}

/* ========== HERO SECTION ========== */
.rtb-hero {
  position: relative;
  min-height: 80vh;
  background-image: url('../img/inicio/img-hero.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--rtb-white);
}

.rtb-hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.rtb-hero-content {
  position: relative;
  z-index: 2;
}

.rtb-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.rtb-hero-subtitle {
  font-size: 1.3rem;
  color: #ddd;
  margin-bottom: 2rem;
}

.rtb-hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem; /* espacio entre botones por defecto */
  margin-top: 1rem;
}

.rtb-hero-button {
  background-color: var(--rtb-white);
  color: var(--rtb-gold);
  font-weight: bold;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color var(--transition);
  margin: 0 0.5rem;
}

.rtb-hero-button:hover {
  background-color: var(--rtb-light);
  color: var(--rtb-white);
}



/* ========== CATEGORÍAS DESTACADAS ========== */
.rtb-categoria-productos {
  background-color: var(--rtb-white);
  padding: 4rem 2rem;
}

.section-container {
  max-width: 1800px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--rtb-gold);
  margin-bottom: 2rem;
}

.card-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.card {
  width: 225px;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: 0.55s;
  cursor: pointer;
  background-color: var(--rtb-white);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: 0.55s;
}

.card .layer {
  background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 75%;
  opacity: 0;
  transition: 0.35s;
}

.card .info {
  position: absolute;
  bottom: -50%;
  padding: 15px;
  opacity: 0;
  transition: 0.5s bottom, 1.75s opacity;
  text-align: left;
}

.card .info h1 {
  font-size: 1.2rem;
  color: var(--rtb-white);
}

.card .info p {
  font-size: 14px;
  margin-top: 3px;
  color: var(--rtb-white);
}

.card .info button {
  background: var(--rtb-gold);
  border: none;
  padding: 8px 12px;
  font-weight: bold;
  border-radius: 8px;
  margin-top: 8px;
  cursor: pointer;
  color: white;
  transition: background-color var(--transition);
}

.card .info button:hover {
  background: var(--rtb-medium);
}

/* Hover effects */
.card:hover,
.card:hover img,
.card:hover .layer {
  transform: scale(1.1);
}

.card:hover > .layer {
  opacity: 1;
}

.card:hover > .info {
  bottom: 0;
  opacity: 1;
}

.card-group:hover > .card:not(:hover) {
  filter: blur(5px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .card {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .card {
    width: 80%;
  }

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

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

  .card .info h1 {
    font-size: 1rem;
  }

  .card .info p {
    font-size: 12px;
  }

  .card .info button {
    font-size: 0.875rem;
    padding: 6px 10px;
  }
}
