body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #f4f6f9;
    color: #2c2c2c;
}

.page-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 10px auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

.back-link {
    position: absolute;
    left: 40px;
    top: 110px;
    color: #1E3A5F;
    font-size: 28px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.back-link:hover {
    color: #2C7DA0;
    transform: scale(1.08);
}

.main-title {
    font-size: 3rem;
    color: #003b6f;
    text-align: center;
    margin: 50px 0 10px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    position: relative;
}

.main-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: #0077b6;
    margin: 12px auto 0;
    border-radius: 2px;
}

.main-subtitle {
    max-width: 850px;
    margin: 0 auto 0;
    color: #444;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
}

.contenedor {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
}

.listado-preview-container {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) 320px;
    gap: 24px;
    align-items: start;
}

.signos-listado {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 16px;
}

.signo-card {
    display: block;
    text-decoration: none;
    color: #1E3A5F;
    background: #ffffff;
    border: 1px solid #dbe4ec;
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

.signo-card:hover {
    background-color: #eaf3f9;
    transform: translateY(-2px);
    border-color: #2C7DA0;
}

.preview-panel {
    position: sticky;
    top: 120px;
    align-self: start;
}

.preview-box {
    background: #f8fafc;
    border: 1px solid #dbe4ec;
    border-radius: 12px;
    padding: 18px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}

.preview-image {
    width: 100%;
    max-width: 360px;
    max-height: 320px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;
    margin-bottom: 16px;
}

.preview-image.visible {
    opacity: 1;
    transform: scale(1);
}

.preview-text {
    margin: 0;
    text-align: center;
    color: #5a6472;
    font-size: 0.98rem;
    line-height: 1.5;
    font-weight: 600;
}

.preview-text.active {
    color: #1E3A5F;
}

.main-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.video-area {
    flex: 2;
    min-width: 300px;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: black;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.variantes-menu {
    flex: 1;
    min-width: 260px;
    background-color: #f1f1f1;
    padding: 20px;
    border-left: 3px solid #1E3A5F;
    box-sizing: border-box;
}

.menu-title {
    margin: 0 0 18px;
    font-size: 1.3rem;
    color: #1E3A5F;
    font-family: 'Montserrat', sans-serif;
}

.variante-item {
    width: 100%;
    text-align: left;
    font-size: 17px;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 6px;
    background-color: white;
    border: none;
    color: #2c2c2c;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.variante-item:hover {
    background-color: #e0ecf4;
}

.variante-item.active {
    background-color: #1E3A5F;
    color: white;
    font-weight: bold;
}

.empty-state {
    font-size: 1.05rem;
    color: #555;
    text-align: center;
    padding: 30px 15px;
}

@media (max-width: 1100px) {
    .listado-preview-container {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 18px;
    }

    .signos-listado {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .preview-box {
        min-height: 300px;
        padding: 14px;
    }

    .preview-image {
        max-width: 100%;
        max-height: 240px;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
    }

    .contenedor {
        padding: 20px;
    }

    .main-container {
        flex-direction: column;
    }

    .variantes-menu {
        border-left: none;
        border-top: 3px solid #1E3A5F;
    }

    .listado-preview-container {
        grid-template-columns: 1fr 220px;
        gap: 14px;
    }

    .signos-listado {
        grid-template-columns: 1fr;
    }

    .back-link {
        left: 20px;
        top: 105px;
    }

    .preview-box {
        min-height: 240px;
        padding: 12px;
    }

    .preview-image {
        max-height: 170px;
    }

    .preview-text {
        font-size: 0.9rem;
    }
}