/* GP Cuestionario — frontend
   Identidad dark luxury de GP Agency
   Paleta: turquesa #5DC4C7 + púrpura #7C3AED sobre fondos negros
*/

.gp-cuest-wrapper {
    /* Design tokens GP Agency */
    --gp-teal: #5DC4C7;
    --gp-teal-light: #6DD4D7;
    --gp-teal-dark: #4DB8BB;
    --gp-purple: #7C3AED;
    --gp-bg-dark: #000000;
    --gp-bg-main: #0A0A0A;
    --gp-bg-alt: #111111;
    --gp-bg-card: rgba(255, 255, 255, 0.03);
    --gp-bg-input: rgba(255, 255, 255, 0.04);
    --gp-text-white: #FFFFFF;
    --gp-text-body: #A0A0B0;
    --gp-border: rgba(93, 196, 199, 0.12);
    --gp-border-input: rgba(255, 255, 255, 0.08);
    --gp-border-hover: rgba(93, 196, 199, 0.45);
    --gp-gradient: linear-gradient(135deg, #5DC4C7, #7C3AED);
    --gp-gradient-h: linear-gradient(90deg, #5DC4C7, #7C3AED);
    --gp-gradient-btn: linear-gradient(135deg, #6DD4D7 0%, #4DB8BB 100%);
    --gp-radius-md: 12px;
    --gp-radius-lg: 16px;
    --gp-radius-pill: 50px;
    --gp-font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --gp-font-display: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
    --gp-danger: #f87171;
    --gp-success: #5DC4C7;

    max-width: 880px;
    margin: 0 auto;
    padding: 32px 20px 100px;
    background: var(--gp-bg-main);
    color: var(--gp-text-white);
    font-family: var(--gp-font-primary);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
}

/* Soporte fallback para themes sin :has() y para que [hidden] no se rompa
   con resets agresivos del theme */
.gp-cuest-btn[hidden],
.gp-cuest-step[hidden] {
    display: none !important;
}

/* ============================================================
   Modo cuestionario: pinta toda la página dark, oculta header/footer
   del theme, y hace fullbleed.
   ============================================================ */
html.gp-cuest-html,
html.gp-cuest-html body.gp-cuest-active {
    background-color: #0A0A0A !important;
    color: #FFFFFF !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ocultar título de página, breadcrumbs */
body.gp-cuest-active .entry-title,
body.gp-cuest-active .page-title,
body.gp-cuest-active h1.entry-title,
body.gp-cuest-active h1.page-title,
body.gp-cuest-active .post-title,
body.gp-cuest-active header.entry-header,
body.gp-cuest-active .elementor-page-title,
body.gp-cuest-active .breadcrumbs,
body.gp-cuest-active nav.rank-math-breadcrumb {
    display: none !important;
}

/* Ocultar HEADER, NAV y FOOTER del theme */
body.gp-cuest-active > header,
body.gp-cuest-active > footer,
body.gp-cuest-active > nav,
body.gp-cuest-active .site-header,
body.gp-cuest-active #masthead,
body.gp-cuest-active .main-navigation,
body.gp-cuest-active .main-header,
body.gp-cuest-active .navbar,
body.gp-cuest-active .nav-bar,
body.gp-cuest-active .menu-toggle,
body.gp-cuest-active .site-branding,
body.gp-cuest-active .site-footer,
body.gp-cuest-active #colophon,
body.gp-cuest-active .footer-widgets,
body.gp-cuest-active .footer-bar,
body.gp-cuest-active .elementor-location-header,
body.gp-cuest-active .elementor-location-footer,
body.gp-cuest-active .elementor-sticky,
body.gp-cuest-active .header,
body.gp-cuest-active .footer {
    display: none !important;
}

/* Contenedor de contenido fullbleed */
body.gp-cuest-active .entry-content,
body.gp-cuest-active .post-content,
body.gp-cuest-active article,
body.gp-cuest-active main,
body.gp-cuest-active #main,
body.gp-cuest-active #content,
body.gp-cuest-active #primary,
body.gp-cuest-active .site,
body.gp-cuest-active .site-content,
body.gp-cuest-active #page,
body.gp-cuest-active .wrap,
body.gp-cuest-active .container,
body.gp-cuest-active .elementor-section-wrap {
    background: #0A0A0A !important;
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

/* WhatsApp flotante y otros widgets — el cliente está en un form,
   no le interfiramos. Si querés mantenerlos, borrá este bloque. */
body.gp-cuest-active .wa-chat-box-wrapper,
body.gp-cuest-active .wpfront-scroll-top-container,
body.gp-cuest-active [class*="floating-whatsapp"],
body.gp-cuest-active [class*="whatsapp-btn"],
body.gp-cuest-active [id*="whatsapp-chat"] {
    display: none !important;
}

.gp-cuest-wrapper *,
.gp-cuest-wrapper *::before,
.gp-cuest-wrapper *::after {
    box-sizing: border-box;
}

/* ============================================================
   Tipografía
   ============================================================ */
.gp-cuest-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gp-teal);
    background: rgba(93, 196, 199, 0.1);
    border: 1px solid rgba(93, 196, 199, 0.3);
    border-radius: 20px;
    padding: 5px 14px;
    margin: 0 0 18px;
    line-height: 1.6;
}

.gp-cuest-title {
    font-family: var(--gp-font-primary);
    font-size: 36px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gp-text-white);
    margin: 0 0 14px;
}

.gp-cuest-title-accent {
    background: var(--gp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.gp-cuest-gradient-line {
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gp-gradient-h);
    border-radius: 2px;
    margin: 14px 0 24px;
}

.gp-cuest-subtitle {
    color: var(--gp-text-body);
    margin: 0 0 36px;
    font-size: 16px;
    font-weight: 400;
}

.gp-cuest-greeting {
    color: var(--gp-text-body);
    margin: 0 0 28px;
    font-size: 15px;
}
.gp-cuest-greeting strong { color: var(--gp-text-white); font-weight: 600; }

/* ============================================================
   Cards
   ============================================================ */
.gp-cuest-card {
    background: var(--gp-bg-card);
    border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius-lg);
    padding: 36px 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 640px) {
    .gp-cuest-card { padding: 48px 44px; }
}

/* ============================================================
   Inputs
   ============================================================ */
.gp-cuest-form-intro .gp-cuest-field {
    margin-bottom: 22px;
}

.gp-cuest-field label {
    display: block;
    font-family: var(--gp-font-primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--gp-text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gp-cuest-field input,
.gp-cuest-textarea,
.gp-cuest-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gp-border-input);
    border-radius: var(--gp-radius-md);
    font-family: var(--gp-font-primary);
    font-size: 15px;
    color: var(--gp-text-white);
    background: var(--gp-bg-input);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.gp-cuest-field input::placeholder,
.gp-cuest-textarea::placeholder {
    color: rgba(160, 160, 176, 0.6);
}

.gp-cuest-field input:focus,
.gp-cuest-textarea:focus,
.gp-cuest-select:focus {
    outline: none;
    border-color: var(--gp-teal);
    background: rgba(93, 196, 199, 0.06);
    box-shadow: 0 0 0 3px rgba(93, 196, 199, 0.15);
}

.gp-cuest-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.gp-cuest-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%235DC4C7' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
    cursor: pointer;
}

.gp-cuest-select option {
    background: var(--gp-bg-alt);
    color: var(--gp-text-white);
}

.gp-cuest-hint {
    color: var(--gp-text-body);
    font-size: 13px;
    margin: 8px 0 0;
}

.gp-cuest-actions {
    margin-top: 32px;
}

/* ============================================================
   Botones
   ============================================================ */
.gp-cuest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--gp-radius-pill);
    border: none;
    font-family: var(--gp-font-primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    text-decoration: none;
    line-height: 1.2;
}

.gp-cuest-btn:active { transform: translateY(1px); }
.gp-cuest-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Botón primario (turquesa gradient) */
.gp-cuest-btn-primary {
    background: var(--gp-gradient-btn);
    color: #0A0A0A;
    box-shadow: 0 4px 20px rgba(93, 196, 199, 0.35);
}
.gp-cuest-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(93, 196, 199, 0.55);
}

/* Botón secundario (outline turquesa) */
.gp-cuest-btn-ghost {
    background: transparent;
    border: 1.5px solid rgba(93, 196, 199, 0.6);
    color: var(--gp-teal);
}
.gp-cuest-btn-ghost:hover:not(:disabled) {
    background: rgba(93, 196, 199, 0.1);
    border-color: var(--gp-teal);
    box-shadow: 0 0 20px rgba(93, 196, 199, 0.2);
}

/* ============================================================
   Barra de progreso
   ============================================================ */
.gp-cuest-progress-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--gp-bg-main);
    padding: 18px 0 14px;
    margin: -32px -20px 28px;
    padding-left: 20px;
    padding-right: 20px;
    border-bottom: 1px solid var(--gp-border-input);
}

.gp-cuest-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--gp-text-body);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.gp-cuest-progress-info > span:last-child { color: var(--gp-teal); }

.gp-cuest-progress-track {
    background: rgba(255, 255, 255, 0.06);
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
}

.gp-cuest-progress-fill {
    height: 100%;
    background: var(--gp-gradient-h);
    width: 0%;
    transition: width .4s ease;
    border-radius: 999px;
}

.gp-cuest-save-status {
    color: var(--gp-teal);
    font-size: 12px;
    margin: 10px 0 0;
    min-height: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gp-cuest-save-status::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--gp-teal);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") no-repeat center / contain;
    opacity: 0;
    transition: opacity .2s ease;
}

.gp-cuest-save-status:not(:empty)::before { opacity: 1; }

/* ============================================================
   Pasos (bloques)
   ============================================================ */
.gp-cuest-step {
    display: none;
    animation: gp-cuest-fade .3s ease;
}

.gp-cuest-step.is-active { display: block; }

@keyframes gp-cuest-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gp-cuest-step-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gp-border-input);
}

.gp-cuest-step-title {
    font-family: var(--gp-font-display);
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--gp-text-white);
    margin: 6px 0 4px;
    text-transform: capitalize;
}

.gp-cuest-step-desc {
    color: var(--gp-text-body);
    margin: 8px 0 0;
    font-size: 15px;
}

/* ============================================================
   Preguntas
   ============================================================ */
.gp-cuest-question {
    margin-bottom: 30px;
}

.gp-cuest-question-label {
    display: block;
    font-family: var(--gp-font-primary);
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--gp-text-white);
}

.gp-cuest-question-number {
    color: var(--gp-teal);
    font-weight: 700;
    margin-right: 6px;
}

.gp-cuest-example {
    color: var(--gp-text-body);
    font-size: 13px;
    margin: 0 0 12px;
    font-style: italic;
    line-height: 1.55;
}

/* ============================================================
   Checkboxes
   ============================================================ */
.gp-cuest-checkbox-group {
    display: grid;
    gap: 10px;
}

.gp-cuest-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--gp-border-input);
    border-radius: var(--gp-radius-md);
    background: var(--gp-bg-input);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    font-size: 14px;
    color: var(--gp-text-white);
}

.gp-cuest-checkbox:hover {
    border-color: var(--gp-border-hover);
    background: rgba(93, 196, 199, 0.06);
}

.gp-cuest-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gp-teal);
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

/* ============================================================
   Group (subcampos del 5.1)
   ============================================================ */
.gp-cuest-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 600px) {
    .gp-cuest-group { grid-template-columns: 1fr 1fr; }
}

.gp-cuest-group .gp-cuest-field { margin-bottom: 0; }
.gp-cuest-group .gp-cuest-field label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
    color: var(--gp-text-body);
    font-weight: 500;
}

/* ============================================================
   Confirmación final
   ============================================================ */
.gp-cuest-confirm {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(93, 196, 199, 0.3);
    border-radius: var(--gp-radius-lg);
    cursor: pointer;
    background: rgba(93, 196, 199, 0.06);
    font-size: 15px;
    color: var(--gp-text-white);
    line-height: 1.6;
    transition: border-color .2s ease, background .2s ease;
}

.gp-cuest-confirm:hover {
    border-color: var(--gp-teal);
    background: rgba(93, 196, 199, 0.1);
}

.gp-cuest-confirm input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--gp-teal);
    flex-shrink: 0;
}

/* ============================================================
   Navegación
   ============================================================ */
.gp-cuest-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--gp-border-input);
}

.gp-cuest-nav .gp-cuest-btn-ghost:nth-child(2) {
    margin-right: auto;
}

@media (max-width: 560px) {
    .gp-cuest-nav { flex-direction: column; }
    .gp-cuest-nav .gp-cuest-btn { width: 100%; }
    .gp-cuest-nav .gp-cuest-btn-ghost:nth-child(2) { order: 3; margin-right: 0; }
}

/* ============================================================
   Feedback
   ============================================================ */
.gp-cuest-feedback {
    margin-top: 16px;
    min-height: 20px;
    font-size: 14px;
    font-weight: 500;
}
.gp-cuest-feedback.is-error { color: var(--gp-danger); }
.gp-cuest-feedback.is-success { color: var(--gp-teal); }

/* ============================================================
   Pantalla de éxito
   ============================================================ */
.gp-cuest-success {
    text-align: center;
}

.gp-cuest-success-icon {
    width: 80px;
    height: 80px;
    background: var(--gp-gradient);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(93, 196, 199, 0.45);
}

.gp-cuest-success-icon::before {
    content: '';
    width: 36px;
    height: 36px;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") no-repeat center / contain;
}

.gp-cuest-success .gp-cuest-title {
    text-align: center;
}

.gp-cuest-success .gp-cuest-subtitle {
    text-align: center;
    max-width: 520px;
    margin: 0 auto 24px;
}

.gp-cuest-signature {
    margin-top: 36px;
    color: var(--gp-teal);
    font-style: italic;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* ============================================================
   Pantalla inicial centrada
   ============================================================ */
.gp-cuest-intro {
    text-align: left;
}

.gp-cuest-intro-header {
    margin-bottom: 36px;
}

.gp-cuest-intro .gp-cuest-title,
.gp-cuest-intro .gp-cuest-subtitle,
.gp-cuest-intro .gp-cuest-eyebrow {
    text-align: left;
}
