
html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fffbf8;
    color: #111;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===============================  
   HEADER PUBLI SANJO
================================= */

/* .ps-header {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;

    padding: 14px 0;
    color: white;
} */

.ps-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: #223975;
    padding: 14px 0;
    color: white;

    transition: background .3s ease, box-shadow .3s ease;
}

.ps-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px; 
}

.ps-logo a {
    display: inline-block;
    width: 192px;
    height: 36.7473px;
    line-height: 36.7473px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 20px;
    background: white;
    color: #009ee2;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
}


.ps-logo span {
    color: #009ee2;
}

.ps-slogan {
    font-family: 'Inter', sans-serif;
    font-weight: 700; /* Bold */
    font-size: 22px;
    text-align: center;
    flex: 1;
    background: white;
    color: #223975;
    padding: 8px 20px;
    border-radius: 14px;
    max-width: 697px;
    margin: 0 auto;
}

.ps-actions {
    display: flex;
    gap: 12px;
}

.ps-btn {
    background: white;
    color: #223975;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding: 0 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border-radius: 25px;
    text-decoration: none;
}

.ps-btn:hover {
    background: #f1f1f1;
}

.ps-btn-outline {
    background: white;
    border: 1px solid white;
    color: #223975;
}

.ps-btn-outline:hover {
    background: rgba(255,255,255,0.15);
}

/* ===== BURGER PERFECTO ===== */
.ps-burger{
  border: 0;
  background: rgba(255,255,255,.12);
  padding: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: none;
  cursor: pointer;

  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.ps-burger span{
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}

/* 3 líneas en posiciones fijas */
.ps-burger span:nth-child(1){ top: 16px; }
.ps-burger span:nth-child(2){ top: 23px; }
.ps-burger span:nth-child(3){ top: 30px; }

/* Estado X centrado y bonito */
.ps-burger.is-open span:nth-child(1){
  top: 23px;
  transform: rotate(45deg);
}
.ps-burger.is-open span:nth-child(2){
  opacity: 0;
}
.ps-burger.is-open span:nth-child(3){
  top: 23px;
  transform: rotate(-45deg);
}

    /* ===== MOBILE HEADER ===== */
@media (max-width: 768px){

        .ps-slogan{ display:none; }

        .ps-header{
            position: fixed;
            top: 0;
        }

        /* Importante: anclar el dropdown al header */
        .ps-header-inner{
            position: relative;
        }

        .ps-burger{
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        /* Menú tipo “sheet” pegado al header */
        .ps-actions{
            position: absolute;
            left: 0;
            right: 0;
            top: calc(100% + 12px);

            display: grid;
            gap: 12px;

            padding: 14px;
            background: rgba(34,57,117,.92);
            border: 1px solid rgba(255,255,255,.14);
            border-radius: 18px;

            /* animación suave */
            opacity: 0;
            transform: translateY(-6px);
            pointer-events: none;
            transition: .25s ease;

            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .ps-actions.active{
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        /* Botones full width en móvil */
        .ps-actions .ps-btn{
            width: 100%;
            justify-content: center;
            height: 54px;            /* mejor que 64 en móvil */
            border-radius: 16px;
            font-size: 16px;
        }

        .ps-actions .ps-btn-outline{
            background: rgba(255,255,255,.12);
            border: 1px solid rgba(255,255,255,.35);
            color: #fff;
        }
}

/* ===== TABLET HEADER ===== */
@media (max-width: 1400px) and (min-width: 769px) {

    .ps-slogan{ display:none; }

    .ps-header{
        position: fixed;
        top: 0;
        z-index: 2000;
    }

    /* Importante: anclar el dropdown al header */
    .ps-header-inner{
        position: relative;
    }

    .ps-burger{
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Menú tipo “sheet” pegado al header */
    .ps-actions{
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 12px);

        display: grid;
        gap: 12px;

        padding: 14px;
        background: rgba(34,57,117,.92);
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 18px;

        /* animación suave */
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        transition: .25s ease;

        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .ps-actions.active{
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Botones full width en móvil */
    .ps-actions .ps-btn{
        width: 100%;
        justify-content: center;
        height: 54px;            /* mejor que 64 en móvil */
        border-radius: 16px;
        font-size: 16px;
    }

    .ps-actions .ps-btn-outline{
        background: rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.35);
        color: #fff;
    }

}

/* ==========================
   HEADER VARIANTE CATALOGO
========================== */

.ps-header--catalogo {
    background: #fffbf8;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo azul con texto blanco */
.ps-header--catalogo .ps-logo a {
    background: #009ee2;
    color: #fff;
}

.ps-header--catalogo .ps-logo span {
    color: #fff;
}

/* Slogan azul oscuro */
.ps-header--catalogo .ps-slogan {
    background: #223975;
    color: #fff;
    font-weight: 800; /* ExtraBold */
}

/* Botones versión azul */
.ps-header--catalogo .ps-btn {
    background: #223975;
    color: #fff;
    font-weight: 800; /* ExtraBold */
}

.ps-header--catalogo .ps-btn-outline {
    background: #223975;
    border: 1px solid #223975;
    color: #fff;
    font-weight: 800; /* ExtraBold */
}

.ps-header--catalogo .ps-btn:hover {
    background: #1c3568;
}

/* ==========================
   BURGER VARIANTE CATALOGO
========================== */

.ps-header--catalogo .ps-burger {
  background: rgba(34,57,117,.15); /* azul translúcido */
}

.ps-header--catalogo .ps-burger span {
  background: #223975; /* líneas azul oscuro */
}

/* ===========================
   HERO PUBLI SANJO
=========================== */

/* HERO */
.ps-hero{
  position: relative;
  overflow: hidden;
  min-height: clamp(620px, 92vh, 1100px);
}

/* Fondo: aquí está la clave */
.ps-hero-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* 👇 Ajusta el encuadre para que la torre quede “debajo” del logo */
  object-position: 18% 55%;
  display: block;
}

/* Overlay ya NO centra: ahora posiciona */
.ps-hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none; /* para que no estorbe clicks del header */
}

/* Logo: posición tipo “sobre la estatua” */
.ps-hero-logo{
  position: absolute;

  /* 👇 estos 2 valores son los que lo montan sobre la torre */
  left: clamp(200px, 30vw, 520px);
  top:  clamp(110px, 35vh, 265px);

  width: min(1064px, 88vw);
  height: auto;
  max-width: 100%;

  filter: drop-shadow(0 18px 28px rgba(0,0,0,.25));
}

/* ====== TABLET / MÓVIL ====== */
@media (max-width: 992px){

  /* Reencuadra el fondo para que la torre siga presente */
  .ps-hero-img{
    object-position: 22% 30%;
  }

  /* Baja un poquito el logo y céntralo más */
  .ps-hero-logo{
    left: 55%;
    transform: translateX(-50%);
    top: clamp(120px, 30vh, 500px);
    width: min(820px, 92vw);
  }
}

@media (max-width: 480px){
  .ps-hero{
    min-height: 720px; /* para que respire */
  }
  .ps-hero-img{
    object-position: 26% 40%;
  }
  .ps-hero-logo{
    top: 350px;
    width: 92vw;
  }
}

/* ===========================
   SEARCHBAR SECTION
=========================== */

.ps-search-section {
    padding: 50px 0 30px;
    text-align: center;
    background: #fffbf8;

    
}

/* ===========================
   SEARCH TITLE
=========================== */

.ps-search-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;      /* SemiBold */
    font-style: italic;    /* 👈 clave */
    font-size: 34px;
    color: #223975;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .ps-search-title {
        font-size: 26px;
        padding: 0 20px;
    }
}

.ps-search-form {
    display: flex;
    justify-content: center;
}

.ps-search-wrapper input {
    width: 100%;
    height: 64px;               /* EXACTO */
    padding-left: 55px;         /* espacio para icono */
    border-radius: 32px;        /* mitad del alto para píldora perfecta */
    border: 2px solid #223975;
    font-family: 'Inter', sans-serif;
    font-weight: 400;           /* Regular */
    font-size: 21px;            /* Altura visual aproximada */
    outline: none;
    background: #fff;
}

.ps-search-wrapper input::placeholder {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 21px;
    color: #223975;
}

.ps-search-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #223975;
}

.ps-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 831px;
    height: 64px;
    margin: 0 auto;
}

/* ===========================
   FEATURED ADS SECTION
=========================== */

.ps-featured-ads {
    padding: 50px 0 70px;
    background: #fffbf8;
}

/* Contenedor general tipo tarjeta (como en la referencia) */
.ps-ads-wrapper {
    padding: 24px;
    border-radius: 28px;
}

/* Grid */
.ps-ads-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

/* Tarjeta base */
.ps-ad {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    transition: .3s ease;
    padding: 10px; 
}

.ps-ad-inner {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.ps-ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ps-ad:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* Imagen */
.ps-ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Layout específico */

.ps-ad-main {
    grid-column: span 6;
}

.ps-ad-medium {
    grid-column: span 3;
}

.ps-ad-small {
    grid-column: span 2;
}

@media (max-width: 1024px) {

    .ps-ads-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ps-ad-main {
        grid-column: span 2;
    }

    .ps-ad-medium {
        grid-column: span 1;
    }

    .ps-ad-small {
        grid-column: span 1;
    }

}

@media (max-width: 768px) {

    .ps-ads-grid {
        grid-template-columns: 1fr;
    }

    .ps-ad-main,
    .ps-ad-medium,
    .ps-ad-small {
        grid-column: span 1;
    }

    .ps-featured-ads {
        padding: 30px 0 50px;
    }

}

/* ===========================
   FEATURED ADS CARD CONTENT
=========================== */

.ps-ad-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Imagen */
.ps-ad-card-media {
    border-radius: 20px;
    overflow: hidden;
    height: 100%;   /* 🔥 importante */
}


.ps-ad-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info inferior */
.ps-ad-card-info {
    padding: 30px 20px 25px;
    text-align: center;
}

/* Título */
.ps-ad-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #223975;
    margin-bottom: 18px;
}

/* Línea azul */
.ps-ad-card-divider {
    width: 70%;
    height: 2px;
    background: #223975;
    margin: 0 auto 25px;
}

/* Acciones */
.ps-ad-card-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
}

/* Botón circular */
.ps-ad-card-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    transition: .3s ease;
}

.ps-ad-card-btn img {
    width: 24px;
    height: 24px;
}

/* Hover elegante */
.ps-ad-card-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 22px rgba(0,0,0,0.18);
}

@media (max-width: 768px) {


    .ps-ads-wrapper {
        padding: 12px 0 20px;
    }

    .ps-ad {
        padding: 2px;
    }


    .ps-ad-card-media img {
        height: auto;
    }
}

/* ===========================
   CATEGORIES SECTION
=========================== */

.ps-categories {
    position: relative;
    padding: 100px 0 120px; /* antes era 80px */
}

.ps-categories-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px; /* 🔥 quitamos el espacio grande */
}

.ps-categories-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* solo esto */
}

.ps-cat-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

/* izquierda */
#ps-cat-prev {
    left: 300px;
}

/* derecha */
#ps-cat-next {
    right: 300px;
}
.ps-categories-list {
    display: flex;
    align-items: flex-end; 
    gap: 24px;
    background-color: #fffbf8;
    transition: transform .65s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}
/* Base */
.ps-category {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: white;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    padding: 30px 20px;
    transition: background .3s ease, transform .2s ease;       
}

.ps-category.active,
.ps-category.active.cat-sm,
.ps-category.active.cat-md,
.ps-category.active.cat-lg {
    background: #009ee2 !important;
}
.cat-sm,
.cat-md,
.cat-lg {
    background: #223975;
}

.ps-category span {
    line-height: 1.2;
    white-space: normal;
}

.ps-category:active {
    background: #009ee2;
    transform: scale(.97);
}

.ps-cat-arrow {
    width: 60px;
    height: 60px;   /* 👈 igual que width */
    border-radius: 50%;
    border: none;
    background: #009ee2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .6s cubic-bezier(.22,.61,.36,1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}


.ps-cat-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* izquierda */
#ps-cat-prev {
    left: 300px;
}

/* derecha */
#ps-cat-next {
    right: 300px;
}

.ps-cat-arrow i {
    font-size: 16px;
    color: white;
}

/* Indicadores */
.ps-cat-indicators {
    margin-top: 25px;
    text-align: center;
}

.ps-cat-indicators span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #bbb;
    border-radius: 50%;
    margin: 0 4px;
}

.ps-cat-indicators span.active {
    width: 32px;
    border-radius: 8px;
    background: #009ee2;
}

@media (max-width: 1199px) {

    .ps-categories-wrapper {
        display: block; 
    }

        .ps-categories-list {
        animation: hintSlide 1.2s ease 1;
    }

    @keyframes hintSlide {
        0%   { transform: translateX(0); }
        40%  { transform: translateX(-25px); }
        80%  { transform: translateX(0); }
        100% { transform: translateX(0); }
    }

    .ps-cat-arrow {
        display: none;
    }

    .ps-categories-list {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;

        padding-left: 20px;
        padding-right: 20px;
    }

    .ps-categories-list::-webkit-scrollbar {
        display: none;
    }

    .ps-category {
        flex: 0 0 100%;
        scroll-snap-align: center;

        min-height: 180px;
        border-radius: 24px;
    }

    .cat-sm,
    .cat-md,
    .cat-lg {
        width: 100%;
        min-height: 180px;
        font-size: 2.1rem;
    }

}

a{
    text-decoration: none;
}



.ps-categories-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
}


@media (min-width: 1200px) {

    .ps-category {
        min-width: 350px;
        min-height: 240px;
        font-size: 2.2rem;
        border-radius: 40px;
    }

    

}

@media (min-width: 1200px) {

    .ps-categories-viewport {
        max-width: calc((350px * 3) + (24px * 2));
        margin: 0 auto;
    }

}

@media (min-width: 1024px) {

    .ps-category:hover {
        background: #009ee2;
        transform: scale(0.92); /* más sutil */
        box-shadow: 0 12px 28px rgba(0,0,0,0.12); /* sombra más ligera */
    }

}
@media (max-width: 768px) {

    .ps-category.active {
        background: #009ee2 !important;
        transform: scale(1.02);
        box-shadow: 0 12px 28px rgba(0,0,0,0.12); /* sombra más ligera */
    }

}

/* ===========================
   PROMO SECTION
=========================== */

.ps-promo-section {
    padding: 30px 0 20px;
    text-align: center;
}

.ps-promo-link {
    display: inline-block;
    position: relative;
    transition: transform .3s ease, filter .3s ease;
}

/* Imagen base */
.ps-promo-img {
    max-width: 1100px;
    width: 100%;
    height: auto;
    transition: transform .35s ease, filter .35s ease, box-shadow .35s ease;
}

.ps-promo-link:hover .ps-promo-img {
    transform: scale(1.06);
    filter: drop-shadow(0 18px 40px rgba(0, 158, 226, 0.35));
}

@media (max-width: 768px) {
    .ps-promo-section {
        padding: 10px 0 10px;
    }
}

/* ===========================
   DESCUENTO SECTION (IMG)
=========================== */

.ps-descuento-section {
    padding: 60px 0 80px;
    background: #fffbf8;
}

.ps-descuento-section .container {
    display: flex;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.ps-descuento-link{
    display: inline-block;
    transition: transform .25s ease;
    will-change: transform;
}

.ps-descuento-img{
    width: min(100%, 980px);  /* ajusta si la quieres más grande */
    height: auto;
    display: block;
    transition: transform .25s ease, filter .25s ease;
}

/* Hover: ilumina y flota sin “cuadro” */
.ps-descuento-link:hover .ps-descuento-img{
    transform: translateY(-4px) scale(1.02);
    filter: drop-shadow(0 18px 40px rgba(0,158,226,.28));
}

/* Mobile: menos padding */
@media (max-width: 768px){
    .ps-descuento-section{ padding: 30px 0 60px; }
    .ps-descuento-img{ width: 100%; }
}