/**
 * Dermorutina - Styles
 * Test "Encuentra tu rutina ideal"
 */

/* ==========================================================================
   Variables - Heredan del theme quintalegre
   ========================================================================== */
:root {
    /* Primary: hereda de --brand del theme (#001339 azul oscuro) */
    --dr-primary: var(--brand, #001339);
    --dr-primary-dark: #000d29;
    --dr-primary-light: #e8eaef;
    --dr-primary-rgb: 0, 19, 57;
    /* Secondary: hereda de --secondary-default del theme (#C51B35 rojo) */
    --dr-text-light: #666666;
    --dr-text-muted: #999999;
    --dr-bg: #ffffff;
    --dr-bg-light: #f8f9fa;
    --dr-border: #e0e0e0;
    --dr-success: var(--success, #1E4620);
    --dr-error: var(--danger, #dc3545);
    --dr-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --dr-transition: all 0.3s ease;
    --neutral-pink: #FDEDED;
    --dr-secondary: #333333;
    --dr-text: #333333;
}
:root{
    --space-1: clamp(.25rem, .2rem + .25vw, .5rem);
    --space-2: clamp(.5rem, .4rem + .5vw, 1rem);
    --space-3: clamp(1rem, .8rem + 1vw, 2rem);
    --space-4: clamp(1.5rem, 1.2rem + 1.5vw, 3rem);
    --space-5: clamp(3rem, 2.4rem + 3vw, 6rem);
}


/* ==========================================================================
   Quiz Container
   ========================================================================== */
.dermorutina-quiz {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* ==========================================================================
   Quiz Header & Progress
   ========================================================================== */
.quiz-header {
    margin-bottom: 30px;
}

.quiz-intro {
    margin-bottom: 20px;
}

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

.expert-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--dr-primary-light);
}

.expert-info {
    display: flex;
    flex-direction: column;
}

.expert-name {
    font-weight: 600;
    color: var(--dr-text);
    font-size: 16px;
}

.expert-title {
    color: var(--dr-text-muted);
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 9px;
    background: #f4f5fa;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--dr-primary);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 13px;
    color: var(--dr-text-muted);
    white-space: nowrap;
}

/* ==========================================================================
   Quiz Steps
   ========================================================================== */
.quiz-questions {
    min-height: 400px;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.quiz-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-title {
    font-size: 24px;
    color: var(--dr-text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.question-subtitle {
    color: var(--dr-text-light);
    margin-bottom: 25px;
}

/* ==========================================================================
   Option Cards
   ========================================================================== */
.question-options {
    display: grid;
    gap: 12px;
}

.question-options.single-select {
    grid-template-columns: 1fr;
}

.question-options.multi-select {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 576px) {
    .question-options.multi-select {
        grid-template-columns: 1fr;
    }
}

.option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--dr-bg);
    border: 2px solid var(--dr-border);
    border-radius: var(--dr-radius);
    cursor: pointer;
    transition: var(--dr-transition);
    position: relative;
}

.option-card:hover {
    border-color: var(--dr-primary);
    background: var(--dr-primary-light);
}

.option-card.selected {
    border-color: var(--dr-primary);
    background: var(--dr-primary-light);
}

.option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-icon {
    font-size: 24px;
    line-height: 1;
}

.option-label {
    flex: 1;
    font-weight: 500;
    color: var(--dr-text);
}

.option-description {
    display: block;
    font-size: 13px;
    color: var(--dr-text-muted);
    font-weight: 400;
    margin-top: 2px;
}

.option-check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--dr-border);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: var(--dr-transition);
}

.option-card.selected .option-check {
    border-color: var(--dr-primary);
    background: var(--dr-primary);
}

.option-card.selected .option-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Multi-select checkbox style */
.multi-select .option-check {
    border-radius: 4px;
}

.multi-select .option-card.selected .option-check::after {
    width: 10px;
    height: 6px;
    background: transparent;
    border: 2px solid white;
    border-top: none;
    border-right: none;
    border-radius: 0;
    transform: translate(-50%, -60%) rotate(-45deg);
}

.selection-counter {
    text-align: center;
    color: var(--dr-text-muted);
    font-size: 13px;
    margin-top: 15px;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form {
    margin: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-weight: 500;
    color: var(--dr-text);
    margin-bottom: 8px;
}

.form-group label small {
    font-weight: 400;
    color: var(--dr-text-muted);
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--dr-border);
    border-radius: var(--dr-radius-sm);
    font-size: 16px;
    transition: var(--dr-transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--dr-primary);
}

.form-error {
    display: block;
    color: var(--dr-error);
    font-size: 13px;
    margin-top: 5px;
}

.checkbox-group {
    margin-top: 25px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
}

.checkmark {
    width: 20px !important;
    height: 20px !important;
    border: 2px solid var(--dr-border);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: var(--dr-transition);
    margin-top: 2px;
}

.checkbox-label input:checked + .checkmark {
    background: var(--dr-primary);
    border-color: var(--dr-primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 6px;
    height: 10px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 14px;
    color: var(--dr-text-light);
    line-height: 1.4;
}

.checkbox-text a {
    color: var(--dr-primary);
}
.checkbox-text a:hover{
    border-bottom: none !important;
}

/* ==========================================================================
   Navigation Buttons
   ========================================================================== */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--dr-border);
}

.btn-quiz {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--dr-transition);
}

.btn-back {
    background: transparent;
    color: var(--dr-text-light);
}

.btn-back:hover {
    color: var(--dr-text);
}

.btn-next,
.btn-submit {
    background: var(--dr-primary);
    color: white;
    margin-left: auto;
}

.btn-next:hover:not(:disabled),
.btn-submit:hover:not(:disabled) {
    background: var(--dr-primary-dark);
}

.btn-next:disabled,
.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Spinner animation */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Loading Overlay
   ========================================================================== */
.quiz-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--dr-primary-light);
    border-top-color: var(--dr-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--dr-text);
    margin-bottom: 8px;
}

.loading-subtext {
    color: var(--dr-text-muted);
}

/* ==========================================================================
   RESULTS PAGE - Nuevo Diseño 2025
   ========================================================================== */
.dermorutina-results {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* ==========================================================================
   Results Header - Perfil de Usuario
   ========================================================================== */
.results-header {
    background: linear-gradient(135deg, #f9f9f9 0%, #f4f5fa 100%);
    padding: 48px 32px;
    margin-bottom: 0;
    text-align: center;
}

.results-header-content {
    max-width: 950px;
    margin: 0 auto;
}

.results-title {
    margin: 0 0 8px 0;
}


/* Profile Grid - 3 columnas */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* gap: 24px; */
    padding: 24px 0;
    border-top: 1px solid #3333;
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.profile-item {
    /* display: flex;
    flex-direction: column;
    align-items: center; */
    gap: 8px;
    text-align: center;
}

.profile-icon {
    width: 64px;
    height: 64px;
    display: none;
    align-items: center;
    justify-content: center;
    background: #f4f5fa;
    border-radius: 50%;
}
.img-doctor{
    width: 120px;
    height: 120px;
    background-size: 100%;
    background-image: url("/img/authors/356f791d_carolina.png");
    border-radius: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fff;

}

.profile-icon i {
    font-size: 32px;
    color: var(--dr-primary);
    padding: 0;
    margin: 0;
}

.profile-label {
   
    font-weight: 600;
    color: var(--dr-primary);
}

.profile-value {
  
    color: #525356;
}

/* Profile Tags - Pills */
.profile-tags {
    display: flex;
    /* flex-wrap: wrap; */
    gap: 12px;
    justify-content: center;
}

.profile-tag {
    display: inline-block;
    /* padding: 8px 8px;
    background: #fff; */
    
}

/* ==========================================================================
   Valoración de Carolina - Sección separada
   ========================================================================== */
.valoracion-section {
    padding: var(--space-4) 0;
    text-align: center;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    background: var(--neutral-pink);

}


.valoracion-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.valoracion-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f5fa;
    border-radius: 50%;
    margin-bottom: 16px;
}

.valoracion-icon i {
    font-size: 40px;
    color: var(--dr-primary);
}

.valoracion-title {
    font-family: 'DM Serif Text', Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--dr-primary);
    margin: 0 0 8px 0;
}

.valoracion-subtitle {
    font-size: 14px;
    color: #525356;
    margin: 0;
}

.valoracion-content {
    gap: var(--space-3);
    align-items: center;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-bottom: var(--space-4);
    padding: 0 var(--space-5);
    
}



/* Frase-conclusión de Carolina: protagonista, claramente separada del párrafo */
.valoracion-quote {
    font-family: 'DM Serif Text', Georgia, serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--dr-primary);
    max-width: 640px;
    margin: 8px auto 20px;
    padding: 0;
    border: none;
    text-align: center;
}

.valoracion-quote::before {
    content: '\201C';
}

.valoracion-quote::after {
    content: '\201D';
}

.valoracion-text {
    max-width: 640px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--dr-text);
    padding-top: 16px;
    border-top: 1px solid var(--dr-border);
}

.valoracion-text p {
    margin-bottom: 16px;
}

.valoracion-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .valoracion-quote {
        font-size: 21px;
    }
}

/* ==========================================================================
   Routine Section & Tabs
   ========================================================================== */
.routine-section {
    background: #f9f9f9;
    padding: 0;
}

.routine-tabs {
    margin-bottom: 0;
}

.tabs-header {
    display: flex;
    gap: 0;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    justify-content: center;
    padding: 0;
    border-bottom: none;
    margin-bottom: 0;
}

.tab-btn {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 48px;
    background: transparent;
    border: none;
    border-bottom: 3px solid #dddddd;
    font-size: 16px;
    font-weight: 600;
    color: #525356;
    cursor: pointer;
    transition: var(--dr-transition);
}

.tab-btn:hover {
    color: var(--dr-text);
}

.tab-btn.active {
    background: var(--dr-primary);
    color: white;
    border-bottom: none;
}

.tab-btn .tab-title {
    display: block;
}

.tab-btn .tab-count {
    font-size: 12px;
    font-weight: 400;
    color: inherit;
}

.tab-btn.active .tab-count {
    color: rgba(255,255,255,0.9);
}

.tab-btn:not(.active) .tab-count {
    color: var(--dr-secondary);
}

@media (max-width: 768px) {
    .tab-btn {
        padding: 16px 16px;
        font-size: 14px;
    }
}

.tabs-content {
    padding: var(--space-4);
}

.tab-panel {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Routine Footer - Total + Button */
.routine-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--dr-border);
}

@media (max-width: 576px) {
    .routine-footer {
        flex-direction: column;
    }
    
}
@media (max-width: 767px){
    .coupons-section{
        flex-direction: column !important;
    }
    .product-actions{
        flex-direction: column !important;
    }
    .routine-total{
        flex-direction: column !important;
    }
}

/* ==========================================================================
   Coupons Section - Nuevo Diseño
   ========================================================================== */
.coupons-section {
    background: #fff;
  border-top: 3px solid #e0e0e0;
  padding: var(--space-4) 0;
  display: flex;
  gap: var(--space-4);
  flex-direction: row;
}

.coupons-section .coupon-card {
    background: #ffffff;
    padding: var(--space-4);
    text-align: center;
    border-radius: 0;
    border: 3px dashed #000d29;
}

.coupons-section .coupon-card:last-child {
    margin-bottom: 0;
}

.coupon-icon-wrapper {
    margin-bottom: 16px;
    display: none;
}

.coupon-icon-wrapper i {
    font-size: 64px;
    color: var(--dr-secondary);
}

.coupon-title {
    font-family: 'DM Serif Text', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--dr-primary);
    margin: 0 0 24px 0;
}

.coupon-code-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #ffffff;
    padding: 16px 48px;
    margin-bottom: 16px;
}

.coupon-code {
    font-size: 32px;
    font-weight: 700;
    color: var(--dr-primary);
    letter-spacing: 2px;
}

.btn-copy {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--dr-primary);
    border: none;
    cursor: pointer;
    transition: var(--dr-transition);
}

.btn-copy:hover {
    color: var(--dr-secondary);
}

.btn-copy i {
    font-size: 24px;
}

.coupon-description {
    font-size: 18px;
    font-weight: 600;
    color: #525356;
    margin: 0 0 24px 0;
}

.coupon-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.coupon-tiers .tier {
    font-size: 14px;
    padding: 8px 16px;
    background: #f4f5fa;
    color: var(--dr-text);
}

.coupon-tiers .tier.highlight {
    background: var(--dr-primary);
    color: white;
}

.coupon-validity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.validity-label {
    font-size: 14px;
    color: #525356;
}

.validity-time {
    font-size: 24px;
    color: var(--dr-secondary);
}

.validity-time strong {
    font-weight: 700;
}

.coupon-validity.expired {
    color: var(--dr-error);
}

.btn-use-coupon {
    display: inline-block;
    padding: 16px 48px;
    background: var(--dr-secondary);
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--dr-transition);
}

.btn-use-coupon:hover {
    background: #a3162c;
}

}

/* ==========================================================================
   (Legacy Routine Tabs - Removido, ver nueva sección arriba)
   ========================================================================== */

/* ==========================================================================
   Products Grid - Nuevo Diseño
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 25px;
}

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

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card - Nuevo Diseño */
.product-card {
    position: relative;
    background: #ffffff;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: var(--dr-transition);
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Badge PASO - Absolute */
.product-step-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 6px 12px;
    background: var(--dr-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.product-image {
    margin-bottom: 16px;
    padding-top: 16px;
}

.product-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 16px;
    mix-blend-mode: darken;
}

.no-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f5fa;
    color: var(--dr-border);
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.product-name a {
    color: var(--dr-primary);
    text-decoration: none;
}

.product-name a:hover {
    text-decoration: underline;
}

/* Product Tip - Nuevo diseño */
.product-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f4f5fa;
    padding: 12px;
    margin-bottom: 16px;
}

.product-tip .tip-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.product-tip .tip-text {
    font-size: 13px;
    color: #333333;
    line-height: 1.4;
}

/* Product Price */
.product-price {
    margin-bottom: 16px;
}

.product-price .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--dr-secondary);
}

/* Product Actions - 2 botones */
.product-actions {
    display: flex;
    gap: 12px;
}

.btn-add-product {
    flex: 1;
    padding: 14px 16px;
    background: var(--dr-primary);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--dr-transition);
}

.btn-add-product:hover:not(:disabled) {
    background: #333333;
}

.btn-add-product:disabled {
    opacity: 0.7;
}

.btn-view-product {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    background: transparent;
    border: 2px solid #333333;
    color: #333333;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--dr-transition);
}

.btn-view-product:hover {
    background: #333333;
    color: white;
}

/* ==========================================================================
   Routine Total & Add Button
   ========================================================================== */
.routine-total {
    display: flex;
    width: 450px;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--dr-bg-light);
    border-radius: var(--dr-radius-sm);
    margin-bottom: 15px;
}

.total-label {
    font-weight: 500;
    color: var(--dr-text);
}

.total-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--dr-primary);
}

.btn-add-routine {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: var(--dr-primary);
    color: white;
    border: none;
    border-radius: var(--dr-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--dr-transition);
}

.btn-add-routine:hover:not(:disabled) {
    background: var(--dr-primary-dark);
}

.no-products {
    text-align: center;
    color: var(--dr-text-muted);
    padding: 40px;
}

/* ==========================================================================
   Routine Gaps
   ========================================================================== */
.routine-gaps {
    background: var(--dr-bg-light);
    border-radius: var(--dr-radius);
    padding: 25px;
    margin-bottom: 40px;
}

.routine-gaps h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.gaps-list {
    display: grid;
    gap: 10px;
}

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

.gap-step {
    font-weight: 500;
    color: var(--dr-text);
}

.gap-reason {
    font-size: 14px;
    color: var(--dr-text-muted);
}

/* ==========================================================================
   Results Actions - Actualizado
   ========================================================================== */
.results-actions {
    background: #ffffff;
    text-align: center;
    padding: 48px 32px;
    border-top: 1px solid var(--dr-border);
}

.results-saved {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--dr-success);
    font-size: 16px;
    margin-bottom: 24px;
}

.results-saved i {
    font-size: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-share {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ffffff;
    border: 1px solid var(--dr-border);
    color: #525356;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--dr-transition);
}

.btn-share:hover {
    border-color: var(--dr-primary);
    color: var(--dr-primary);
}

.btn-share i {
    font-size: 16px;
}

.btn-restart {
    display: inline-block;
    padding: 12px 24px;
    color: var(--dr-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.btn-restart:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dr-text);
    color: white;
    padding: 12px 25px;
    border-radius: var(--dr-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ==========================================================================
   Slider Cards - Alineación de alturas (Swiper)
   ========================================================================== */
.dermorutina-swiper {
    padding: 8px 0;
}

.dermorutina-swiper .swiper-slide {
    height: auto;
}

.dermorutina-swiper .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
}

.dermorutina-swiper .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dermorutina-swiper .product-tip {
    flex: 1;
}

.dermorutina-swiper .product-price,
.dermorutina-swiper .product-actions {
    margin-top: auto;
}

/* Swiper Navigation */
.dermorutina-swiper .swiper-button-prev,
.dermorutina-swiper .swiper-button-next {
    color: var(--dr-primary);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dermorutina-swiper .swiper-button-prev::after,
.dermorutina-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
}

.dermorutina-swiper .swiper-scrollbar {
    background: #e0e0e0;
}

.dermorutina-swiper .swiper-scrollbar-drag {
    background: var(--dr-primary);
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .quiz-navigation,
    .btn-add-product,
    .btn-add-routine,
    .btn-share,
    .btn-restart,
    .btn-copy {
        display: none !important;
    }

    .dermorutina-results {
        max-width: 100%;
    }

    .coupon-card {
        break-inside: avoid;
    }
}

/* ==========================================================================
   V2 REDESIGN - Stepper & Cards
   ========================================================================== */

/* Variables adicionales V2 */
:root {
    --dr-step-size: 36px;
    --dr-step-completed: var(--dr-primary);
    --dr-step-pending: #DDDDDD;
    --dr-card-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --dr-card-shadow-hover: 0 5px 15px rgba(0,0,0,0.08);
}

/* ==========================================================================
   Quiz Header V2 - Sin avatar, con stepper
   ========================================================================== */
.quiz-header-v2 {
    margin-bottom: 40px;
}

.quiz-header-v2 .quiz-intro {
    display: none; /* Ocultar avatar Carolina */
}

/* ==========================================================================
   Stepper Horizontal
   ========================================================================== */
.quiz-stepper {
    position: relative;
    max-width: 800px;
    margin: 0 auto 30px;
}


/* Indicador de progreso compacto */
.stepper-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.stepper-counter {
    font-size: 28px;
    font-weight: 700;
    color: var(--dr-text);
}

.stepper-counter span {
    font-size: 16px;
    font-weight: 400;
    color: var(--dr-text-muted);
}

.stepper-percent {
    font-size: 14px;
    color: var(--dr-text-muted);
}

/* Versión compacta del stepper para móvil */
@media (max-width: 576px) {
    .quiz-stepper {
        padding: 0 10px;
    }

    .stepper-counter {
        font-size: 24px;
    }
}

/* ==========================================================================
   Option Cards V2 - Grid con checkbox integrado
   ========================================================================== */
/* Grid base */
.question-options-v2 {
    display: grid;
    gap: 16px;
}

/* 3 columnas (default) */
.question-options-v2.cols-3 {
    grid-template-columns: repeat(2, 1fr);
}

/* 2 columnas (para 4 opciones) */
.question-options-v2.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Responsive: tablet */
@media (max-width: 992px) {
    .question-options-v2.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .question-options-v2.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: móvil */
@media (max-width: 576px) {
    .question-options-v2.cols-3,
    .question-options-v2.cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Card V2 - Solo texto, sin iconos */
.option-card-v2 {
    display: flex;
    flex-direction: row;
    align-items: start;
    background: white;
    border-radius: 0;
    padding: 16px 16px 16px 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--dr-card-shadow);
    position: relative;
    min-height: auto;
}

.option-card-v2:hover {
    box-shadow: var(--dr-card-shadow-hover);
    transform: translateY(-2px);
}

.option-card-v2.selected {
    border: 2px solid var(--dr-primary);
    box-shadow: var(--dr-card-shadow-hover);
}

.option-card-v2 input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Checkbox dentro de la card */
.card-checkbox {
    position: absolute;
    top: 15px;
    left: 12px;
    width: 24px;
    height: 24px;
    border: 2px solid var(--dr-border);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--dr-transition);
    background: white;
}

.option-card-v2.selected .card-checkbox {
    background: var(--dr-primary);
    border-color: var(--dr-primary);
}

.card-checkbox::after {
    content: '';
    display: none;
}

.option-card-v2.selected .card-checkbox::after {
    display: block;
    width: 6px;
    height: 10px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* Para single select (radio) - checkbox circular */
.single-select .card-checkbox {
    border-radius: 50%;
}

.single-select .option-card-v2.selected .card-checkbox::after {
    width: 8px;
    height: 8px;
    background: white;
    border: none;
    border-radius: 50%;
    transform: none;
    margin: 0;
}

/* Contenido de la card */
.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    padding-left: 0;
}

.card-content {
    flex: 1;
}

.card-title {
    display: block;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.4;
}

.card-description {
    display: block;
    font-size: 14px;
    color: var(--dr-text-muted);
    line-height: 1.3;
    margin-top: 2px;
}

/* Icono/imagen de la card - ocultos */
.card-icon {
    display: none;
}


/* ==========================================================================
   Navegación V2
   ========================================================================== */
.quiz-navigation-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--dr-border);
    gap: 15px;
}

.btn-back-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    background: white;
    color: var(--dr-primary);
    border: 2px solid var(--dr-primary);
    cursor: pointer;
    transition: var(--dr-transition);
}

.btn-back-v2:hover {
    border-color: var( --dr-primary);
    background: var(--dr-bg-light);
    border-radius: 0;
}
.btn-back-v2:active , .btn-quiz:active{
    border-radius: 0 !important;
}

.btn-next-v2,
.btn-submit-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    background: var(--dr-primary-dark);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--dr-transition);
    margin-left: auto;
}

.btn-next-v2:hover:not(:disabled),
.btn-submit-v2:hover:not(:disabled) {
    background: #333333;
}

.btn-next-v2:disabled,
.btn-submit-v2:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Navegación fija en móvil */
@media (max-width: 576px) {
    .quiz-navigation-v2 {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 15px 20px;
        margin: 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 100;
    }

    .dermorutina-quiz {
        padding-bottom: 100px; /* Espacio para nav fija */
    }
}

/* ==========================================================================
   Pregunta Title V2
   ========================================================================== */
.question-header-v2 {
    text-align: center;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.question-title-v2 {
    font-size: 26px;
    color: var(--dr-text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.question-subtitle-v2 {
    font-size: 15px;
    color: var(--dr-text-light);
}

@media (max-width: 576px) {
    .question-title-v2 {
        font-size: 22px;
    }
}

/* ==========================================================================
   Botón Salir (esquina superior derecha)
   ========================================================================== */
.quiz-exit {
    position: absolute;
    top: 0;
    right: 0;
}

.btn-exit {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    font-size: 14px;
    text-decoration: underline;
    color: var(--dr-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--dr-transition);
}

.btn-exit:hover {
    color: var(--dr-text);
}

/* ==========================================================================
   Pantalla de introducción del test (Carolina)
   ========================================================================== */
.quiz-intro-screen {
    display: none;
}

.dermorutina-quiz.quiz-not-started .quiz-intro-screen {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
    align-items: center;
    max-width: 960px;
    margin: 40px auto;
}

.dermorutina-quiz.quiz-not-started .quiz-header,
.dermorutina-quiz.quiz-not-started .quiz-questions,
.dermorutina-quiz.quiz-not-started .quiz-navigation {
    display: none;
}

.quiz-intro-screen .intro-media img {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 4 / 5;
    box-shadow: var(--dr-shadow);
}

.quiz-intro-screen .intro-title {
    font-size: 32px;
    color: var(--dr-primary);
    margin-bottom: 16px;
}

.quiz-intro-screen .intro-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--dr-text);
    margin-bottom: 20px;
}

.quiz-intro-screen .intro-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.quiz-intro-screen .intro-bullets li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    color: var(--dr-text-light);
}

.quiz-intro-screen .intro-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--dr-success);
    font-weight: 700;
}

@media (max-width: 768px) {
    .dermorutina-quiz.quiz-not-started .quiz-intro-screen {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 20px auto;
        text-align: center;
    }

    .quiz-intro-screen .intro-media img {
        aspect-ratio: 16 / 10;
    }

    .quiz-intro-screen .intro-bullets li {
        text-align: left;
    }

    .quiz-intro-screen .intro-title {
        font-size: 26px;
    }

    .quiz-intro-screen #btn-start-quiz {
        width: 100%;
        min-height: 52px;
    }
}

/* ==========================================================================
   Táctil móvil: botones y opciones grandes
   ========================================================================== */
@media (max-width: 768px) {
    .quiz-navigation-v2 .btn {
        min-height: 52px;
        flex: 1;
    }

    .option-card-v2 {
        min-height: 56px;
    }
}

/* ==========================================================================
   Paso de contacto: variante usuario identificado
   ========================================================================== */
.contact-logged {
    background: var(--dr-bg-light);
    border: 1px solid var(--dr-border);
    border-radius: 8px;
    padding: 16px 20px;
}

.contact-logged .logged-summary {
    margin: 0 0 6px;
    color: var(--dr-text);
}

.contact-logged .logged-switch {
    font-size: 13px;
    color: var(--dr-text-light);
    text-decoration: underline;
}

.checkbox-text .newsletter-hint {
    display: block;
    font-size: 12px;
    color: var(--dr-text-muted);
}

/* ==========================================================================
   Modal de login (email ya registrado)
   ========================================================================== */
.drm-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.drm-auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.drm-auth-dialog {
    position: relative;
    background: var(--dr-bg);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 32px 28px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
}

.drm-auth-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: var(--dr-text-muted);
    cursor: pointer;
}

.drm-auth-title {
    font-size: 22px;
    color: var(--dr-primary);
    margin-bottom: 8px;
}

.drm-auth-message {
    color: var(--dr-text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.drm-auth-dialog .form-group input[type="email"],
.drm-auth-dialog .form-group input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--dr-border);
    border-radius: 6px;
    font-size: 15px;
}

.drm-auth-submit {
    width: 100%;
    margin-top: 8px;
    min-height: 48px;
}

.drm-auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
}

.drm-auth-links a {
    color: var(--dr-text-light);
    text-decoration: underline;
}

@media (max-width: 576px) {
    .drm-auth-dialog {
        padding: 24px 18px;
    }

    .drm-auth-links {
        flex-direction: column;
        text-align: center;
    }
}
