/**
 * Pluma Theme — Landing Page
 * Estilos para la plantilla "Página de Aterrizaje".
 * Portado desde mejoras/css/slider.css e integrado al sistema de diseño del tema.
 *
 * Variables CSS dinámicas inyectadas por PHP en plantilla-landing.php:
 *   --lp-primary   : color primario del customizer
 *   --lp-secondary : color secundario del customizer
 *   --lp-tertiary  : color terciario del customizer
 *
 * @package PlumaTheme
 */

/* ============================================================
   BASE
   ============================================================ */
.lp-container *,
.lp-stats-section *,
.lp-process-container *,
.lp-categories-section *,
.lp-container-client *,
.lp-cta-section *,
.lp-newsletter-section * {
    box-sizing: border-box;
}

/* ============================================================
   STICKY HEADER
   ============================================================ */

/* Cuando la página es la landing, no hay padding-top de cabecera */
body.page-template-plantilla-landing {
    padding-top: 0 !important;
}

/* Header oculto arriba, fuera de pantalla al iniciar */
body.page-template-plantilla-landing .pluma-cabecera {
    position: fixed !important;
    top: -90px;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: top 0.35s ease;
}

/* Cuando el JS agrega la clase de visible */
body.page-template-plantilla-landing .pluma-cabecera.lp-header-visible {
    top: 0;
}

/* ============================================================
   HERO — SPLIT-SCREEN
   ============================================================ */
.lp-container {
    overflow: hidden;
    height: auto;
}

.lp-slider {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    min-height: 100vh;
    overflow: hidden;
    will-change: transform;
    position: relative;
    height: auto;
}

.lp-seccion {
    width: 50%;
    overflow: hidden;
    background: #fff;
}

/* Sección izquierda: fondo secundario, contenido texto */
.lp-section-one {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--lp-secondary);
}

.lp-section-one .lp-center {
    padding: 60px 80px;
}

.lp-section-one h1 {
    font-size: clamp(32px, 4vw, 57px);
    margin: 0;
    color: #fff;
    text-align: left;
    line-height: 1.15;
}

/* Sección derecha: video o imagen fullcover */
.lp-section-two {
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lp-section-two video {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    max-width: unset;
}

.lp-section-two img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Feature items (íconos con texto) */
.lp-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: rgba(248, 249, 250, .9);
    margin: 6px 0;
}

.lp-icon span {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 20px;
}

/* Botón principal del hero */
.lp-btn-e {
    display: inline-block;
    padding: 13px 32px;
    background: var(--lp-primary);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .25s ease, transform .25s ease;
    margin-top: 10px;
}

.lp-btn-e:hover {
    background: var(--lp-tertiary);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* Community / avatares */
.lp-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-nt {
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
    width: auto;
    flex-shrink: 0;
}

.lp-profile {
    display: flex;
    padding-left: 10px;
}

.lp-profile div {
    position: relative;
    width: 35px;
    height: 35px;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-right: -12px;
    flex-shrink: 0;
}

.lp-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   ESTADÍSTICAS
   ============================================================ */
.lp-stats-section {
    background: var(--lp-primary);
    padding: 36px 20px;
}

.lp-container-c {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.lp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.lp-stat-item {
    color: #fff;
}

.lp-stat-number {
    display: block;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}

.lp-stat-label {
    display: block;
    font-size: 13px;
    opacity: .85;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ============================================================
   SECCIONES DE PROCESO (ciudades, servicios, testimonios, blog)
   ============================================================ */
.lp-process-container {
    background: #fff;
    overflow: hidden;
    padding: 60px 20px;
}

.lp-container-complete {
    max-width: 60%;
    margin: 0 auto 36px;
    text-align: center;
}

.lp-container-complete h2 {
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    color: var(--lp-secondary);
    margin: 0 0 12px;
    text-align: center;
}

.lp-process-text {
    text-align: center;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   DESTINOS / CIUDADES
   ============================================================ */
.lp-destinations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.lp-destination-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #dde3ea;
}

.lp-destination-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.lp-destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.lp-destination-card:hover img {
    transform: scale(1.05);
}

.lp-destination-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .1) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.lp-destination-overlay h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
    text-align: left;
}

.lp-destination-overlay p {
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    margin: 0;
    text-align: left;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.lp-section-services {
    width: 100%;
    padding: 20px 0;
}

.lp-container-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 4px;
}

.lp-card-services {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    transition: box-shadow .3s ease, transform .3s ease;
}

.lp-card-services:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
    transform: translateY(-3px);
}

.lp-card-header-services {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.lp-icon-services {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lp-icon-services img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.lp-icon-primary {
    background: rgba(36, 113, 163, .12);
    color: var(--lp-primary);
}

.lp-icon-secondary {
    background: rgba(26, 63, 92, .12);
    color: var(--lp-secondary);
}

.lp-icon-muted {
    background: #f3f4f6;
    color: #6b7280;
}

.lp-title-services {
    font-size: 18px !important;
    font-weight: 600;
    margin: 0;
    color: var(--lp-secondary);
    text-align: left !important;
}

.lp-text-muted-services {
    margin-top: 4px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================================
   CATEGORÍAS
   ============================================================ */
.lp-categories-section {
    padding: 60px 20px;
    background: #fff;
}

.lp-categories-section .lp-container-complete h2 {
    color: var(--lp-secondary);
}

.lp-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.lp-category-card {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 28px 20px;
    text-align: center;
    transition: box-shadow .3s ease, transform .3s ease;
}

.lp-category-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    transform: translateY(-4px);
}

.lp-category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.lp-category-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(36, 113, 163, .1);
    color: var(--lp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.lp-category-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.lp-category-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--lp-secondary);
    margin: 0 0 8px;
    text-align: center;
}

.lp-category-description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

/* ============================================================
   EXPERIENCIA / AUTORIDAD — Split-screen secundario
   ============================================================ */
.lp-background-primary {
    background: var(--lp-secondary) !important;
}

.lp-color-white {
    color: #fff !important;
}

.lp-count-container {
    display: flex;
    gap: 24px;
    margin-top: 36px;
}

.lp-count {
    width: 50%;
}

.lp-count h3 {
    color: #fff;
    margin: 0 0 4px;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
}

.lp-count h6 {
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.lp-count p {
    display: inline-flex;
    margin: 0;
}

.lp-count p span {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 4px;
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.lp-container-client {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
}

.lp-col-client {
    width: 33.33%;
    padding: 0 12px;
}

.lp-card {
    background: #fff;
    padding: 28px 32px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    height: 100%;
    transition: box-shadow .3s ease;
}

.lp-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}

.lp-card h6 {
    font-size: 16px;
    font-weight: 700;
    color: var(--lp-secondary);
    margin: 10px 0 8px;
}

.lp-card > p {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 20px;
}

.lp-testimonial-rating {
    display: flex;
    gap: 2px;
    color: #f59e0b;
    margin-bottom: 6px;
}

.lp-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.lp-testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.lp-testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lp-avatar-ph {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.lp-t-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--lp-secondary);
    margin: 0;
}

.lp-t-tag-blue {
    font-size: 12px;
    color: var(--lp-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ============================================================
   CTA
   ============================================================ */
.lp-cta-section {
    background: linear-gradient(135deg, var(--lp-secondary) 0%, var(--lp-primary) 100%);
    padding: 70px 20px;
    text-align: center;
}

.lp-cta-section .lp-container-c {
    max-width: 720px;
}

.lp-cta-section h2 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    text-align: center;
}

.lp-cta-section > .lp-container-c > p {
    font-size: 17px;
    color: rgba(255, 255, 255, .88);
    line-height: 1.65;
    margin-bottom: 32px;
}

.lp-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.lp-cta-btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: #fff;
    color: var(--lp-primary);
    font-weight: 700;
    font-size: 15px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .25s ease, transform .25s ease;
}

.lp-cta-btn-primary:hover {
    background: #f0f4f8;
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--lp-primary);
}

.lp-cta-btn-secondary {
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .7);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .25s ease, border-color .25s ease;
}

.lp-cta-btn-secondary:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
    text-decoration: none;
    color: #fff;
}

/* ============================================================
   BLOG / POSTS RECIENTES
   ============================================================ */
.lp-form-contact {
    margin-top: 10px;
    padding: 0 4px;
}

/* Salida del shortcode [pluma_posts_recientes] en landing */
.lp-form-contact .recent-posts-grid_landing {
    display: grid;
    gap: 16px;
    padding: 4px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.lp-form-contact .recent-post-item_landing {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    background: #fff;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    text-decoration: none;
    color: inherit;
    transition: background .25s ease, box-shadow .25s ease;
}

.lp-form-contact .recent-post-item_landing:hover {
    background: #f0f4f8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    text-decoration: none;
}

.lp-form-contact .post-title_landing {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    text-align: left;
    color: var(--lp-secondary);
}

.lp-form-contact .icon-container_landing {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(36, 113, 163, .1);
    color: var(--lp-primary);
    flex-shrink: 0;
}

.lp-form-contact .icon_landing {
    width: 20px;
    height: 20px;
}

.lp-form-contact .post-content_landing {
    display: grid;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.lp-newsletter-section {
    padding: 70px 20px;
    background: #F3F4F8;
    text-align: center;
}

.lp-newsletter-section h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    color: var(--lp-secondary);
    text-align: center;
}

.lp-newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 12px;
}

.lp-newsletter-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #dde3ea;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
    background: #fff;
}

.lp-newsletter-input:focus {
    border-color: var(--lp-primary);
}

.lp-newsletter-button {
    padding: 12px 26px;
    background: var(--lp-primary);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
    font-family: inherit;
}

.lp-newsletter-button:hover {
    background: var(--lp-secondary);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet grande (≤ 1024px) */
@media (max-width: 1024px) {
    .lp-destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Tablet / móvil grande (≤ 800px) */
@media (max-width: 800px) {
    .lp-slider {
        flex-direction: column-reverse;
    }

    .lp-seccion {
        width: 100%;
    }

    .lp-section-one .lp-center {
        padding: 40px 20px;
    }

    .lp-section-two video {
        width: 100%;
        height: 320px;
    }

    .lp-section-two img {
        height: 320px;
        width: 100%;
        object-fit: cover;
    }

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

    .lp-container-services {
        grid-template-columns: 1fr 1fr;
    }

    .lp-container-client {
        flex-direction: column;
    }

    .lp-col-client {
        width: 100%;
        margin-bottom: 20px;
    }

    .lp-container-complete {
        max-width: 100%;
        padding: 0 10px;
    }

    .lp-count-container {
        flex-direction: column;
        gap: 16px;
    }

    .lp-count {
        width: 100%;
    }
}

/* Móvil (≤ 600px) */
@media (max-width: 600px) {
    .lp-destinations-grid {
        grid-template-columns: 1fr;
    }

    .lp-container-services {
        grid-template-columns: 1fr;
    }

    .lp-categories-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Móvil pequeño (≤ 480px) */
@media (max-width: 480px) {
    .lp-newsletter-form {
        flex-direction: column;
    }

    .lp-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .lp-categories-grid {
        grid-template-columns: 1fr;
    }

    .lp-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
