/**
 * Public stylesheet for hispanus Product Layout and Widgets Addon
 */

/* General Wrapper Styles */
.hispanus-product-canvas-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
}

.hispanus-canvas-section {
    margin-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* SECTION 1: VIDEO CANVAS */
.hispanus-video-header-block {
    text-align: center;
    margin-bottom: 30px;
}

.hispanus-video-section-title,
.hispanus-phrase-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.hispanus-video-section-subtitle,
.hispanus-phrase-subtitle {
    font-size: 1.25rem;
    color: #666666;
    margin: 0;
}

/* Video Card Container */
.hispanus-video-card-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background-color: #000000;
}

.hispanus-video-card-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.15, 0.85, 0.35, 1);
}

.hispanus-video-card-container:hover .hispanus-video-card-cover {
    transform: scale(1.05);
}

/* Gradient Overlay - fades from solid white on left to transparent on right */
.hispanus-video-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.95) 30%,
        rgba(255, 255, 255, 0.7) 45%,
        rgba(255, 255, 255, 0) 75%
    );
    z-index: 2;
    pointer-events: none;
}

/* Video Card Text Block (Overlaid Left) */
.hispanus-video-card-text-block {
    position: absolute;
    left: 6%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    width: 45%;
    z-index: 3;
    pointer-events: none;
}

.hispanus-video-card-accent-line {
    width: 6px;
    height: 90px;
    background-color: #333333;
    margin-right: 20px;
    border-radius: 3px;
    flex-shrink: 0;
}

.hispanus-video-card-titles {
    display: flex;
    flex-direction: column;
}

.hispanus-video-overlay-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.15;
}

.hispanus-video-overlay-subtitle {
    font-size: 1.15rem;
    color: #555555;
    margin: 0;
    line-height: 1.4;
}

/* Play Button Styling */
.hispanus-video-play-btn {
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 4;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hispanus-video-play-btn svg {
    width: 40px;
    height: 40px;
    fill: #ffffff;
    margin-left: 5px; /* Offset play icon slightly to visual center */
    transition: transform 0.3s ease;
}

.hispanus-video-card-container:hover .hispanus-video-play-btn {
    transform: translate(-50%, -50%) scale(1.12);
    border-color: #E6B800;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.hispanus-video-card-container:hover .hispanus-video-play-btn svg {
    transform: scale(1.1);
}

/* SECTION 2: DUAL COLOR PHRASE CANVAS */
.hispanus-phrase-canvas-section {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hispanus-phrase-content {
    max-width: 800px;
    margin: 0 auto;
}

/* SECTION 3: MOSAIC GRID GALLERY */
.hispanus-mosaic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 15px;
    row-gap: 96px;
    width: 100%;
    align-items: stretch;
}

.hispanus-mosaic-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(17, 17, 17, 0.06);
    background-color: #f7f7f7;
    isolation: isolate;
}

.hispanus-mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    transition: transform 0.6s cubic-bezier(0.15, 0.85, 0.35, 1);
}

.hispanus-mosaic-item:hover img {
    transform: scale(1.04);
}

/* Specific Mosaic Spans */
.hispanus-mosaic-item-1 {
    grid-column: span 2;
    aspect-ratio: 21 / 9;
    border-radius: 18px;
}

.hispanus-mosaic-item-2 {
    grid-column: span 1;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
}

.hispanus-mosaic-item-3 {
    grid-column: span 1;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
}

.hispanus-mosaic-item-4 {
    grid-column: span 2;
    aspect-ratio: 21 / 9;
    border-radius: 18px;
}

/* Placeholder box */
.hispanus-mosaic-placeholder {
    border: 2px dashed #ccc;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* STANDALONE HEADLINE */
.hispanus-dual-headline {
    margin: 0 0 15px 0;
    line-height: 1.2;
}

/* COLOR SPLIT TOKENS */
.part-1, .hispanus-headline-part-1 {
    color: #000000;
}

.part-2, .hispanus-headline-part-2 {
    color: #E6B800; /* Primary gold/yellow */
}

/* LIGHTBOX MODAL VIDEO PLAYER */
.hispanus-video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.hispanus-video-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.hispanus-video-modal-content {
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.15, 0.85, 0.35, 1.15);
}

.hispanus-video-modal-overlay.active .hispanus-video-modal-content {
    transform: scale(1);
}

.hispanus-video-modal-content iframe,
.hispanus-video-modal-content video {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.hispanus-video-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 5px;
}

.hispanus-video-modal-close:hover {
    color: #E6B800;
    transform: scale(1.1);
}

/* RESPONSIVE STYLES */
@media (max-width: 991px) {
    .hispanus-video-section-title,
    .hispanus-phrase-title {
        font-size: 2.25rem;
    }

    .hispanus-video-overlay-title {
        font-size: 2rem;
    }

    .hispanus-video-card-text-block {
        width: 55%;
    }

    .hispanus-video-play-btn {
        left: 65%;
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 767px) {
    .hispanus-product-canvas-wrapper {
        padding: 10px 0;
    }

    .hispanus-canvas-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hispanus-video-card-container {
        aspect-ratio: 4 / 3;
    }

    /* Solidify gradient and stack layout */
    .hispanus-video-card-overlay {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0) 100%
        );
    }

    .hispanus-video-card-text-block {
        width: 90%;
        top: 25%;
        left: 5%;
        transform: none;
    }

    .hispanus-video-card-accent-line {
        height: 50px;
        width: 4px;
        margin-right: 12px;
    }

    .hispanus-video-overlay-title {
        font-size: 1.5rem;
    }

    .hispanus-video-overlay-subtitle {
        font-size: 0.95rem;
    }

    .hispanus-video-play-btn {
        left: 50%;
        top: 65%;
        width: 70px;
        height: 70px;
    }
    
    .hispanus-video-play-btn svg {
        width: 28px;
        height: 28px;
    }

    /* Stack Mosaic Grid items vertically */
    .hispanus-mosaic-grid {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    .hispanus-mosaic-item-1,
    .hispanus-mosaic-item-2,
    .hispanus-mosaic-item-3,
    .hispanus-mosaic-item-4 {
        grid-column: span 1;
        aspect-ratio: 16 / 10;
    }
}

/* =========================================================
   NEW SECTIONS: UI/UX PREMIUM STYLES
   ========================================================= */

/* GLOBAL COMPONENT STYLES */
.hispanus-canvas-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: #111;
}

/* SECTION 4: TABS (Panel, Exterior, Detalles) */
.hispanus-tabs-container {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 20px 0 0;
    margin: 40px 0;
}

.hispanus-tabs-header {
    text-align: center;
    margin-bottom: 40px;
}

.hispanus-tabs-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 10px;
}

.hispanus-tabs-subtitle {
    color: #666;
    font-size: 1.35rem;
    line-height: 1.4;
    margin: 0;
}

.hispanus-tabs-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    border-bottom: 2px solid #eaeaea;
}

.hispanus-tabs-nav li {
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    padding-bottom: 15px;
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.hispanus-tabs-nav li:hover {
    color: #111;
}

.hispanus-tabs-nav li.active {
    color: #111;
}

.hispanus-tabs-nav li.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #111;
}

.hispanus-tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.hispanus-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hispanus-tab-flex {
    display: flex;
    gap: 40px;
    align-items: center;
}

.hispanus-tab-text {
    flex: 1;
}

.hispanus-tab-text h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hispanus-tab-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hispanus-tab-text ul li {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.hispanus-tab-text ul li .icon {
    width: 24px;
    height: 24px;
    background-color: #fef0cd;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
}

.hispanus-tab-text ul li .icon::after {
    content: '✓';
    color: #E6B800;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
}

.hispanus-tab-image {
    flex: 1 1 100%;
    width: 100%;
}

.hispanus-tab-image-full {
    max-width: 100%;
    margin: 0 auto;
}

.hispanus-tab-swiper {
    width: 100%;
    overflow: hidden;
}

.hispanus-tab-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: none;
}

/* Specs Grid (Detalles) */
.hispanus-specs-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

.hispanus-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}

.hispanus-spec-item {
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
}

.hispanus-spec-item strong {
    font-size: 1rem;
    color: #111;
    margin-bottom: 5px;
}

.hispanus-spec-item span {
    font-size: 0.95rem;
    color: #666;
}

/* SECTION 5: BOX CONTENTS */
.hispanus-box-contents-section {
    padding-top: 70px;
    padding-bottom: 70px;
}

.hispanus-box-contents-section h2 {
    margin-bottom: 70px;
    font-size: 3rem;
    line-height: 1.1;
}

.hispanus-box-swiper {
    overflow: hidden;
    padding: 0 0 48px;
}

.hispanus-box-item {
    background: #f5f5f5;
    border-radius: 6px;
    min-height: 260px;
    padding: 18px 16px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hispanus-box-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(17, 17, 17, 0.08);
}

.hispanus-box-item .box-img-wrapper {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    order: 2;
}

.hispanus-box-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.hispanus-box-item p {
    order: 1;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.25;
    margin: 0 0 14px;
    color: #111;
    text-transform: uppercase;
}

.hispanus-box-swiper .swiper-button-next,
.hispanus-box-swiper .swiper-button-prev {
    color: #111;
    width: 38px;
    height: 38px;
}

.hispanus-box-swiper .swiper-button-next::after,
.hispanus-box-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 700;
}

.hispanus-box-swiper .swiper-pagination-bullet-active {
    background: #111;
}

/* SECTION 6: UPSELL CARDS */
.hispanus-upsells-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.hispanus-upsell-card {
    background: #f4f4f4;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.hispanus-upsell-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.hispanus-upsell-card .upsell-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.hispanus-upsell-card .upsell-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hispanus-upsell-card:hover .upsell-image img {
    transform: scale(1.05);
}

.hispanus-upsell-card .upsell-content {
    padding: 30px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.upsell-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.upsell-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #d10000; /* Red price typical in retail */
    margin: 0 0 15px 0;
}

.upsell-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
}

.upsell-btn {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s ease;
    margin-top: auto;
}

.upsell-btn:hover {
    background: #333;
    color: #fff;
}

/* SECTION 7: FAQ & BRAND */
.hispanus-faq-brand-section {
    max-width: 900px;
    margin: 0 auto;
}

.hispanus-accordion {
    margin-bottom: 60px;
}

.hispanus-accordion-item {
    border-bottom: 1px solid #ddd;
}

.hispanus-accordion-header {
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #111;
    transition: color 0.3s ease;
}

.hispanus-accordion-header:hover {
    color: #E6B800;
}

.hispanus-accordion-header .icon {
    transition: transform 0.3s ease;
}

.hispanus-accordion-item.active .hispanus-accordion-header .icon {
    transform: rotate(180deg);
}

.hispanus-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
}

.hispanus-accordion-item.active .hispanus-accordion-body {
    max-height: 500px;
    padding-bottom: 20px;
}

.hispanus-accordion-body p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.hispanus-brand-container {
    text-align: center;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.03);
}

.hispanus-brand-container h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.hispanus-brand-container .brand-text p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* SECTION 8: TUTORIALS */
.hispanus-tutorials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hispanus-tutorial-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hispanus-tutorial-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hispanus-tutorial-card:hover img {
    transform: scale(1.08);
}

.tutorial-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.tutorial-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tut-play-btn {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.hispanus-tutorial-card:hover .tut-play-btn {
    transform: scale(1.15);
}

/* RESPONSIVE UPDATES FOR NEW SECTIONS */
@media (max-width: 991px) {
    .hispanus-tab-flex {
        flex-direction: column-reverse;
    }
    .hispanus-specs-grid {
        grid-template-columns: 1fr;
    }
    .hispanus-upsells-grid {
        grid-template-columns: 1fr;
    }
    .hispanus-tutorials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hispanus-tabs-container {
        padding: 10px 0 0;
    }
    .hispanus-tabs-nav {
        gap: 15px;
    }
    .hispanus-tabs-nav li {
        font-size: 0.9rem;
    }
    .hispanus-tab-text h3 {
        font-size: 1.6rem;
    }
    .hispanus-tabs-title {
        font-size: 2.1rem;
    }
    .hispanus-tabs-subtitle {
        font-size: 1.05rem;
    }
    .hispanus-tutorials-grid {
        grid-template-columns: 1fr;
    }
}
