@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@200;400;700&display=swap');

body {
  font-family: 'Roboto', sans-serif;
}
/* ===================== HERO + CARRUSEL MisOlas ===================== */
:root {
  --radius-container: 16px;
  --radius-card: 12px;
}

/* --------------------- CONTENEDOR PRINCIPAL --------------------- */
.misolas-carousel {
  --radius: 24px;
  --edge: 28px;
  --shadow: 0 10px 20px rgba(0,0,0,.08);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 5rem 0rem;
}

/* --------------------- HERO LAYOUT --------------------- */

/* Grid 60/40 en desktop, 100% en mobile */
.hero-grid {
  display: grid;
  gap: 28px;
  padding: 0 var(--edge); /* mismo margen lateral que los cards */
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 3fr 2fr; } /* ≈60% / 40% */
}

.hero-video-col { min-width: 0; } /* evita overflow */

.hero-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: auto;
  border-radius: var(--radius-container);
  overflow: hidden;
  background: #000;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Diferentes alturas según pantalla */
@media (min-width: 600px) {
  .hero-video-wrap { min-height: 400px; }
}
@media (min-width: 1024px) {
  .hero-video-wrap { min-height: 520px; }
}

/* Título al pie del video */
.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 100%);
  color: #fff;
}
.hero-title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
}

/* --------------------- HERO SIDE (MINIMALISTA) --------------------- */

.hero-side {
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(18px, 3vw, 36px);
  background: transparent !important;
}

.cards-phrase {
  font-style: italic;
  color: #2c3e50;
  letter-spacing: 0.5px;
  margin-bottom: 0.5em;
  font-weight: 300;
}

.hero-side-inner {
  max-width: 520px;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.hero-side-inner img{
  max-width: 160px !important;
  margin-bottom: 18px !important;
}


.hero-logo{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  
}

/* Logo simple */
.hero-side-inner img {
  max-width: 72px;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
}

/* Badge opcional */
.hero-badge {
  background: transparent;
  color: #0f6f95;
  padding: 0;
  letter-spacing: .02em;
  margin: 6px 0 0;
}

.hero-headline {
  color: #0f6f95;
  font-weight: 800;
  line-height: 1.1;
  margin: 4px 0 6px;
  text-align: left;
  font-size: clamp(26px, 4.2vw, 40px);
}

.hero-sub {
  color: #2b2b2b;
  
  margin: 0 0 10px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 300;
}

/* CTA minimal */
.hero-cta {
  background: #0f6f95;
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: none;
  text-decoration: none;
}
.hero-cta:hover { opacity:.9; }

/* Orden móvil → texto arriba del video */
@media (max-width:1023.98px){
  .hero-side { order: 1 !important; }
  .hero-video-col { order: 2 !important; }
  .hero-grid { gap: 18px; }

  .hero-side-inner img{
  max-width: 100px !important;

}

  .hero-logo{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
}

/* --------------------- CARRUSEL --------------------- */

.cards-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px var(--edge) 0px var(--edge);
}

.cards-header h3 {
  margin: 0;
  font-size: 22px;
  color: #333;
}

.nav-buttons { display: flex; gap: 8px; }

.nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #eee;
  cursor: pointer;
  font-size: 18px;
}
.nav-btn:hover { background: #ddd; }

/* Scroll horizontal con espacio al inicio */
.cards-scroll {
  --spacer: var(--edge);
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 6px 0;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--spacer);
  position: relative;
}
.cards-scroll::-webkit-scrollbar { display: none; }

.cards-scroll::before {
  content: "";
  flex: 0 0 var(--spacer);
}
.cards-scroll::after {
  content: "";
  flex: 0 0 var(--edge);
  padding: 20px;
}

.card {
  flex: 0 0 clamp(250px, 28vw, 380px);
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid #ddd;
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s;
  margin: 15px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  padding: 0px;
}

.card.active {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .8;
}

.card-thumb .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,.95);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #000;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

.card-title {
  bottom: 10px;
  left: 12px;
  color: #000000;
  font-weight: 800;
  text-align: start;
}

.card-info {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px 12px;
  font-size: 13px;
  color: #333;
}
.card-details {
  display: flex;
  justify-content: space-between; /* separación horizontal */
  align-items: center;           /* alineación vertical */
  width: 100%;
}

.card-details span {
  display: flex;           /* convierte el span en flex container */
  align-items: center;     /* centra verticalmente el svg y el texto */
  gap: 4px;                /* opcional: espacio entre svg y texto */
}
.empty-msg {
  padding: 12px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 12px;
}
