/**
 * Video Product Template Layout - Diseño Moderno
 * Layout principal para plantilla de productos de video
 * Optimizado para fondos oscuros y experiencia premium
 */

/* ===========================
   WRAPPER PRINCIPAL
   =========================== */
.video-template-wrapper {
    background: transparent;
    padding: 0px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===========================
   BLOQUE 1 - GIF + DESCRIPCIÓN CON FONDO BLUR
   =========================== */
.video-lp-block-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 100px;
    padding: 60px 40px;
    border-radius: 32px;
    border: none;
    position: relative;
    overflow: hidden;
    background: transparent;
}



/* Línea brillante superior */
.video-lp-block-1 .top-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), transparent);
    z-index: 2;
}

/* Glow decorativo */
.video-lp-block-1 .glow-effect {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

video-lp-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: nowrap;
    background-color: transparent;
    box-sizing: border-box;
}

.video-lp-container {
    margin-top: 80px !important;
    max-width: 1500px;
    margin: 0 auto;
    border-radius: 40px;
    padding: 60px 40px;
    text-align: center;
}

/* Columnas del bloque 1 */
.video-lp-column {
    padding: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.video-lp-column:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-lp-column:last-child {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
}

/* Imagen/GIF del producto */
.video-lp-column img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}



/* Título del producto */
.video-lp-column h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem) !important;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Descripción del producto */
.video-lp-column p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

/* Contenedor de descripción mejorado */
.video-lp-column #product-description-container {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.4), rgba(40, 40, 60, 0.2));
    border: none;
    border-radius: 16px;
    padding: 28px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.video-lp-column #product-description-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #a855f7, #6366f1);
    border-radius: 16px 0 0 16px;
}

/* ===========================
   HEADER DE SECCIÓN
   =========================== */
.video-lp-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.video-lp-icon {
    width: 70px;
    height: 70px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(58, 0, 255, 0.1), rgba(138, 43, 226, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: all 0.3s ease;
}

.video-lp-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
}

.video-lp-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   MACBOOK SECTION LAYOUT
   =========================== */
.video-lp-macbook-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
}

.video-lp-macbook-text {
    text-align: left;
}

.video-lp-macbook-text .video-lp-header {
    align-items: flex-start;
    text-align: left;
}

.video-lp-macbook-text .video-lp-title {
    text-align: left;
}

.video-lp-macbook-copy {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.02rem;
    line-height: 1.75;
    max-width: 520px;
}

.video-lp-macbook-copy p {
    margin: 0 0 16px;
}

.video-lp-macbook-copy p:last-child {
    margin-bottom: 0;
}

.video-lp-macbook-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.video-lp-macbook-visual .macbook {
    flex: 0 0 auto;
    width: 100%;
    max-width: 570px;
    margin: 0;
}

/* ===========================
   TÍTULO PRINCIPAL
   =========================== */
.video-lp-tl {
    margin: 100px auto 60px;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease;
    opacity: 1;
    max-height: 500px;
    overflow: hidden;
}

.video-lp-tl.is-hidden {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    margin: 0 auto;
    pointer-events: none;
}

.video-lp-tl h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.video-lp-tl h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #a855f7, #6366f1);
    border-radius: 2px;
}

/* ===========================
   DESCRIPCIÓN MEJORADA (CON TOGGLE)
   =========================== */
#product-description-container {
    text-align: left;
    position: relative;
}

/* Descripción */
.short-description,
.full-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 0;
}

#product-description-container .short-description {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Descripción oculta inicialmente */
.full-description {
    display: none;
    margin-top: 15px;
    animation: fadeInDescription 0.4s ease-out;
}

.full-description.visible {
    display: block;
}

@keyframes fadeInDescription {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón toggle moderno */
a#toggle-description,
.toggle-description {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

a#toggle-description::before,
.toggle-description::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

a#toggle-description:hover::before,
.toggle-description:hover::before {
    width: 300px;
    height: 300px;
}

a#toggle-description:hover,
.toggle-description:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(99, 102, 241, 0.25));
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

a#toggle-description:active,
.toggle-description:active {
    transform: translateY(0);
}

/* Icono del botón (opcional, si se añade con ::after) */
a#toggle-description::after,
.toggle-description::after {
    content: '↓';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

a#toggle-description.expanded::after,
.toggle-description.expanded::after {
    content: '↑';
    transform: rotate(180deg);
}

/* Agregar icono decorativo al contenedor */
#product-description-container::after {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: rgba(168, 85, 247, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

/* Estilos para párrafos dentro del contenedor */
#product-description-container p {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

#product-description-container p:last-child {
    margin-bottom: 0;
}

/* Agregar separador visual sutil */
#product-description-container .short-description + .full-description {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
}

/* ===========================
   BOTONES DE RESOLUCIÓN
   =========================== */
.resolution-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
}

.resolution-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(99, 102, 241, 0.1));
    color: #ffffff;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(168, 85, 247, 0.3);
    position: relative;
    overflow: hidden;
}

.resolution-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.resolution-button:hover::before {
    left: 100%;
}

.resolution-button:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.2));
    border-color: #a855f7;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.resolution-button:active {
    transform: translateY(-1px);
}

/* Botones legacy */
video-lp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    color: white;
    width: 90%;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 10px 30px rgba(168, 85, 247, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

video-lp-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

video-lp-button:hover::before {
    width: 300px;
    height: 300px;
}

video-lp-button:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 50px rgba(168, 85, 247, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

video-lp-button:active {
    transform: translateY(-2px);
}

video-lp-button svg {
    margin-right: 10px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

video-lp-button:hover svg {
    transform: translateX(5px);
}

/* ===========================
   MEDIA QUERIES - RESPONSIVE
   =========================== */

/* Tablets grandes y laptops pequeñas */
@media (max-width: 1279px) {
    .video-template-wrapper {
        padding: 5px 15px;
    }

    .video-lp-block-1 {
        gap: 40px;
        margin-bottom: 60px;
    }

    .video-lp-container {
        padding: 50px 30px;
    }

    .video-lp-bl4-title {
        font-size: 1.6em !important;
    }

    .video-lp-bl4-subtitle {
        font-size: 1em !important;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .video-lp-block-1 {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 50px 30px;
    }

    .video-lp-column:last-child {
        padding-top: 0;
    }

    .video-lp-column h2 {
        text-align: center;
    }

    #product-description-container {
        text-align: left;
    }

    .video-lp-macbook-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .video-lp-macbook-text {
        text-align: center;
    }

    .video-lp-macbook-text .video-lp-header {
        align-items: center;
        text-align: center;
    }

    .video-lp-macbook-text .video-lp-title {
        text-align: center;
    }

    .video-lp-macbook-copy {
        margin: 0 auto;
    }

    .video-lp-macbook-visual {
        justify-content: center;
    }
}

/* Tablets pequeñas */
@media (max-width: 900px) {
    video-lp-container {
        flex-wrap: wrap;
    }

    video-lp-column:first-child,
    video-lp-column:last-child {
        flex: 1 1 100%;
    }

    .video-lp-tl {
        margin: 60px auto 40px;
    }

    .resolution-buttons {
        gap: 12px;
    }

    .resolution-button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .video-template-wrapper {
        padding: 20px 10px;
    }

    .video-lp-block-1 {
        padding: 40px 20px;
        margin-bottom: 60px;
        gap: 40px;
    }

    .video-lp-column #product-description-container {
        padding: 24px 20px;
    }

    #product-description-container::after {
        font-size: 3rem;
        top: -5px;
        left: 5px;
    }

    video-lp-button {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
    }

    .video-lp-container {
        padding: 40px 20px;
        border-radius: 24px;
        margin-top: 60px !important;
    }

    .video-lp-tl {
        margin: 40px auto 30px;
    }

    .video-lp-tl h2::after {
        width: 60px;
        height: 3px;
    }

    div#short-description h2 {
        font-size: 1.3em;
    }

    .video-lp-bl4-subtitle {
        color: rgba(255, 255, 255, 0.7);
        text-align: center;
        max-width: 100%;
        margin: auto;
        line-height: 1.6em;
        font-weight: 300;
    }

    .resolution-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .resolution-button {
        width: 100%;
    }

    .video-lp-icon {
        width: 60px;
        height: 60px;
        padding: 12px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .video-lp-container {
        padding: 30px 15px;
        border-radius: 20px;
    }

    video-lp-column h2 {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
    }

    video-lp-column p {
        font-size: 0.95rem;
    }
}

/* ===========================
   MEJORAS VISUALES EXTRA
   =========================== */

/* Animación suave de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-template-wrapper > * {
    animation: fadeInUp 0.6s ease-out backwards;
}

.video-template-wrapper > *:nth-child(1) {
    animation-delay: 0.1s;
}

.video-template-wrapper > *:nth-child(2) {
    animation-delay: 0.2s;
}

.video-template-wrapper > *:nth-child(3) {
    animation-delay: 0.3s;
}

/* Efecto glassmorphism mejorado */
.video-lp-container.macbook-section {
    max-width: 1200px;
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.5), rgba(50, 50, 75, 0.3));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Mejora de selección de texto */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(168, 85, 247, 0.3);
    color: #ffffff;
}
