/* ============================================
   FREEBIES STYLES
   ============================================ */

/* Hero */
.freebie-hero {
    padding: 140px 0 60px;
    text-align: center;
}

.freebie-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(46, 213, 115, 0.1);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    margin-bottom: 24px;
}

.freebie-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin-bottom: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.freebie-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Mode Selector */
.mode-selector-section {
    margin-bottom: 8px;
}

.mode-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mode-btn {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #f9f9f9;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    background: #f0f0f0;
}

.mode-btn.active {
    background: rgba(46, 213, 115, 0.08);
    border-color: var(--accent);
}

.mode-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.mode-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mode-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.mode-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.mode-btn.active .mode-title {
    color: var(--accent);
}

/* Why Section */
.freebie-why {
    padding: 60px 0 80px;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.why-content h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.why-content > p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 16px;
}

.why-content > p strong {
    color: var(--text-dark);
}

.why-points {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.why-point {
    display: flex;
    gap: 16px;
}

.point-icon {
    width: 48px;
    height: 48px;
    background: rgba(46, 213, 115, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.why-point h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.why-point p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Visual Card */
.visual-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
}

.visual-example {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.example-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.example-row span:first-child {
    color: #666;
}

.example-row span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.example-row .negative {
    color: #e74c3c;
}

.example-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 8px 0;
}

.example-row.total {
    padding-top: 8px;
}

.example-row.total span:last-child {
    color: var(--accent);
    font-size: 18px;
}

.example-row.result {
    background: linear-gradient(135deg, #1a4a4a 0%, #2a7d6a 100%);
    margin: 16px -32px -32px;
    padding: 20px 32px;
    border-radius: 0 0 20px 20px;
}

.example-row.result span {
    color: white;
}

.example-row.result span:last-child {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.visual-caption {
    margin-top: 20px;
    padding: 0 8px;
    font-size: 14px;
    color: #e74c3c;
    text-align: center;
    font-style: italic;
    line-height: 1.6;
}

/* Calculator Section */
.calculator-section {
    padding: 80px 0 100px;
    background: #fafafa;
}

.calculator-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.calculator-header {
    text-align: center;
    margin-bottom: 48px;
}

.calculator-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.calculator-header p {
    font-size: 16px;
    color: #666;
}

/* Calculator Form */
.calculator-form {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
}

.form-section {
    margin-bottom: 32px;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h3 .optional {
    font-size: 13px;
    font-weight: 400;
    color: #999;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid.single {
    grid-template-columns: 1fr;
    max-width: 50%;
}

/* Currency Toggle */
.currency-toggle {
    display: flex;
    gap: 8px;
}

.currency-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.currency-btn:hover {
    background: #eee;
}

.currency-btn.active {
    background: white;
    border-color: var(--accent);
    color: var(--text-dark);
}

.currency-flag {
    font-size: 18px;
}

/* IVA Toggle */
.iva-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ddd;
    border-radius: 28px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-label {
    font-size: 14px;
    color: #666;
}

/* IVA Config */
.iva-config {
    margin-top: 20px;
    padding: 20px;
    background: #fffbeb;
    border-radius: 12px;
    border: 1px solid #fde68a;
}

.iva-config .form-group {
    max-width: 200px;
    margin-bottom: 16px;
}

.iva-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

.iva-warning svg {
    flex-shrink: 0;
    color: #f59e0b;
    margin-top: 2px;
}

.iva-warning strong {
    color: #92400e;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    font-size: 15px;
    color: #999;
    font-weight: 500;
}

.input-with-icon.right .input-icon {
    left: auto;
    right: 16px;
}

.input-with-icon input {
    width: 100%;
    padding: 14px 16px 14px 36px;
    font-size: 15px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.input-with-icon.right input {
    padding: 14px 36px 14px 16px;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--accent);
}

.input-hint {
    font-size: 12px;
    color: #999;
}

/* Custom Fields */
.custom-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.custom-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 12px;
}

.custom-field-row input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-family: inherit;
}

.custom-field-row input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-remove-field {
    width: 40px;
    height: 40px;
    background: #fee;
    border: none;
    border-radius: 10px;
    color: #e74c3c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.btn-remove-field:hover {
    background: #fdd;
}

.btn-add-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    background: rgba(46, 213, 115, 0.1);
    border: 2px dashed rgba(46, 213, 115, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-add-field:hover {
    background: rgba(46, 213, 115, 0.15);
    border-color: var(--accent);
}

/* Form Actions */
.form-actions {
    margin-top: 32px;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #27ae60;
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 48px;
    max-width: 480px;
    width: 100%;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.modal-header p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

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

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="date"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-family: inherit;
}

.lead-form input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Checkbox */
.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

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

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

.lead-form .btn {
    width: 100%;
    margin-top: 8px;
}

/* Results Section */
.results-section {
    margin-top: 48px;
}

.results-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
}

.results-header {
    background: linear-gradient(135deg, #1a4a4a 0%, #2a7d6a 50%, #4a9d7d 100%);
    padding: 48px;
    text-align: center;
    position: relative;
}

.results-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../assets/noise.svg");
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.5;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.results-header > * {
    position: relative;
    z-index: 1;
}

.results-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 8px;
}

.results-value {
    font-size: 72px;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 16px;
}

.results-explanation {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

.results-breakdown {
    padding: 32px 48px;
    border-bottom: 1px solid #eee;
}

.results-breakdown h4 {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}

.breakdown-item span:first-child {
    color: #666;
}

.breakdown-item span:last-child {
    font-weight: 600;
    color: #e74c3c;
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 2px solid #eee;
    font-size: 16px;
    font-weight: 600;
}

.breakdown-total span:last-child {
    color: var(--accent);
    font-size: 20px;
}

/* Recommendations */
.results-recommendations {
    padding: 32px 48px;
    border-bottom: 1px solid #eee;
}

.results-recommendations h4 {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recommendation-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.recommendation-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.recommendation-content h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.recommendation-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Results CTA */
/* Download Results Button */
.results-actions {
    padding: 24px 48px 0;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-download:active {
    transform: translateY(0);
}

.btn-download svg {
    flex-shrink: 0;
}

.results-cta {
    padding: 32px 48px;
    text-align: center;
}

.results-cta p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.results-cta .btn {
    margin: 0 8px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #ddd;
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--text-dark);
    background: #f5f5f5;
}

/* Section Description */
.section-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    margin-top: -8px;
}

/* ============================================
   PRICING TABLE (Costeo de Productos)
   ============================================ */
.results-pricing {
    padding: 32px 48px;
    border-bottom: 1px solid #eee;
}

.results-pricing h4 {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.pricing-table-wrapper {
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.pricing-table thead th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid #eee;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pricing-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-table tbody tr.recommended {
    background: rgba(46, 213, 115, 0.05);
}

.pricing-table tbody tr.recommended td {
    font-weight: 600;
}

.margin-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    color: #666;
}

.margin-badge.good {
    background: rgba(46, 213, 115, 0.15);
    color: var(--accent);
}

.price-cell {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
}

.price-iva-cell {
    font-weight: 500;
    color: #666;
    font-size: 15px;
}

.profit-cell {
    color: var(--accent);
    font-weight: 600;
}

.not-achievable {
    color: #999;
    font-style: italic;
    text-align: center;
}

/* ============================================
   PRICE COMPARISON (Costeo de Productos)
   ============================================ */
.results-comparison {
    padding: 32px 48px;
    border-bottom: 1px solid #eee;
}

.results-comparison h4 {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.comparison-card {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 24px;
    border-left: 4px solid #ddd;
}

.comparison-card.good {
    background: rgba(46, 213, 115, 0.05);
    border-left-color: var(--accent);
}

.comparison-card.warning {
    background: rgba(245, 158, 11, 0.05);
    border-left-color: #f59e0b;
}

.comparison-card.danger {
    background: rgba(231, 76, 60, 0.05);
    border-left-color: #e74c3c;
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.comparison-icon {
    font-size: 24px;
}

.comparison-status {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.comparison-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comparison-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}

.comparison-row span:first-child {
    color: #666;
}

.comparison-row span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.comparison-row.highlight {
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px dashed #ddd;
}

.comparison-row .good {
    color: var(--accent);
}

.comparison-row .warning {
    color: #f59e0b;
}

.comparison-row .danger {
    color: #e74c3c;
}

.comparison-row .positive {
    color: var(--accent);
}

.comparison-row .negative {
    color: #e74c3c;
}

/* ============================================
   OFFER TYPE SELECTOR (Desarrollo de Ofertas)
   ============================================ */
.offer-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.offer-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: #f9f9f9;
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.offer-type-card:hover {
    background: white;
    border-color: #ddd;
    transform: translateY(-2px);
}

.offer-type-card.selected {
    background: rgba(46, 213, 115, 0.05);
    border-color: var(--accent);
}

.offer-type-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.offer-type-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.offer-type-example {
    font-size: 12px;
    color: #888;
}

/* Volume Tiers */
.volume-tiers {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.volume-tiers h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.tier-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.tier-label {
    font-weight: 600;
    color: var(--text-dark);
    width: 50px;
}

.tier-input {
    width: 60px;
    padding: 8px 12px;
    font-size: 14px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-family: inherit;
    text-align: center;
}

.tier-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Bundle Products */
.bundle-products {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bundle-product label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

.bundle-product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bundle-name-input {
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-family: inherit;
}

.bundle-name-input:focus {
    outline: none;
    border-color: var(--accent);
}

.bundle-price-input {
    width: 100%;
}

/* ============================================
   IMPACT TABLE (Desarrollo de Ofertas)
   ============================================ */
.results-impact {
    padding: 32px 48px;
    border-bottom: 1px solid #eee;
}

.results-impact h4 {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.impact-table {
    width: 100%;
    border-collapse: collapse;
}

.impact-table thead th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid #eee;
    font-size: 13px;
}

.impact-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.impact-table tbody td:first-child {
    font-weight: 500;
    color: var(--text-dark);
}

.impact-table tbody td:last-child {
    font-weight: 600;
}

.impact-positive {
    color: var(--accent) !important;
}

.impact-negative {
    color: #e74c3c !important;
}

/* ============================================
   SIMULATION (Desarrollo de Ofertas)
   ============================================ */
.results-simulation {
    padding: 32px 48px;
    border-bottom: 1px solid #eee;
}

.results-simulation h4 {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.simulation-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Breakeven Explanation */
.breakeven-explanation {
    background: #f0f9f4;
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
}

.breakeven-explanation p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Breakeven Main Card */
.simulation-card.breakeven-main {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    text-align: center;
    padding: 32px;
    border-radius: 16px;
}

.simulation-card.breakeven-main .simulation-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.simulation-card.breakeven-main .simulation-value {
    font-size: 64px;
    font-weight: 700;
    color: var(--accent);
    margin: 8px 0;
    display: block;
}

.simulation-card.breakeven-main .simulation-value.warning {
    color: #f39c12;
}

.simulation-card.breakeven-main .simulation-sublabel {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: block;
}

.percentage-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    margin-left: 8px;
}

/* Scenarios Comparison */
.scenarios-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: stretch;
}

.scenario-box {
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
}

.scenario-box-offer {
    background: #fff;
    border: 2px solid var(--accent);
}

.scenario-box-header {
    padding: 16px 20px;
    background: #eee;
}

.scenario-box-offer .scenario-box-header {
    background: var(--accent);
}

.scenario-box-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #666;
}

.scenario-box-offer .scenario-box-title {
    color: #fff;
}

.scenario-formula {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.formula-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.formula-label {
    color: #666;
}

.formula-value {
    font-weight: 600;
    color: var(--text-dark);
}

.formula-value.highlight {
    color: var(--accent);
    font-size: 18px;
}

.formula-operation {
    padding: 12px 0;
    border-top: 1px dashed #ddd;
    border-bottom: 1px dashed #ddd;
    margin: 4px 0;
}

.formula-operation .formula-label {
    width: 100%;
    text-align: center;
    font-family: monospace;
    font-size: 13px;
    color: #888;
}

.formula-total {
    padding-top: 8px;
}

.formula-total .formula-label {
    font-weight: 600;
    color: #333;
}

.formula-total .formula-value {
    font-size: 18px;
    color: var(--accent);
}

.scenario-equals {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #ccc;
}

/* Breakeven Conclusion */
.breakeven-conclusion {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    border-radius: 12px;
}

.breakeven-conclusion.success {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.breakeven-conclusion.warning {
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.conclusion-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.breakeven-conclusion p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* ============================================
   COPY PREVIEW (Desarrollo de Ofertas)
   ============================================ */
.results-copy {
    padding: 32px 48px;
    border-bottom: 1px solid #eee;
}

.results-copy h4 {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.copy-preview {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 24px;
    border-left: 4px solid var(--accent);
}

.copy-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.copy-description {
    font-size: 16px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.5;
}

.copy-conditions {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    font-style: italic;
}

.copy-cta {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .form-grid.single {
        max-width: 100%;
    }

    .custom-field-row {
        grid-template-columns: 1fr;
    }

    .btn-remove-field {
        justify-self: end;
    }

    .results-header {
        padding: 32px 24px;
    }

    .results-value {
        font-size: 56px;
    }

    .results-breakdown,
    .results-recommendations,
    .results-cta,
    .results-pricing,
    .results-comparison,
    .results-impact,
    .results-simulation,
    .results-copy {
        padding: 24px;
    }

    .pricing-table thead th,
    .pricing-table tbody td {
        padding: 12px;
    }

    .offer-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bundle-product-row {
        grid-template-columns: 1fr;
    }

    .simulation-card.breakeven-main .simulation-value {
        font-size: 48px;
    }

    .scenarios-comparison {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .scenario-equals {
        font-size: 24px;
        padding: 8px 0;
    }
}

@media (max-width: 600px) {
    .freebie-hero {
        padding: 120px 0 40px;
    }

    .freebie-hero h1 {
        font-size: 28px;
    }

    .freebie-subtitle {
        font-size: 16px;
    }

    .why-content h2 {
        font-size: 24px;
    }

    .calculator-form {
        padding: 24px;
    }

    .mode-selector {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mode-btn {
        padding: 16px;
    }

    .mode-icon {
        font-size: 24px;
    }

    .modal-content {
        padding: 32px 24px;
    }

    .results-value {
        font-size: 48px;
    }

    .results-actions {
        padding: 20px 24px 0;
    }

    .btn-download {
        width: 100%;
        padding: 14px 20px;
    }

    .results-cta .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }

    .offer-type-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .offer-type-card {
        padding: 16px 12px;
    }

    .offer-type-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .offer-type-name {
        font-size: 13px;
    }

    .offer-type-example {
        font-size: 11px;
    }

    .tier-row {
        font-size: 13px;
    }

    .tier-input {
        width: 50px;
        padding: 6px 8px;
    }

    .copy-title {
        font-size: 20px;
    }

    .copy-description {
        font-size: 14px;
    }

    .impact-table {
        font-size: 13px;
    }

    .impact-table thead th,
    .impact-table tbody td {
        padding: 10px 8px;
    }
}

/* ============================================
   REFERENTES PARA PAUTA - Gallery Styles
   ============================================ */

/* Why List */
.why-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.why-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.why-icon {
    width: 48px;
    height: 48px;
    background: rgba(46, 213, 115, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.why-list li strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.why-list li p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Preview Card */
.preview-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
}

.preview-mockup {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.mockup-header {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: #eee;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
}

.mockup-content {
    padding: 20px;
}

.mockup-video {
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 200px;
    background: linear-gradient(135deg, #ddd 0%, #e5e5e5 100%);
    border-radius: 8px;
    margin-bottom: 16px;
}

.mockup-text {
    height: 12px;
    background: #ddd;
    border-radius: 6px;
    margin-bottom: 8px;
}

.mockup-text.short {
    width: 60%;
}

.preview-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 13px;
    color: #666;
}

/* Filters Section */
.filters-section {
    padding: 0 0 40px;
    background: #fafafa;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 24px;
}

.search-box svg {
    color: #999;
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    border: none;
    font-size: 15px;
    font-family: inherit;
    background: transparent;
}

.search-box input:focus {
    outline: none;
}

.search-box input::placeholder {
    color: #999;
}

.filter-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 90px;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: #ccc;
    color: var(--text-dark);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Gallery Section */
.gallery-section {
    padding: 0 0 80px;
    background: #fafafa;
}

.gallery-header {
    margin-bottom: 24px;
}

.gallery-header span {
    font-size: 14px;
    color: #666;
}

.referentes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Referente Card */
.referente-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.referente-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.referente-thumbnail {
    aspect-ratio: 4/5;
    max-height: 220px;
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.referente-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.thumbnail-placeholder {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    z-index: 1;
}

.thumbnail-placeholder svg {
    width: 36px;
    height: 36px;
}

/* Lock Overlay */
.referente-locked .referente-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 1;
    color: white;
}

.lock-overlay svg {
    width: 32px;
    height: 32px;
}

.lock-overlay span {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Referente Info */
.referente-info {
    padding: 20px;
}

/* Brand Info */
.referente-brand {
    margin-bottom: 8px;
}

.brand-link,
.brand-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.brand-link:hover {
    text-decoration: underline;
}

.brand-name {
    color: #666;
}

.referente-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.referente-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tag {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tag-platform {
    background: #f0f0f0;
    color: #666;
}

.tag-tiktok {
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

.tag-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.tag-facebook {
    background: #1877f2;
    color: white;
}

.tag-pinterest {
    background: #e60023;
    color: white;
}

.tag-industry {
    background: rgba(46, 213, 115, 0.1);
    color: var(--accent);
}

.tag-type {
    background: #f5f5f5;
    color: #888;
}

.referente-hook {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
    font-style: italic;
}

.referente-info .btn {
    width: 100%;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 13px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 24px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #eee;
    color: var(--text-dark);
}

/* Referente Modal */
.referente-modal-content {
    max-width: 540px;
    max-height: 85vh;
    overflow-y: auto;
}

.referente-modal-body {
    padding: 24px;
}

.embed-container {
    margin-bottom: 24px;
    min-height: 300px;
}

/* Pinterest Embed */
.embed-pinterest-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.embed-pinterest-wrapper span[data-pin-href] {
    margin: 0 auto;
}

.embed-fallback {
    text-align: center;
    margin-top: 16px;
}

/* TikTok Embed */
.embed-tiktok-wrapper {
    display: flex;
    justify-content: center;
}

.embed-tiktok-wrapper blockquote {
    margin: 0 auto;
}

/* Instagram Embed */
.embed-instagram-wrapper {
    display: flex;
    justify-content: center;
}

.embed-instagram-wrapper blockquote {
    margin: 0 auto !important;
}

.embed-placeholder {
    background: #f5f5f5;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
}

.embed-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.embed-icon svg {
    width: 32px;
    height: 32px;
}

.embed-brand {
    margin-bottom: 12px;
}

.embed-brand-link,
.embed-brand-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.embed-brand-link:hover {
    text-decoration: underline;
}

.embed-brand-name {
    color: var(--text-dark);
}

.embed-placeholder p {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.embed-placeholder .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.referente-details h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.referente-details .referente-tags {
    margin-bottom: 16px;
}

.referente-hook {
    margin-bottom: 20px;
}

.hook-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 4px;
}

.referente-details .referente-hook p {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    font-style: italic;
    margin: 0;
}

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

/* Modal Actions */
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn-text {
    background: none;
    border: none;
    padding: 8px 0;
    font-size: 13px;
    color: #999;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: color 0.2s ease;
}

.btn-text:hover {
    color: #e74c3c;
}

.btn-report svg {
    color: inherit;
}

/* Lead Modal */
.lead-modal-content {
    max-width: 440px;
}

.lead-modal-body {
    padding: 48px 32px;
    text-align: center;
}

.lead-icon {
    width: 80px;
    height: 80px;
    background: rgba(46, 213, 115, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--accent);
}

.lead-modal-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.lead-modal-body > p {
    font-size: 15px;
    color: #666;
    margin-bottom: 32px;
}

.lead-modal-body .form-group {
    text-align: left;
    margin-bottom: 16px;
}

.lead-modal-body .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: block;
}

.lead-modal-body .form-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-family: inherit;
}

.lead-modal-body .form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    margin: 24px 0;
}

.form-checkbox input {
    margin-top: 2px;
}

.form-checkbox label {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    cursor: pointer;
}

.btn-block {
    width: 100%;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text-dark);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive - Referentes */
@media (max-width: 900px) {
    .referentes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-label {
        min-width: auto;
        width: 100%;
        margin-bottom: 4px;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .referente-thumbnail {
        max-height: 320px;
    }

    .lead-modal-body {
        padding: 32px 24px;
    }

    .lead-icon {
        width: 64px;
        height: 64px;
    }

    .lead-icon svg {
        width: 32px;
        height: 32px;
    }

    .lead-modal-body h2 {
        font-size: 20px;
    }
}
