/**
 * Frontend V2 - Estilos del test (solo light mode)
 * TODO scoped a #gdt-root. No estilos globales sin prefijo.
 */

/* ---------- Mini-reset seguro (solo dentro del root) ---------- */
#gdt-root *,
#gdt-root *::before,
#gdt-root *::after {
    box-sizing: border-box;
}
#gdt-root img {
    max-width: 100%;
    height: auto;
}
#gdt-root {
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Outfit', sans-serif;
    color: var(--gdt-text);
    background-color: var(--gdt-bg);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Variables (sistema visual mockup) ---------- */
#gdt-root {
    --gdt-primary: #646f58;
    --gdt-secondary: #afbe8f;
    --gdt-accent: #dde392;
    --gdt-text: #504b3a;
    --gdt-bg: #fdfdfb;
    --gdt-glass: rgba(255, 255, 255, 0.70);
    --gdt-border: rgba(0, 0, 0, 0.06);
    --gdt-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.18);
    --gdt-radius: 1rem;
    --gdt-radius-xl: 1.5rem;
    --gdt-radius-2xl: 2rem;
}

/* ---------- Blobs (fondos difuminados, pointer-events: none) ---------- */
#gdt-root .gdt-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
#gdt-root .gdt-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: gdt-float 6s ease-in-out infinite;
}
#gdt-root .gdt-blob:nth-child(1) {
    top: -10%;
    left: -10%;
    width: min(500px, 90vw);
    height: min(500px, 90vw);
    background: var(--gdt-secondary);
}
#gdt-root .gdt-blob:nth-child(2) {
    bottom: -10%;
    right: -10%;
    width: min(400px, 80vw);
    height: min(400px, 80vw);
    background: var(--gdt-accent);
    animation-delay: 2s;
}
#gdt-root .gdt-blob:nth-child(3) {
    top: 40%;
    left: 20%;
    width: min(280px, 60vw);
    height: min(280px, 60vw);
    background: var(--gdt-primary);
    opacity: 0.25;
    animation-delay: 1s;
}
@keyframes gdt-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ---------- Glass panel ---------- */
#gdt-root .gdt-glass {
    background: var(--gdt-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--gdt-border);
    box-shadow: var(--gdt-shadow);
    border-radius: var(--gdt-radius-2xl);
}

/* ---------- Píldoras (badge / mini-features) ---------- */
#gdt-root .gdt-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gdt-primary);
    border-radius: 9999px;
    border: 1px solid rgba(100, 111, 88, 0.2);
    background: rgba(175, 190, 143, 0.15);
}

/* ---------- Botón CTA pill ---------- */
#gdt-root .gdt-btn-primary,
#gdt-root .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.875rem 1.75rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #fff;
    background: var(--gdt-primary);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
#gdt-root .gdt-btn-primary:hover,
#gdt-root .btn-primary:hover {
    box-shadow: 0 0 40px -10px rgba(100, 111, 88, 0.5);
    transform: scale(1.02);
}
#gdt-root .gdt-btn-primary:active,
#gdt-root .btn-primary:active {
    transform: scale(0.98);
}
#gdt-root .gdt-btn-primary:focus-visible,
#gdt-root .btn-primary:focus-visible {
    outline: 2px solid var(--gdt-accent);
    outline-offset: 2px;
}
#gdt-root .gdt-btn-primary:disabled,
#gdt-root .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Progreso ---------- */
#gdt-root .gdt-progress {
    width: 100%;
    margin-bottom: 1rem;
}
#gdt-root .gdt-progress__labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gdt-text);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}
#gdt-root .gdt-progress-bar {
    height: 8px;
    width: 100%;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 9999px;
    overflow: hidden;
}
#gdt-root .gdt-progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gdt-secondary), var(--gdt-primary));
    border-radius: 9999px;
    transition: width 0.35s ease-out;
}

/* ---------- Container / layout ---------- */
#gdt-root .gdt-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(1100px, 100%);
    margin: 0 auto;
    padding: 16px;
}
@media (min-width: 768px) {
    #gdt-root .gdt-container {
        padding: 24px;
    }
}

#gdt-root .gdt-quiz-main {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

#gdt-root .gdt-stage {
    width: 100%;
    max-width: 100%;
}

/* ---------- Intro (welcome) ---------- */
#gdt-root #intro.quiz-intro {
    text-align: center;
    padding: 24px 0;
    display: block;
    opacity: 0;
}
#gdt-root #intro.quiz-intro.fade-in {
    opacity: 1;
}

/* Badge superior: solo ancho del contenido, centrado (nunca 100%) */
#gdt-root .gdt-intro-badge,
#gdt-root .gdt-badge,
#gdt-root #intro .gdt-intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content !important;
    max-width: 100%;
    margin: 0 auto 1.5rem;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gdt-primary);
    border-radius: 9999px;
    border: 1px solid rgba(100, 111, 88, 0.2);
    background: rgba(175, 190, 143, 0.2);
}
#gdt-root .gdt-intro-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gdt-accent);
    animation: gdt-ping 1.5s ease-in-out infinite;
}
@keyframes gdt-ping {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

#gdt-root .quiz-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(32px, 7vw, 60px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--gdt-text);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}
#gdt-root .quiz-title .gdt-highlight {
    background: linear-gradient(90deg, var(--gdt-primary), var(--gdt-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#gdt-root .quiz-micro {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--gdt-text);
    opacity: 0.85;
    max-width: 32rem;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

#gdt-root .gdt-intro-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gdt-text);
    opacity: 0.8;
}

/* ---------- Quiz steps ---------- */
#gdt-root .quiz-step {
    display: none;
    opacity: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
#gdt-root .quiz-step.fade-in {
    opacity: 1;
}

#gdt-root .progress-wrapper {
    margin-bottom: 1.5rem;
}
#gdt-root .progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gdt-text);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}
#gdt-root .progress-bar {
    height: 8px;
    width: 100%;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 9999px;
    overflow: hidden;
}
#gdt-root .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gdt-secondary), var(--gdt-primary));
    border-radius: 9999px;
    transition: width 0.35s ease-out;
}

/* Card central glass (pregunta) — contenido sin overflow */
#gdt-root .gdt-question-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
    max-width: 100%;
    overflow: hidden;
}
@media (min-width: 768px) {
    #gdt-root .gdt-question-card {
        padding: 2rem 3rem;
    }
}

#gdt-root .quiz-question {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(20px, 5vw, 34px);
    font-weight: 700;
    color: var(--gdt-text);
    margin: 0 0 0.5rem;
    line-height: 1.25;
    padding: 0;
    border: none;
}
#gdt-root .quiz-step .quiz-micro {
    font-size: 1rem;
    color: var(--gdt-text);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

#gdt-root .quiz-fieldset {
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-width: 100%;
    min-width: 0;
}

/* ---------- Opciones (cards) — sin overflow, wrap robusto ---------- */
#gdt-root .radio-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

#gdt-root .radio-card {
    display: block;
    cursor: pointer;
    position: relative;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}
#gdt-root .radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#gdt-root .radio-card-content,
#gdt-root .gdt-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    min-height: 48px;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid var(--gdt-border);
    border-radius: var(--gdt-radius-xl);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    overflow: hidden;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    #gdt-root .radio-card-content,
    #gdt-root .gdt-option {
        padding: 1.25rem 1.5rem;
    }
}

#gdt-root .radio-card:hover .radio-card-content,
#gdt-root .radio-card:focus-within .radio-card-content {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Opción seleccionada: solo se oscurece un poco, sin fondo verde */
#gdt-root .radio-card input[type="radio"]:checked + .radio-card-content,
#gdt-root .gdt-option--selected {
    border-color: rgba(0, 0, 0, 0.14);
    background: rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#gdt-root .radio-card-label {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(80, 75, 58, 0.3);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gdt-text);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
/* Círculo A/B/C seleccionado: oscurecido un poco, sin verde fuerte */
#gdt-root .radio-card input[type="radio"]:checked + .radio-card-content .radio-card-label {
    background: rgba(80, 75, 58, 0.2);
    border-color: rgba(80, 75, 58, 0.4);
    color: var(--gdt-text);
}

#gdt-root .radio-card-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gdt-text);
    padding-top: 0.15rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

/* ---------- Step email ---------- */
#gdt-root .email-step .gdt-question-card {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

#gdt-root .form-group.email-group {
    margin-bottom: 1rem;
}
#gdt-root .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gdt-text);
    margin-bottom: 0.5rem;
}
#gdt-root .form-input {
    width: 100%;
    min-height: 48px;
    padding: 0.875rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    border: 2px solid var(--gdt-border);
    border-radius: var(--gdt-radius);
    background: rgba(255, 255, 255, 0.8);
    color: var(--gdt-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
#gdt-root .form-input:focus {
    outline: none;
    border-color: var(--gdt-primary);
    box-shadow: 0 0 0 3px rgba(100, 111, 88, 0.2);
}
#gdt-root .form-input::placeholder {
    color: var(--gdt-text);
    opacity: 0.5;
}

#gdt-root .policies-text {
    font-size: 0.75rem;
    color: var(--gdt-text);
    opacity: 0.8;
    text-align: center;
    margin: 1rem 0 1.5rem;
    line-height: 1.5;
}
#gdt-root .policies-text .link {
    color: var(--gdt-primary);
    text-decoration: underline;
}

#gdt-root .btn-block {
    width: 100%;
    max-width: 100%;
}

/* ---------- Resultados ---------- */
#gdt-root #result-container.result {
    display: none;
    opacity: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    text-align: center;
}
#gdt-root #result-container.result.fade-in {
    opacity: 1;
}

#gdt-root .gdt-result-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0 3rem;
}

/* Wrapper con borde degradado (solo light mode) */
#gdt-root .gdt-level-ring {
    background: linear-gradient(135deg, var(--gdt-secondary), var(--gdt-primary));
    padding: 6px;
    border-radius: 9999px;
    display: inline-block;
    margin: 0 auto 1.5rem;
}

#gdt-root .gdt-level-ring .gdt-result-ring-wrap {
    background: #fff;
    border-radius: 9999px;
    display: block;
    box-sizing: border-box;
    margin: 0;
}

#gdt-root .gdt-result-ring-wrap {
    position: relative;
    width: 12rem;
    height: 12rem;
    margin: 0;
}
@media (min-width: 768px) {
    #gdt-root .gdt-result-ring-wrap {
        width: 14rem;
        height: 14rem;
    }
}

#gdt-root .gdt-result-ring-wrap svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
#gdt-root .gdt-result-ring-wrap .progress-ring__bg {
    color: rgba(0, 0, 0, 0.08);
}
#gdt-root .gdt-result-ring-wrap .progress-ring__circle {
    color: var(--gdt-accent);
    transition: stroke-dashoffset 0.35s ease-out;
}

#gdt-root .gdt-result-ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Pill de nivel oculta visualmente; se mantiene en DOM para JS (badge-icon, badge-text) */
#gdt-root #result-badge.result-badge {
    display: none !important;
}
#gdt-root #result-badge.result-badge-semilla {
    background: rgba(221, 227, 146, 0.4);
    color: var(--gdt-primary);
}
#gdt-root #result-badge.result-badge-brote {
    background: rgba(175, 190, 143, 0.5);
    color: var(--gdt-primary);
}
#gdt-root #result-badge.result-badge-flor {
    background: rgba(255, 214, 232, 0.6);
    color: var(--gdt-primary);
}
#gdt-root #result-badge.result-badge-bosque {
    background: rgba(175, 190, 143, 0.5);
    color: var(--gdt-text);
}

#gdt-root #result-title.result-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(26px, 5.5vw, 38px);
    font-weight: 700;
    color: var(--gdt-primary);
    margin: 0 0 1rem;
}

#gdt-root #result-diagnosis.result-diagnosis {
    font-size: clamp(17px, 2.2vw, 19px);
    line-height: 1.6;
    color: var(--gdt-text);
    max-width: 40rem;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}
@media (min-width: 768px) {
    #gdt-root #result-diagnosis.result-diagnosis {
        font-size: 1.125rem;
    }
}

#gdt-root .result-recommendations {
    text-align: left;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

#gdt-root .recommendation-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 3.2vw, 1.6rem);
    font-weight: 600;
    color: var(--gdt-text);
    margin-bottom: 1rem;
    text-align: center;
}
@media (min-width: 768px) {
    #gdt-root .recommendation-title {
        text-align: left;
    }
}

#gdt-root .recommendation-main {
    margin-bottom: 2.5rem;
}

#gdt-root .main-recommendation-container {
    margin-top: 0.75rem;
}

/* Recomendación principal: card glass + CTA */
#gdt-root .product-card,
#gdt-root .service-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: var(--gdt-radius-2xl);
    background: var(--gdt-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gdt-border);
    box-shadow: var(--gdt-shadow);
}
@media (min-width: 768px) {
    #gdt-root .product-card,
    #gdt-root .service-card {
        flex-direction: row;
        align-items: center;
        padding: 2rem 2.5rem;
    }
}

#gdt-root .product-image,
#gdt-root .service-icon {
    flex-shrink: 0;
    border-radius: var(--gdt-radius);
    overflow: hidden;
}
#gdt-root .product-image {
    width: 100%;
    max-width: 200px;
    height: 140px;
    object-fit: cover;
}
#gdt-root .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#gdt-root .service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(175, 190, 143, 0.3);
    color: var(--gdt-primary);
    font-size: 2rem;
}

#gdt-root .product-content,
#gdt-root .service-content {
    flex: 1;
}
#gdt-root .product-name,
#gdt-root .service-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gdt-primary);
    margin: 0 0 0.5rem;
}
#gdt-root .product-description,
#gdt-root .service-description {
    font-size: 0.9375rem;
    color: var(--gdt-text);
    line-height: 1.6;
    margin: 0 0 1rem;
}
#gdt-root .product-card .btn-primary,
#gdt-root .service-card .btn-primary {
    align-self: flex-start;
}

/* Plan sugerido */
#gdt-root .recommendation-plan {
    margin-bottom: 2.5rem;
}

#gdt-root .plan-container {
    margin-top: 0.75rem;
}

#gdt-root .plan-card {
    position: relative;
    width: 100%;
    border-radius: var(--gdt-radius-2xl);
    overflow: hidden;
    box-shadow: var(--gdt-shadow);
    min-height: 200px;
}

#gdt-root .plan-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}
#gdt-root .plan-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transform: scale(1.05);
}
#gdt-root .plan-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
#gdt-root .plan-lavanda .plan-overlay {
    background: linear-gradient(135deg, rgba(230, 230, 250, 0.85) 0%, rgba(255, 255, 255, 0.95) 100%);
}
#gdt-root .plan-magnolia .plan-overlay {
    background: linear-gradient(135deg, rgba(248, 246, 241, 0.85) 0%, rgba(255, 255, 255, 0.95) 100%);
}
#gdt-root .plan-secuoya .plan-overlay {
    background: linear-gradient(135deg, rgba(139, 58, 46, 0.15) 0%, rgba(255, 255, 255, 0.95) 100%);
}

#gdt-root .plan-card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
}
@media (min-width: 768px) {
    #gdt-root .plan-card-content {
        padding: 2rem;
    }
}

#gdt-root .plan-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
#gdt-root .plan-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
#gdt-root .plan-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#gdt-root .plan-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gdt-text);
    margin: 0 0 0.25rem;
}
#gdt-root .plan-tagline {
    font-size: 0.9375rem;
    color: var(--gdt-text);
    opacity: 0.85;
    margin: 0;
    font-style: italic;
}
#gdt-root .plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
#gdt-root .plan-features li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--gdt-text);
}
#gdt-root .plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gdt-primary);
    font-weight: 700;
}

/* Otras recomendaciones — grid */
#gdt-root .recommendation-extra {
    margin-top: 2rem;
}

#gdt-root .recommendation-list,
#gdt-root .gdt-additional-recommendations {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    #gdt-root .recommendation-list,
    #gdt-root .gdt-additional-recommendations {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    #gdt-root .recommendation-list,
    #gdt-root .gdt-additional-recommendations {
        grid-template-columns: repeat(3, 1fr);
    }
}

#gdt-root .gdt-reco-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--gdt-border);
    border-radius: var(--gdt-radius-xl);
    box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
#gdt-root .gdt-reco-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gdt-shadow);
}

#gdt-root .secondary-image,
#gdt-root .secondary-icon {
    width: 100%;
    border-radius: var(--gdt-radius);
    overflow: hidden;
    background: rgba(175, 190, 143, 0.2);
}
#gdt-root .secondary-image {
    min-height: 120px;
    max-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#gdt-root .secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#gdt-root .secondary-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gdt-primary);
    font-size: 2rem;
}
#gdt-root .secondary-content strong {
    display: block;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gdt-primary);
    margin-bottom: 0.25rem;
}
#gdt-root .secondary-content p {
    font-size: 0.875rem;
    color: var(--gdt-text);
    line-height: 1.5;
    margin: 0;
}

/* ---------- Modal (dentro de #gdt-root si se mueve al template) ---------- */
#gdt-root .gdt-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
#gdt-root .gdt-modal.is-open {
    display: flex;
}
#gdt-root .gdt-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}
#gdt-root .gdt-modal__dialog {
    position: relative;
    z-index: 1;
    background: var(--gdt-bg);
    border-radius: var(--gdt-radius-2xl);
    box-shadow: var(--gdt-shadow);
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
}
#gdt-root .gdt-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gdt-text);
    cursor: pointer;
    border-radius: var(--gdt-radius);
    transition: background 0.2s;
}
#gdt-root .gdt-modal__close:hover {
    background: rgba(0, 0, 0, 0.06);
}
#gdt-root .gdt-modal__spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border: 3px solid var(--gdt-border);
    border-top-color: var(--gdt-primary);
    border-radius: 50%;
    animation: gdt-spin 0.8s linear infinite;
}
#gdt-root .gdt-modal__countdown {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gdt-primary);
    margin-bottom: 0.75rem;
}
#gdt-root .gdt-modal__dialog h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gdt-text);
    margin: 0 0 0.5rem;
}
#gdt-root .gdt-modal__dialog p {
    font-size: 0.9375rem;
    color: var(--gdt-text);
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}
@keyframes gdt-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Animaciones ---------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
#gdt-root .fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* ---------- Error message ---------- */
#gdt-root .gdt-error-message {
    color: #c62828;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #ffebee;
    border-left: 3px solid #c62828;
    border-radius: var(--gdt-radius);
}

/* ---------- Accesibilidad: tap targets mínimos ---------- */
#gdt-root .btn,
#gdt-root button[type="submit"] {
    min-height: 48px;
}
@media (prefers-reduced-motion: reduce) {
    #gdt-root *,
    #gdt-root *::before,
    #gdt-root *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- Móvil: subir 2px a TODAS las fuentes (h1, h2, p, etc.) ---------- */
@media (max-width: 767px) {
    #gdt-root {
        font-size: 18px;
    }
    #gdt-root .quiz-title {
        font-size: clamp(34px, 7vw, 62px);
    }
    #gdt-root .quiz-micro {
        font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    }
    #gdt-root .quiz-question {
        font-size: clamp(22px, 5vw, 36px);
    }
    #gdt-root .quiz-step .quiz-micro {
        font-size: 1.125rem;
    }
    #gdt-root .progress-text {
        font-size: 0.8125rem;
    }
    #gdt-root .radio-card-text {
        font-size: 1.125rem;
    }
    #gdt-root .radio-card-label {
        font-size: 0.9375rem;
    }
    #gdt-root .form-input {
        font-size: 18px;
    }
    #gdt-root #result-title.result-title {
        font-size: clamp(28px, 5.5vw, 40px);
    }
    #gdt-root #result-diagnosis.result-diagnosis {
        font-size: clamp(19px, 2.2vw, 21px);
    }
    #gdt-root .recommendation-title {
        font-size: clamp(1.325rem, 3.2vw, 1.7rem);
    }
    #gdt-root .product-name,
    #gdt-root .service-name {
        font-size: 1.375rem;
    }
    #gdt-root .product-description,
    #gdt-root .service-description {
        font-size: 1rem;
    }
    #gdt-root .plan-name {
        font-size: 1.625rem;
    }
    #gdt-root .plan-tagline {
        font-size: 1rem;
    }
    #gdt-root .plan-features li {
        font-size: 1rem;
    }
    #gdt-root .secondary-content strong {
        font-size: 1.125rem;
    }
    #gdt-root .secondary-content p {
        font-size: 0.9375rem;
    }
    #gdt-root .gdt-intro-badge,
    #gdt-root .gdt-badge {
        font-size: 0.9375rem;
    }
    #gdt-root .gdt-pill {
        font-size: 0.9375rem;
    }
    #gdt-root .policies-text {
        font-size: 0.8125rem;
    }
    #gdt-root .gdt-modal__dialog h3 {
        font-size: 1.375rem;
    }
    #gdt-root .gdt-modal__dialog p {
        font-size: 1rem;
    }
    #gdt-root .gdt-modal__countdown {
        font-size: 1.375rem;
    }
    #gdt-root .gdt-error-message {
        font-size: 0.9375rem;
    }
    #gdt-root .btn,
    #gdt-root .gdt-btn-primary,
    #gdt-root .btn-primary {
        font-size: 1.125rem;
    }
}

/*
 * VALIDACIÓN FINAL (checklist):
 * [ ] Móvil 320px: tipos grandes, botones ≥48px, 0 overflow-x
 * [ ] 375/390/430: igual
 * [ ] Flujo: intro → preguntas → email → envío → modal → resultados
 * [ ] Sin errores consola por selectores rotos
 * [ ] Resto de la web intacto (header/footer del tema sin tocar)
 */
