/* ============================================================
 *  Cotizador Pines o Pins — Landing Page Styles
 * ============================================================ */

/* ── Landing wrapper ──────────────────────────── */
.pop-landing {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
}

.pop-landing *,
.pop-landing *::before,
.pop-landing *::after {
    box-sizing: border-box;
}

/* ── Hero section ─────────────────────────────── */
.pop-hero {
    text-align: center;
    padding: 0 1rem 2rem;
    margin-bottom: 2.5rem;
}

.pop-hero-title {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: .6rem 1.5rem;
    margin: 0 0 1.5rem;
    line-height: 1.15;
    letter-spacing: .5px;
}

.pop-hero-desc {
    max-width: 620px;
    margin: 0 auto 1rem;
    font-size: 1rem;
    color: #333;
    line-height: 1.65;
    font-style: italic;
}

.pop-hero-desc-secondary {
    max-width: 620px;
    margin: 0 auto 1.75rem;
    font-size: 1.05rem;
    color: #111;
    line-height: 1.65;
    font-weight: 500;
}

.pop-hero-btn {
    display: inline-block;
    padding: .75rem 2.2rem;
    font-size: .95rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: #1a1a1a;
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.pop-hero-btn:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

/* ============================================================
 *  ACCORDION GALLERY
 * ============================================================ */

.pop-accordion-section {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.pop-accordion {
    display: flex;
    height: 450px;
    gap: 6px;
    border-radius: 16px;
    overflow: hidden;
}

/* ── Panel ────────────────────────────────────── */
.pop-acc-panel {
    position: relative;
    flex: 1;
    min-width: 0;
    background-color: #242424;
    background-image: var(--pop-bg);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    transition: flex .5s cubic-bezier(.4, 0, .2, 1);
}

/* Dark overlay for readability */
.pop-acc-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, .15) 0%,
        rgba(0, 0, 0, .55) 100%
    );
    transition: background .4s ease;
    z-index: 1;
}

.pop-acc-panel:hover::before {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, .05) 0%,
        rgba(0, 0, 0, .5) 100%
    );
}

/* Active panel expands */
.pop-acc-panel.pop-acc-active {
    flex: 5;
}

/* ── Vertical label (collapsed state) ─────────── */
.pop-acc-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
    transition: opacity .35s ease;
    padding: 1rem 0;
}

.pop-acc-panel.pop-acc-active .pop-acc-label {
    opacity: 0;
    pointer-events: none;
}

/* ── Expanded content overlay ─────────────────── */
.pop-acc-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 2.5rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .4s ease .15s, transform .4s ease .15s;
}

.pop-acc-panel.pop-acc-active .pop-acc-content {
    opacity: 1;
    transform: translateY(0);
}

.pop-acc-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 .75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.pop-acc-btn {
    display: inline-block;
    padding: .6rem 2rem;
    font-size: .85rem;
    font-weight: 700;
    font-family: inherit;
    color: #242424;
    background: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.pop-acc-btn:hover {
    background: #2196F3;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(33, 150, 243, .4);
}

/* ============================================================
 *  DARK FORM — #242424 background, clean modern design
 * ============================================================ */

.pop-form-dark {
    background: #242424;
    padding: 3.5rem 2rem;
    border-radius: 0;
}

.pop-form-dark-inner {
    max-width: 600px;
    margin: 0 auto;
}

/* ── Form title ───────────────────────────────── */
.pop-form-dark-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 .4rem;
}

.pop-form-dark-subtitle {
    color: rgba(255, 255, 255, .5);
    font-size: .9rem;
    font-weight: 400;
    margin: 0 0 2rem;
}

/* ── Divider ──────────────────────────────────── */
.pop-form-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin: 1.75rem 0;
}

/* ── 2-column grid layout ─────────────────────── */
.pop-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.25rem;
}

.pop-form-field {
    margin-bottom: 1.1rem;
}

/* ── Dark labels ──────────────────────────────── */
.pop-dark-label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 600;
    font-size: .78rem;
    color: rgba(255, 255, 255, .7);
    text-transform: uppercase;
    letter-spacing: .8px;
}

.pop-dark-label .pop-required {
    color: #2196F3;
}

/* ── Dark inputs ──────────────────────────────── */
.pop-dark-input {
    width: 100%;
    padding: .7rem 1rem;
    font-size: .9rem;
    font-family: inherit;
    border: none;
    border-radius: 50px;
    outline: none;
    background: #fff;
    color: #333;
    transition: box-shadow .2s ease;
}

.pop-dark-input:focus {
    box-shadow: 0 0 0 3px rgba(33, 150, 243, .35);
}

.pop-dark-input::placeholder {
    color: #aaa;
}

.pop-dark-textarea {
    border-radius: 16px;
    resize: vertical;
    min-height: 80px;
}

/* ── Dark select ──────────────────────────────── */
select.pop-dark-input {
    cursor: pointer;
    appearance: auto;
    border-radius: 50px;
}

/* ── Size buttons (dark variant) ──────────────── */
.pop-form-dark .pop-sizes {
    gap: .5rem;
}

.pop-size-btn-dark {
    display: inline-block;
    padding: .5rem 1.15rem;
    font-size: .85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 50px;
    transition: all .2s ease;
    user-select: none;
    cursor: pointer;
}

.pop-size-radio:checked + .pop-size-btn-dark {
    background: #2196F3;
    color: #fff;
    border-color: #2196F3;
    box-shadow: 0 2px 12px rgba(33, 150, 243, .4);
}

.pop-size-option:hover .pop-size-btn-dark {
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
}

/* ── Volume message (dark) ────────────────────── */
.pop-volume-msg-dark {
    color: rgba(255, 255, 255, .45);
    font-size: .8rem;
    margin-top: .35rem;
}

/* ── Price preview (dark) ─────────────────────── */
.pop-price-preview-dark {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 1.15rem 1.35rem;
}

.pop-price-preview-dark .pop-price-row {
    color: rgba(255, 255, 255, .6);
    font-size: .88rem;
    padding: .3rem 0;
}

.pop-price-preview-dark .pop-price-row span:last-child {
    color: #fff;
    font-weight: 600;
}

.pop-price-preview-dark .pop-price-total {
    border-top-color: rgba(33, 150, 243, .3);
    margin-top: .3rem;
    padding-top: .5rem;
}

.pop-price-preview-dark .pop-price-total span:last-child {
    color: #2196F3;
    font-size: 1.1rem;
}

.pop-price-preview-dark .pop-price-deposit span:last-child {
    color: rgba(255, 255, 255, .75);
}

.pop-cta-hint {
    text-align: center;
    color: rgba(255, 255, 255, .8);
    font-size: .82rem;
    font-style: italic;
    margin: 0 0 .5rem;
}

.pop-includes-note {
    color: rgba(255, 255, 255, .8);
    font-size: .82rem;
    margin: .6rem 0 0;
    padding-left: .2rem;
    letter-spacing: .02em;
}

.pop-includes-note::first-letter {
    color: #4CAF50;
}

/* ── Upload area (dark) ───────────────────────── */
.pop-upload-area-dark {
    border-color: rgba(255, 255, 255, .15);
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
}

.pop-upload-area-dark:hover,
.pop-upload-area-dark.pop-drag-over {
    border-color: #2196F3;
    background: rgba(33, 150, 243, .06);
}

.pop-upload-area-dark .pop-upload-placeholder p {
    color: rgba(255, 255, 255, .6);
}

.pop-upload-area-dark .pop-upload-placeholder p strong {
    color: #2196F3;
}

.pop-upload-area-dark .pop-upload-placeholder small {
    color: rgba(255, 255, 255, .35);
}

.pop-upload-area-dark #pop-preview-filename {
    color: rgba(255, 255, 255, .7);
}

/* ── Submit button (blue, rounded pill) ───────── */
.pop-submit-btn-dark {
    display: block;
    width: 100%;
    padding: .85rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: #2196F3;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: .75rem;
}

.pop-submit-btn-dark:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, .35);
}

.pop-submit-btn-dark:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Logo Spinner ─────────────────────────────── */
.pop-logo-spinner {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 1.2rem auto 0;
}

.pop-logo-spinner-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 75px;
    height: 75px;
    transform: translate(-50%, -50%);
    object-fit: contain;
    border-radius: 50%;
    animation: pop-logo-pulse 1.6s ease-in-out infinite;
}

.pop-logo-spinner-ring {
    width: 100%;
    height: 100%;
    animation: pop-ring-spin 1.2s linear infinite;
}

.pop-logo-spinner-ring circle {
    fill: none;
    stroke: #56C5E8;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 160;
    stroke-dashoffset: 120;
}

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

@keyframes pop-logo-pulse {
    0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(.95); }
    50%      { opacity: 1;  transform: translate(-50%, -50%) scale(1.05); }
}

/* ── Messages (dark form context) ─────────────── */
.pop-form-dark #pop-form-message {
    border-radius: 12px;
    margin-top: 1rem;
}

.pop-form-dark #pop-form-message.pop-msg-success {
    background: rgba(39, 174, 96, .15);
    color: #6fcf97;
    border: 1px solid rgba(39, 174, 96, .25);
}

.pop-form-dark #pop-form-message.pop-msg-error {
    background: rgba(231, 76, 60, .15);
    color: #f5a0a0;
    border: 1px solid rgba(231, 76, 60, .25);
}

/* ============================================================
 *  Responsive
 * ============================================================ */

@media (max-width: 900px) {
    .pop-hero-title {
        font-size: 2rem;
    }

    .pop-accordion {
        height: 380px;
    }
}

@media (max-width: 700px) {
    .pop-accordion {
        flex-direction: column;
        height: auto;
    }

    .pop-acc-panel {
        height: 60px;
        transition: height .5s cubic-bezier(.4, 0, .2, 1);
    }

    .pop-acc-panel.pop-acc-active {
        height: 320px;
    }

    .pop-acc-label {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        font-size: .8rem;
        letter-spacing: 1.5px;
    }

    .pop-acc-content {
        padding: 1.5rem;
    }

    .pop-acc-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .pop-hero {
        padding: 0 .5rem 1.5rem;
    }

    .pop-hero-title {
        font-size: 1.5rem;
        padding: .5rem 1rem;
    }

    .pop-hero-desc,
    .pop-hero-desc-secondary {
        font-size: .92rem;
    }

    .pop-accordion-section {
        margin-bottom: 2rem;
    }

    .pop-form-dark {
        padding: 2.5rem 1.25rem;
    }

    .pop-form-grid {
        grid-template-columns: 1fr;
    }

    .pop-form-dark-title {
        font-size: 1.3rem;
    }
}
