/* ====== Fort — Carousel portada (Adaptado para Astra) ====== */
:root{
  --accent: #7c5cff;
  --bg: #0b0b0c;
  --txt: #f5f5f7;
}

/* ASTRA: ELIMINADO
   Las reglas para '.home .site-content .col-full' y '.home .content-area'
   eran específicas para Storefront y ya no son necesarias.
   El ancho completo se gestiona desde los ajustes de la página.
*/

/* Contenedor del carrusel */
.fort-carousel{
  position: relative;
  /* ASTRA: SIMPLIFICADO - Ya no se necesita el hack de 100vw y margin-left */
  width: 100%;
  background: #000;
  height: clamp(460px, 75vh, 820px);
  overflow: hidden;
  user-select: none;
}

/* Pila de slides */
.fort-carousel .slides{ position: absolute; inset: 0; }

/* Un slide */
.fort-carousel .slide{
  position:absolute; inset:0;
  opacity:0; visibility:hidden;
  transition:opacity .6s ease;
}
.fort-carousel .slide.is-active{ opacity:1; visibility:visible; z-index:1; }

.fort-carousel .slide img{
  width:100%; height:100%; object-fit:cover; display:block;
  filter: contrast(1.02) saturate(1.02);
}

/* Capa de contenido */
.fort-carousel .slide-content{
  position:absolute;
  left: clamp(20px, 6vw, 120px);
  bottom: clamp(60px, 14vh, 200px);
  max-width: min(720px, 86vw);
  color:#fff;
  text-shadow: 0 10px 28px rgba(0,0,0,.35), 0 6px 16px rgba(0,0,0,.45);
}
.fort-carousel .slide-content.center{ left: clamp(20px, 6vw, 120px); }

.fort-carousel .slide-content h2{
  margin:0 0 8px 0;
  font-weight:800;
  line-height:1.02;
  font-size: clamp(28px, 6.2vw, 64px);
}
.fort-carousel .slide-content .subline{
  font-weight:800; display:inline-block;
}
.fort-carousel .slide-content p{
  margin:.4rem 0 1.2rem; font-size: clamp(14px, 1.8vw, 20px);
  color:#e8e8ef;
}

/* Botón */
.fort-carousel .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 50px;
  padding: .95rem 1.55rem;
  border-radius: 999px;
  text-decoration:none;
  line-height: 1;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.fort-carousel .btn.primary{
  background: linear-gradient(135deg, #7c5cff, #4d8dff);
  color:#fff;
  font-weight:850;
  box-shadow:0 14px 34px rgba(84,116,255,.28), inset 0 1px 0 rgba(255,255,255,.22);
}
.fort-carousel .btn.primary:hover{
  filter:brightness(1.07);
  transform: translateY(-1px);
  box-shadow:0 18px 42px rgba(84,116,255,.34), inset 0 1px 0 rgba(255,255,255,.3);
}

/* Flechas */
.fort-carousel .nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:64px; height:44px; border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.25);
  color:#fff; font-size:22px; line-height:1;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  cursor:pointer;
  z-index: 8;
}
.fort-carousel .nav:hover{ background: rgba(255,255,255,.18); }
.fort-carousel .nav:focus-visible{ outline:2px solid #fff; outline-offset:2px; }
.fort-carousel .nav.prev{ left: clamp(12px, 3vw, 28px); }
.fort-carousel .nav.next{ right: clamp(12px, 3vw, 28px); }


/* Dots */
.fort-carousel .dots{
  position:absolute; left:50%; transform:translateX(-50%);
  bottom:18px; display:flex; gap:10px;
  z-index: 9;
}
.fort-carousel .dots button{
  width:28px; height:12px; border-radius:999px;
  background: rgba(255,255,255,.35);
  border:0; cursor:pointer;
}
.fort-carousel .dots button[aria-current="true"]{ background:#fff; }
/* La regla [aria-selected="true"] es redundante si usas [aria-current="true"], se puede omitir */


/* Respeta reduce motion */
@media (prefers-reduced-motion:reduce){
  .fort-carousel .slide{ transition:none !important; }
}

/* Altura algo menor en móvil para no tapar tanto */
@media (max-width:600px){
  .fort-carousel{ height: clamp(380px, 58vh, 520px); }
  .fort-carousel .slide-content{ bottom: clamp(32px, 10vh, 120px); }
}

/* Banner debajo del carrusel */
.fort-home-banner {
  width: 100%;
  background: #0b0b0c; /* Mismo color de fondo de tu web */
  line-height: 0;      /* Elimina espacios blancos debajo de la imagen */
  display: block;
  margin-bottom: 24px; /* Separación con el contenido siguiente */
}

.fort-home-banner img {
  width: 100%;
  height: auto;       /* Mantiene la proporción */
  display: block;
  object-fit: cover;  /* Asegura que cubra el espacio */
}

.fort-home-banner{
  position:relative; /* necesario para posicionar el botón */
}

/* sombreado suave abajo para que el botón se lea siempre */
.fort-home-banner::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:45%;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  pointer-events:none;
}

.fort-home-banner__cta{
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  z-index:2;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 20px;
  border-radius:999px;

  background: var(--accent, #7b61ff);
  color:#fff;
  font-weight:800;
  text-decoration:none;

  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 14px 28px rgba(0,0,0,.35);
}

.fort-home-banner__cta:hover{
  transform:translateX(-50%) translateY(-1px);
  filter:brightness(1.05);
}

.fort-home-banner__cta:focus-visible{
  outline:3px solid rgba(255,255,255,.6);
  outline-offset:3px;
}

/* =========================================
   CORRECCIÓN PARA MÓVIL (Versión 2 - Alineado a la izquierda)
   ========================================= */
@media (max-width: 768px) {
  
  /* 1. Botón compacto */
  .fort-home-banner__cta {
    padding: 6px 16px !important;
    font-size: 13px !important;
    bottom: 12px !important;
    width: auto !important;
  }

  /* 2. Imagen con altura forzada pero alineada a la IZQUIERDA */
  .fort-home-banner {
    min-height: 140px;      /* Mantenemos la altura para que se vea el botón */
    display: flex;
  }

  .fort-home-banner img {
    height: 140px !important; 
    object-fit: cover;        
    object-position: left center;  /* <--- AQUÍ ESTÁ EL CAMBIO */
  }
  
  .fort-home-banner::after {
    height: 60%;
  }
}


/* =========================================
   SECCIÓN: COMUNIDADES Y TIENDAS AMIGAS
   ========================================= */

.lfh-amigos {
  padding: 40px 0 60px;
  background: #0b0b0c;
}

/* --- ESTILOS BASE (Móvil y Tablet) --- */
/* En móvil, queremos que el título esté arriba y centrado */
.lfh-amigos__header {
  text-align: center;
  margin-bottom: 30px;
  width: 100%;
}

.lfh-amigos__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.1; /* Título más compacto */
}

.lfh-amigos__subtitle {
  color: #a0a0b0;
  font-size: 0.95rem;
}

.lfh-amigos__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas en móvil */
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Tarjetas y Logos (Igual que antes) */
.lfh-amigos__card {
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.lfh-amigos__card:hover {
  transform: translateY(-4px);
  border-color: #7c5cff;
}
.lfh-amigos__logo {
  width: 100%;
  height: 70px; /* Un poco más pequeño para ganar espacio */
  display: flex; 
  align-items: center; 
  justify-content: center;
  margin-bottom: 10px;
}
.lfh-amigos__logo img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}
.lfh-amigos__name {
  font-size: 0.85rem; font-weight: 700; color: #f5f5f7; text-align: center;
}

/* --- ESTILOS DE ESCRITORIO (Aquí ocurre la magia) --- */
@media (min-width: 1024px) {
  
  /* 1. Convertimos el contenedor en una fila flexible */
  .lfh-amigos .ast-container {
    display: flex;
    align-items: center; /* Alineado verticalmente al centro */
    gap: 40px;           /* Espacio entre el título y las tarjetas */
  }

  /* 2. El Título: Lo "apretamos" a la izquierda */
  .lfh-amigos__header {
    width: 220px;       /* Ancho fijo y estrecho para el título */
    text-align: left;   /* Texto alineado a la izquierda */
    margin-bottom: 0;   /* Quitamos el margen de abajo */
    flex-shrink: 0;     /* Evita que se aplaste si falta espacio */
  }
  
  .lfh-amigos__title {
    font-size: 1.8rem;  /* Tamaño controlado */
  }

  /* 3. La Rejilla: Le damos todo el espacio restante para que destaque */
  .lfh-amigos__grid {
    flex-grow: 1;       /* Ocupa todo el ancho sobrante */
    grid-template-columns: repeat(6, 1fr); /* Tus 6 columnas */
  }
}

/* ================================
   Slide 1 Preventas (Corregido)
   ================================ */

/* Bajamos todo el bloque de contenido de la Slide 1 para despejar la imagen */
.fort-carousel .slide-preventas .slide-content {
  bottom: clamp(16px, 4vh, 40px) !important; 
}

/* Forzamos el diseño del botón para que el tema no lo vuelva texto plano */
.fort-carousel .btn-preventas {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  background: linear-gradient(135deg, #7c5cff, #4d8dff) !important;
  color: #fff !important;
  font-weight: 850 !important;
  padding: 0 28px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  box-shadow: 0 14px 34px rgba(84,116,255,.32), inset 0 1px 0 rgba(255,255,255,.24) !important;
  margin-top: 0 !important;
  border: none !important;
  line-height: 1 !important;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease !important;
}

.fort-carousel .btn-preventas:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(84,116,255,.4), inset 0 1px 0 rgba(255,255,255,.32) !important;
}

/* Slide 1 Preventas: botón más grande */
.fort-carousel .slide-preventas .btn-preventas {
  font-size: 15px !important;
  padding: 0 30px !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  min-width: 150px;
  text-align: center;
}

/* =========================================
   Slide 1 Preventas - Mostrar imagen completa en móvil
   ========================================= */
@media (max-width: 768px) {

  .fort-carousel {
    height: 520px !important;
    background: #000 !important;
  }

  .fort-carousel .slide-preventas img {
    object-fit: contain !important;
    object-position: center center !important;
    background: #000 !important;
  }

  .fort-carousel .slide-preventas .slide-content {
    left: 28px !important;
    bottom: 48px !important;
    max-width: 90vw !important;
  }

  .fort-carousel .slide-preventas .btn-preventas {
    font-size: 17px !important;
    padding: 16px 32px !important;
    min-width: 170px !important;
  }
}

/* =========================================
   Slide 1 - Mensaje Preventas
   ========================================= */

.fort-carousel .slide-preventas .slide-content {
  display: flex;
  align-items: center;
  gap: 12px;
  bottom: clamp(26px, 5vh, 74px) !important;
}

.fort-carousel .slide-message-preventas {
  display: inline-block;
  margin: 0;
  padding: 13px 22px;
  border-radius: 999px;

  background: linear-gradient(135deg, rgba(22,22,28,.72), rgba(78,70,91,.5));
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);

  color: #fff !important;
  font-size: clamp(14px, 1.45vw, 18px) !important;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255,255,255,.18);
}

/* Ajuste móvil */
@media (max-width: 768px) {
  .fort-carousel .slide-preventas .slide-content {
    flex-wrap: wrap;
    gap: 10px;
    left: 24px !important;
    bottom: 52px !important;
    max-width: calc(100vw - 48px) !important;
  }

  .fort-carousel .slide-message-preventas {
    font-size: 14px !important;
    padding: 12px 16px;
    max-width: 90vw;
  }

  .fort-carousel .slide-preventas .btn-preventas {
    min-height: 44px !important;
    min-width: 138px !important;
    padding: 0 24px !important;
    font-size: 14px !important;
  }
}

/* =========================================
   Slide 2 - Crónicas FCG
   ========================================= */

.fort-carousel .slide-cronicas::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.68), rgba(0,0,0,.16) 46%, rgba(0,0,0,.08)),
    linear-gradient(0deg, rgba(0,0,0,.28), transparent 48%);
  pointer-events: none;
}

.fort-carousel .slide-cronicas .slide-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
  bottom: clamp(54px, 12vh, 150px);
}

.fort-carousel .slide-kicker-cronicas {
  display: inline-block;
  margin: 0 0 12px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 214, 104, .42);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(22,18,12,.72), rgba(93,67,20,.46));
  color: #ffe89b !important;
  font-size: clamp(14px, 1.5vw, 18px) !important;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.18);
}

.fort-carousel .slide-cronicas h2 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(38px, 6vw, 78px);
  letter-spacing: 0;
  text-shadow: 0 10px 30px rgba(0,0,0,.78), 0 0 24px rgba(244,184,63,.18);
}

.fort-carousel .btn-cronicas {
  margin-top: 14px;
  min-width: 158px;
  background: linear-gradient(135deg, #f4b83f, #7c5cff) !important;
  color: #fff !important;
  font-weight: 900 !important;
  box-shadow: 0 16px 38px rgba(244, 184, 63, .24), 0 16px 38px rgba(124, 92, 255, .24), inset 0 1px 0 rgba(255,255,255,.24) !important;
}

.fort-carousel .btn-cronicas:hover {
  filter: brightness(1.08) saturate(1.05) !important;
  transform: translateY(-1px);
  box-shadow: 0 20px 46px rgba(244, 184, 63, .3), 0 20px 46px rgba(124, 92, 255, .3), inset 0 1px 0 rgba(255,255,255,.32) !important;
}

@media (max-width: 768px) {
  .fort-carousel .slide-cronicas img {
    object-position: center center;
  }

  .fort-carousel .slide-cronicas .slide-content {
    left: 24px !important;
    bottom: 54px !important;
    max-width: calc(100vw - 48px) !important;
  }

  .fort-carousel .slide-kicker-cronicas {
    margin-bottom: 9px;
    padding: 9px 14px;
    font-size: 12px !important;
  }

  .fort-carousel .slide-cronicas h2 {
    font-size: clamp(34px, 12vw, 54px) !important;
  }

  .fort-carousel .btn-cronicas {
    min-height: 44px;
    min-width: 138px;
    padding: 0 24px;
    font-size: 14px;
  }
}
