/* ═══════════════════════════════════════════════════════
   assets/css/home.css — Ibigal Boats
   Estilos exclusivos de la homepage
═══════════════════════════════════════════════════════ */

/* ── HERO ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 6rem;
  overflow: hidden;
  /* padding-top controlado por responsive.css vía var(--hero-pad-t) */
}

/* La imagen de fondo se inyecta como <img> desde PHP */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--c-void) 0%, rgba(5,8,16,0.6) 45%, rgba(5,8,16,0.35) 100%),
    linear-gradient(to right, rgba(5, 8, 16, 0.9) 0%, rgba(5,8,16,0.1) 70%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 151, 90, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 151, 90, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 40%, black, transparent);
}

.hero-glow {
  position: absolute;
  top: 25%; right: 8%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(46, 143, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-waves {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
  z-index: 1;
}

.hero-waves svg {
  width: 100%;
  display: block;
}

/* Arte yate flotante */
.hero-yacht-wrap {
  position: absolute;
  right: 4%;
  bottom: 20%;
  width: min(52%, 660px);
  z-index: 2;
  animation: floatYacht 6s ease-in-out infinite;
  will-change: transform;
}

.hero-yacht-wrap svg { width: 100%; height: auto; }

/* Contenedor del contenido */
.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.hero-content { max-width: 600px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-eyebrow-line {
  display: block;
  width: 36px; height: 1px;
  background: var(--c-gold);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-title-thin {
  font-weight: 200;
  letter-spacing: 0.06em;
  display: block;
}

.hero-title-accent {
  color: var(--c-gold);
  display: block;
}

.hero-subtitle {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

/* Estadísticas hero */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
  align-self: flex-end;
}

.stat-item { text-align: right; }

.stat-num {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-gold);
  line-height: 1;
  display: block;
}

.stat-num sup {
  font-size: 0.75rem;
  color: var(--c-gold-lt);
}

.stat-label {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 0.25rem;
  display: block;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 1.3s forwards;
}

.scroll-hint span {
  font-family: var(--font-title);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.scroll-mouse {
  width: 22px; height: 34px;
  border: 1px solid var(--c-edge);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 2px; height: 8px;
  background: var(--c-gold);
  border-radius: 1px;
  animation: scrollDot 1.8s ease-in-out infinite;
  will-change: transform;
}

/* ── TICKER ────────────────────────────────────────── */
.ticker {
  background: var(--c-gold);
  padding: 0.65rem 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.ticker-track {
  display: flex;
  gap: 3rem;
  animation: ticker 30s linear infinite;
  will-change: transform;
  width: max-content;
}

.ticker-item {
  font-family: var(--font-title);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-void);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ticker-item::before {
  content: '◆';
  font-size: 0.42rem;
  opacity: 0.5;
}

/* ── SECCIÓN FLOTA ─────────────────────────────────── */
.fleet-section {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px; background: var(--c-deep); }

.title-accent-thin {
  font-style: normal;
  font-weight: 200;
  color: var(--c-gold);
  letter-spacing: 0.02em;
}

.title-gold { color: var(--c-gold); }
.title-gold-thin { font-weight: 200; color: var(--c-gold); }

.wc-products-wrapper { width: 100%; }

.section-footer-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ── CATEGORÍAS PERSONALIZADAS ─────────────────────── */
.categories-section { background: var(--c-void); }

/* Ocultar el shortcode nativo de categorías si usamos el diseño custom */
.wc-categories-wrapper { display: none; }

.cat-grid-custom {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.cat-card-custom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0;
  padding: 0;
  background: var(--c-deep);
  border: 1px solid var(--c-edge);
  border-radius: var(--r-lg);
  text-decoration: none;
  will-change: transform, box-shadow;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
  min-height: 260px;
}

/* Borde superior dorado en hover */
.cat-card-custom::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.cat-card-custom:hover { 
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 40px rgba(184,151,90,0.08);
  border-color: rgba(184, 151, 90, 0.3);
}
.cat-card-custom:hover::after { opacity: 1; }

/* Imagen de fondo como elemento img */
.cat-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  z-index: 0;
}

.cat-card-custom:hover .cat-bg-img {
  transform: scale(1.06);
}

/* Overlay cinematográfico sobre la imagen */
.cat-card-custom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to top, rgba(5,8,16,1) 0%, rgba(5,8,16,0.82) 40%, rgba(5,8,16,0.45) 70%, rgba(5,8,16,0.15) 100%);
  z-index: 1;
  transition: background 0.4s ease;
  border-radius: var(--r-lg);
}

.cat-card-custom:hover::before {
  background: 
    linear-gradient(to top, rgba(5,8,16,0.97) 0%, rgba(5,8,16,0.75) 40%, rgba(5,8,16,0.35) 70%, rgba(184,151,90,0.12) 100%);
}

/* hover handled above */

.cat-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 12px rgba(184, 151, 90, 0.5));
  transition: transform var(--transition);
  position: relative;
  z-index: 2;
  margin-bottom: 0.5rem;
}

.cat-card-custom:hover .cat-icon {
  transform: scale(1.15) rotate(-3deg);
}

.cat-info-custom { 
  flex: 1;
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.5rem 1.25rem 0;
}

.cat-count-custom {
  font-family: var(--font-title);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  display: block;
  margin-bottom: 0.4rem;
  opacity: 0.9;
}

.cat-name-custom {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
  color: var(--c-white);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  transition: color var(--transition);
}
.cat-card-custom:hover .cat-name-custom { color: var(--c-gold-lt); }

.cat-desc-custom {
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(240,236,228,0.65);
  line-height: 1.5;
}

.cat-arrow-custom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.6rem;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
  transition: color var(--transition);
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 0.75rem;
}

.cat-arrow-custom::after {
  content: '→';
  font-family: inherit;
  font-size: 0.9rem;
  transition: transform var(--transition);
}

.cat-card-custom:hover .cat-arrow-custom {
  color: var(--c-gold);
}

.cat-card-custom:hover .cat-arrow-custom::after {
  transform: translateX(4px);
}

/* ── SECCIÓN EXPERIENCIA ───────────────────────────── */
.experience-section {
  background: var(--c-void);
  position: relative;
  overflow: hidden;
}

.experience-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 50%, rgba(184, 151, 90, 0.05), transparent),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(46, 143, 255, 0.04), transparent);
  pointer-events: none;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Visual */
.exp-visual { position: relative; }

.exp-badge {
  position: absolute;
  top: -1rem; left: -1rem;
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-dk));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  color: var(--c-void);
  z-index: 2;
  animation: rotateBadge 15s linear infinite;
  will-change: transform;
  box-shadow: 0 8px 24px rgba(184, 151, 90, 0.3);
}

.exp-badge-num {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.exp-badge-text {
  font-size: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exp-main-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-edge);
}

.exp-main-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--c-navy) 0%, #0d1e3a 100%);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-edge);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.exp-main-placeholder svg { width: 70%; opacity: 0.45; }

/* Tarjeta de reseña flotante */
.exp-review-card {
  position: absolute;
  bottom: 2.5rem;
  right: -2rem;
  width: 200px;
  background: rgba(9, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--c-edge);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-card);
  animation: floatYacht 5s 1.5s ease-in-out infinite;
  will-change: transform;
}

.exp-review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.exp-review-stars { color: var(--c-gold); font-size: 0.7rem; letter-spacing: 0.05em; }

.exp-review-score {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-white);
}

.exp-review-text {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.5;
  font-style: italic;
}

.exp-reviewer-name {
  font-family: var(--font-title);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--c-gold);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Contenido experiencia */
.exp-content { position: relative; z-index: 1; }

.exp-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.exp-feature {
  padding: 1.1rem 1.25rem;
  background: var(--c-glass);
  border: 1px solid var(--c-edge);
  border-radius: var(--r-md);
  transition: border-color var(--transition), transform var(--transition);
}

.exp-feature:hover {
  border-color: rgba(184, 151, 90, 0.3);
  transform: translateY(-3px);
}

.exp-feature-icon { font-size: 1.3rem; margin-bottom: 0.5rem; display: block; }

.exp-feature-name {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.exp-feature-desc {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.5;
}

.exp-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ── SECCIÓN DESTACADOS ────────────────────────────── */
.featured-section { background: var(--c-deep); }

/* ── SECCIÓN DESCUENTOS ────────────────────────────── */
.discounts-section { background: var(--c-void); }

/* ── SECCIÓN TESTIMONIOS ───────────────────────────── */
.testimonials-section {
  background: var(--c-deep);
  position: relative;
  overflow: hidden;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testi-card {
  background: var(--c-glass);
  border: 1px solid var(--c-edge);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}

.testi-card:hover {
  border-color: rgba(184, 151, 90, 0.2);
  transform: translateY(-4px);
}

.testi-card:nth-child(2) { margin-top: 1.5rem; }

.testi-quote {
  font-size: 2.5rem;
  color: var(--c-gold);
  font-family: Georgia, serif;
  line-height: 0.8;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.testi-text {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testi-footer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testi-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-gold-dk), var(--c-navy));
  border: 1px solid var(--c-gold-dk);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-gold);
}

.testi-info { flex: 1; }

.testi-name {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  display: block;
}

.testi-role {
  font-size: 0.65rem;
  color: var(--c-muted);
  margin-top: 0.12rem;
  display: block;
}

.testi-stars {
  color: var(--c-gold);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ── SECCIÓN NOTICIAS ──────────────────────────────── */
.news-section { background: var(--c-void); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: var(--c-glass);
  border: 1px solid var(--c-edge);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: rgba(184, 151, 90, 0.2);
}

.news-card-img-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--c-navy);
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img { transform: scale(1.04); }

.news-card-body { padding: 1.5rem; }

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.news-date {
  font-family: var(--font-title);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.news-category {
  font-family: var(--font-title);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gold);
  text-decoration: none;
}

.news-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.news-title a {
  color: var(--c-white);
  text-decoration: none;
  transition: color var(--transition);
}

.news-title a:hover { color: var(--c-gold); }

.news-excerpt {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gold);
  text-decoration: none;
  transition: gap var(--transition);
}

.news-read-more:hover { gap: 0.7rem; }

.news-arrow { transition: transform var(--transition); }
.news-read-more:hover .news-arrow { transform: translateX(3px); }

/* ── RESPONSIVE HOMEPAGE ───────────────────────────── */
/* ─────────────────────────────────────────────────────
   RESPONSIVE — HOME
──────────────────────────────────────────────────── */

/* ── 1200px ── */
@media (max-width: 1200px) {
  .cat-grid-custom { grid-template-columns: repeat(3, 1fr); }
  .cat-card-custom { min-height: 240px; }
}

/* ── 1024px ── */
@media (max-width: 1024px) {
  .cat-grid-custom { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .testi-card:nth-child(2) { margin-top: 0; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .experience-grid { grid-template-columns: 1fr; gap: 3rem; }
  .exp-review-card { display: none; }
  .exp-badge { display: none; }
  .hero-stats { display: none; }
}

/* ── 900px ── */
@media (max-width: 900px) {
  .hero { min-height: 90vh; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .cat-card-custom { min-height: 220px; }
  .section-title { font-size: clamp(1.6rem, 4vw, 2.5rem); }
}

/* ── 768px ── */
@media (max-width: 768px) {
  .hero { padding-bottom: 4rem; }
  .hero-yacht-wrap { display: none; }
  .cat-grid-custom { grid-template-columns: 1fr 1fr; }
  .cat-card-custom { min-height: 200px; }
  .testi-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .exp-features { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  /* product grid → responsive.css */
}

/* ── 480px ── */
@media (max-width: 480px) {
  .cat-grid-custom { grid-template-columns: 1fr 1fr; }
  .cat-card-custom { min-height: 170px; }
  .cat-name-custom { font-size: 0.88rem; }
  .cat-desc-custom { display: none; }
  .cat-arrow-custom { padding: 0.75rem 1rem; font-size: 0.55rem; }
  .hero-title { font-size: clamp(1.9rem, 9vw, 3rem); }
  .hero-subtitle { font-size: 0.82rem; }
  /* product grid → responsive.css */
  .testi-grid { gap: 1rem; }
}
