:root {
    --primario: #0ee5e9;
    --primario-oscuro: #08b1b5;
    --secundario: #ef4444;
    --texto: #0f172a;
    --texto-claro: #f7f9f8;
    --bg: #f8fafc;
    --card: #ffffff;
    --borde: #e2e8f0;
    --ok: #16a34a;
    --shadow: 0 8px 30px rgba(2, 6, 23, .08);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 22px;
    --max: 1200px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: var(--texto);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility
}

a {
    color: inherit;
    text-decoration: none
}

a:focus-visible {
    outline: 3px solid #111827;
    outline-offset: 3px
}

img,
video {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm)
}

.container {
    max-width: var(--max);
    margin-inline: auto;
    padding: clamp(30px, 3vw, 28px)
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: var(--primario);
    color: var(--texto-claro);
    padding: .9rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease
}

.btn:hover {
    background: var(--primario-oscuro);
    transform: translateY(-2px)
}

.btn:focus-visible {
    outline: 3px solid #111827;
    outline-offset: 3px
}

.btn--sec {
    background: var(--secundario);
    color: #fff
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .6rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-weight: 600;
    font-size: .85rem
}

.grid {
    display: grid;
    gap: clamp(14px, 2.5vw, 24px)
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr)
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr)
}

@media (max-width:1080px) {
    .grid--3 {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:680px) {

    .grid--3,
    .grid--2 {
        grid-template-columns: 1fr
    }
}

.card {
    background: var(--card);
    border: 1px solid var(--borde);
    border-radius: var(--radius);
    padding: clamp(16px, 2.2vw, 24px);
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 38px rgba(2, 6, 23, .12)
}

.card img {
    aspect-ratio: 3/2;
    object-fit: cover
}

.h1 {
    font-family: Quicksand, Inter, system-ui;
    font-weight: 800;
    letter-spacing: -.02em;
    font-size: clamp(1.9rem, 2.8vw + 1rem, 3.2rem);
    line-height: 1.1;
    margin: 0 0 .5rem
}

.h2 {
    font-family: Quicksand, Inter, system-ui;
    font-weight: 800;
    letter-spacing: -.01em;
    font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem);
    margin: 0 0 .75rem
}

.muted {
    color: #64748b
}

.pill {
    display: inline-block;
    padding: .4rem .7rem;
    border: 1px dashed var(--borde);
    border-radius: 999px;
    font-weight: 600;
    background: #074902;
    color: #fff
}

.nav__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex: 0 0 auto;
    font-weight: 800
}

.nav__brand img {
    width: clamp(150px, 32vw, 180px);
    min-width: 150px;
    height: auto;
    border-radius: 10px
}

.nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.nav__links a {
    padding: .7rem .9rem;
    border-radius: 999px;
    font-weight: 600
}

.nav__links a:hover {
    background: #e2f2ff
}

.nav__cta {
    display: none
}

@media (max-width: 860px) {
    .nav__links {
        flex: 1 1 100%;
        justify-content: center;
    }

    .nav__links a {
        padding: .55rem .7rem;
        /* reduce padding para que quepan mejor */
    }
}

@media (max-width: 860px) {
    .nav {
        padding-block: 8px;
    }
}

/* Ajuste fino en móviles muy pequeños */
@media (max-width: 480px) {
    .nav__brand img {
        width: 170px;
    }

    /* mantén el logo legible */
}

@media (min-width:860px) {
    .nav__cta {
        display: block
    }
}

.nav {
    background-image: url("/assets/img/PtoValalrta.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: 68vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--borde)
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 60% at 70% 10%, rgba(224, 231, 234, .25), transparent 60%), linear-gradient(180deg, rgba(51, 66, 133, .55), rgba(2, 6, 23, .2) 40%, rgba(2, 6, 23, .55));
    z-index: -1
}

.hero__content {
    color: var(--texto-claro);
    text-align: center;
    max-width: 900px;
    padding: clamp(24px, 3vw, 36px)
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px
}

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    background: url("assets/img/Fondo.webp") center/cover no-repeat;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -3;
    filter: brightness(.9)
    
}

.hero__video {
    content-visibility: auto;
    contain-intrinsic-size: 720px 1280px
}

.bullet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: .2rem .4rem;
    padding: .35rem .6rem;
    background: rgba(2, 89, 18, .93);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    font-weight: 600;
    color: #fff
}

section {
    scroll-margin-top: 84px
}

.section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(12px, 1.8vw, 18px)
}

.section__desc {
    max-width: 760px
}

.benefit {
    display: flex;
    gap: 14px;
    align-items: flex-start
}

.benefit svg {
    flex: 0 0 42px
}

.price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0b5e2a
}

.pkg__img {
    aspect-ratio: 16/10;
    object-fit: cover;
    width: 100%
}

.pkg__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px
}

.testi {
    display: grid;
    gap: 12px
}

.stars {
    color: #f59e0b;
    font-size: 1rem
}

.step {
    display: flex;
    gap: 14px
}

.step__num {
    flex: 0 0 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e0f2fe;
    color: #075985;
    font-weight: 800
}

details {
    border: 1px solid var(--borde);
    border-radius: var(--radius);
    padding: 1rem;
    background: #fff
}

details+details {
    margin-top: 10px
}

summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none
}

summary::-webkit-details-marker {
    display: none
}

details[open] {
    box-shadow: var(--shadow)
}

.about {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.2fr .8fr
}

@media (max-width:900px) {
    .about {
        grid-template-columns: 1fr
    }
}

/* footer {
    background: #045202;
    color: #ffffff
} */

.footgrid {
    display: grid;
    gap: 18px;
    grid-template-columns: 2fr 1fr 1fr
}

.footgrid a {
    color: #e2e8f0
}

.foot__brand {
    display: flex;
    align-items: center;
    gap: 10px
}

.foot__brand img {
    width: 150px;
    height: auto;
    border-radius: 12px
}

.subfoot {
    border-top: 1px solid #1f2937;
    margin-top: 18px;
    padding-top: 14px;
    color: #fafafa;
    font-size: .9rem
}

.float-cta {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 70;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.wa-btn {
    background: #25D366;
    color: #0b2212;
    border: none;
    border-radius: 999px;
    padding: .9rem 1rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, .3);
    transition: transform .2s ease
}

.wa-btn:hover {
    transform: translateY(-2px)
}

.pulse {
    position: absolute;
    inset: auto 8px 8px auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secundario);
    animation: ping 1.4s cubic-bezier(0, 0, .2, 1) infinite
}

@keyframes ping {
    0% {
        transform: scale(.9);
        opacity: .9
    }

    80% {
        transform: scale(1.9);
        opacity: 0
    }

    100% {
        opacity: 0
    }
}

@media (prefers-reduced-motion:reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important
    }
}

.hide {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.cta-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.spacer {
    height: 8px
}

.chip {
    border: 1px solid var(--borde);
    padding: .35rem .6rem;
    border-radius: 999px;
    background: #fff;
    font-weight: 600
}

.mini-table {
    display: grid;
    border: 1px solid var(--borde);
    border-radius: 12px;
    overflow: hidden
}

.mini-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr
}

.mini-row>span {
    padding: .5rem .6rem;
    border-top: 1px solid var(--borde);
    background: #fff
}

.mini-row.mini-head {
    background: #0f1f59;
    font-weight: 700
}

.mini-row.mini-head>span {
    border-top: none
}

@media (max-width:680px) {
    .mini-row {
        grid-template-columns: 1fr
    }

    .mini-row>span {
        border-top: 1px solid var(--borde)
    }

    .mini-row>span:first-child {
        font-weight: 700;
        background: #f8fafc
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-25px)
    }

    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

.ofertas iframe {
    transition: transform .3s ease;
    display: block
}

.ofertas iframe:hover {
    transform: scale(1.01)
}

.card.temporadas {
    --brand: #360058;
    --ink: #1f1f1f;
    --muted: #6b6b6b;
    --border: #eae7f3;
    --bg: #fff;
    --head: #f6f3ff;
    --row: #fbfaff;
    --shadow: 0 10px 24px rgba(0, 0, 0, .06);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden
}

.card.temporadas .muted {
    color: var(--ink)
}

.card.temporadas .mini-table {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1fr;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden
}

.card.temporadas .mini-row {
    display: contents
}

.card.temporadas .mini-head>span {
    background: var(--head);
    color: #3b2f5b;
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: .95rem
}

.card.temporadas .mini-row:not(.mini-head)>span {
    padding: 12px 14px;
    border-bottom: 1px solid #f1eef9;
    background: #fff;
    font-size: .95rem
}

.card.temporadas .mini-row:nth-of-type(odd):not(.mini-head)>span {
    background: var(--row)
}

.card.temporadas .mini-row>span:first-child {
    font-weight: 700;
    color: #2f2151;
    border-right: 1px solid var(--border)
}

.card.temporadas .chip {
    display: inline-block;
    padding: .22rem .5rem;
    border-radius: 999px;
    font-size: .83rem;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
    margin: .1rem .25rem .1rem 0
}

.card.temporadas .chip.high {
    background: #ffe8ef;
    color: #a4003c;
    border-color: #ffd0de
}

.card.temporadas .chip.high.tone {
    background: #ffd9e7
}

.card.temporadas .chip.mid {
    background: #fff3d9;
    color: #8a5300;
    border-color: #ffe3ab
}

.card.temporadas .chip.low {
    background: #e9f9ee;
    color: #1e6b3a;
    border-color: #c8f1d6
}

.card.temporadas .legend {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: .7rem .2rem 0
}

.card.temporadas .footnote {
    margin: .5rem .2rem 0;
    font-size: .92rem;
    color: var(--muted);
    background: #f7f4ff;
    border: 1px dashed #dcd2f6;
    padding: 10px 12px;
    border-radius: 10px
}

@media (max-width:860px) {
    .card.temporadas .mini-table {
        grid-template-columns: 1fr
    }

    .card.temporadas .mini-head {
        display: none
    }

    .card.temporadas .mini-row {
        display: block;
        border-bottom: 1px solid var(--border)
    }

    .card.temporadas .mini-row>span {
        display: block;
        padding: 10px 14px;
        border-bottom: 1px solid #f1eef9 !important;
        position: relative
    }

    .card.temporadas .mini-row>span:nth-child(2)::before {
        content: "Alta"
    }

    .card.temporadas .mini-row>span:nth-child(3)::before {
        content: "Media"
    }

    .card.temporadas .mini-row>span:nth-child(4)::before {
        content: "Baja"
    }

    .card.temporadas .mini-row>span:nth-child(n+2)::before {
        position: absolute;
        left: 14px;
        top: 8px;
        font-weight: 700;
        color: #6b5a93;
        font-size: .82rem
    }

    .card.temporadas .mini-row>span:nth-child(n+2) {
        padding-top: 26px
    }

    .card.temporadas .mini-row>span:first-child {
        background: var(--head);
        border-bottom: 1px solid var(--border) !important;
        border-right: none;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px
    }
}

.video-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .7);
    z-index: 9999;
    justify-content: center;
    align-items: center
}

.video-popup {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    max-width: 90%;
    width: 600px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .5)
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #e40808;
    font-size: 28px;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, .6);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s
}

.close-btn:hover {
    background: rgba(255, 255, 255, .3)
}

.video-overlay video {
    width: 100%;
    height: auto;
    border-radius: 10px
}

@media (max-width:768px) {
    .hero__video {
        opacity: 1;
        display: none
        
    }

    .hero__bg {
        background: url('/assets/img/Fondo-1280.webp') center/cover no-repeat
    }
}

.blog-hero {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(180deg, #f9fafb, #fff)
}

.toolbar {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 8px 0 20px
}

.toolbar input,
.toolbar select {
    padding: 10px 12px;
    border: 1px solid var(--borde, #e2e8f0);
    border-radius: 12px
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px
}

.post-card {
    background: var(--card, #fff);
    border: 1px solid var(--borde, #e2e8f0);
    border-radius: 16px;
    box-shadow: var(--shadow, 0 8px 30px rgba(2, 6, 23, .08));
    overflow: hidden;
    display: flex;
    flex-direction: column
}

.post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover
}

.post-card .body {
    padding: 16px
}

#pager {
    display: flex;
    justify-content: center;
    margin: 18px 0
}

#pager .active {
    outline: 2px solid var(--primario, #0ee5e9)
}

.kicker {
    color: #ef4444;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .5px
}

/* ===== FOOTER RESPONSIVO Ajustes para Celular===== */
footer {
    background-color: #360058;
    color: #f9f9f9;
    padding: 50px 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

footer a {
    color: #f9f9f9;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Grid principal */
.footgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.foot__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Subfooter */
.subfoot {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

/* ===== Ajuste móvil ===== */
@media (max-width: 768px) {
    .footgrid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .foot__brand {
        justify-content: center;
        flex-direction: column;
    }

    .footgrid ul {
        list-style: none;
        padding: 0;
    }

    .subfoot {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    footer small {
        display: block;
        width: 100%;
        margin: 4px 0;
    }

    footer img {
        max-width: 120px;
        height: auto;
    }
}

/* ===== Ajuste extra para pantallas muy pequeñas ===== */
@media (max-width: 480px) {
    footer {
        font-size: 0.9rem;
        padding: 40px 15px;
    }
}

.post-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-card .body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card .body p {
  flex-grow: 1; /* El texto se expande para llenar el espacio */
}

.post-card .body a.btn-read {
  margin-top: auto; /* Empuja el botón hacia el fondo */
  align-self: flex-start; /* Mantiene el botón alineado al inicio si lo deseas */
  display: inline-block;
  padding: 10px 16px;
  background-color: var(--primario, #0ee5e9);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.post-card .body a.btn-read:hover {
  background-color: #09c4c7;
}

/* Asegura layout en columna */
.post-card {
  display: flex;
  flex-direction: column;
}

/* La parte de texto ocupa el alto disponible */
.post-card .body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Opcional: le das respiración al meta */
.post-card .body .post-meta {
  margin: .25rem 0 .5rem;
}

/* El botón (que hoy tiene clase .btn) se alinea abajo y separa bordes */
.post-card > a.btn {
  align-self: flex-start;
  margin: 8px 16px 16px;
}