/* URL IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
    --sage-green: #8BA888;
    --soft-blue: #A8C5DA;
    --warm-coral: #F4A89F;
    --warm-bg: #F8F6F3;
    --warm-card: #FFFFFF;
    --warm-border: #E8E4DF;
    --text-primary: #2D3E3F;
    --text-secondary: #5A6C6D;

    /* Spacing & Sizing Tokens */
    --spacing-header: clamp(2rem, 4vw + 1rem, 4rem);
    --btn-font-size: clamp(0.95rem, 0.5vw + 0.8rem, 1.125rem);
    --btn-padding-y: clamp(0.6rem, 0.5vw + 0.4rem, 1rem);
    --btn-padding-x: clamp(1.25rem, 1.5vw + 0.5rem, 2rem);

    /* Input Tokens */
    --input-font-size: clamp(0.9rem, 0.5vw + 0.75rem, 1rem);
    --input-padding-y: clamp(0.75rem, 0.5vw + 0.5rem, 1rem);
    --input-padding-x: clamp(1rem, 1vw + 0.5rem, 1.5rem);

    /* Typography Tokens */
    --h1-size: clamp(2rem, 5vw, 3.5rem);
    --h2-size: clamp(1.75rem, 4vw, 2.5rem);
    --h3-size: clamp(1.5rem, 3vw, 2rem);
    --h4-size: clamp(1.25rem, 2vw, 1.75rem);
    --h5-size: clamp(1.1rem, 1.5vw, 1.5rem);
    --h6-size: clamp(1rem, 1vw, 1.25rem);
}

/* Form Controls */
.form-control-custom {
    display: block;
    width: 100%;
    font-family: 'DM Sans', sans-serif;
    font-size: var(--input-font-size);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: white;
    background-clip: padding-box;
    border: 2px solid var(--warm-border);
    border-radius: 0.75rem;
    padding: var(--input-padding-y) var(--input-padding-x);
    transition: all 0.3s ease;
    height: auto;
}

select.form-control-custom {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235A6C6D' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.form-control-custom:focus {
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(139, 168, 136, 0.1);
    outline: none;
    color: var(--text-primary);
    background-color: white;
}

.form-control-custom::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Landing Page Styles */
.landing-page-container {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /*background-color: var(--warm-bg);*/
    background-color: #f8f6f3a1;
    color: var(--text-primary);
    border-radius: 15px;
    backdrop-filter: blur(4px);
    outline: 1px solid #ffffff61;
}

.hero-section {
    /*background-color: var(--warm-bg);*/
    padding-top: var(--spacing-header) !important;
    padding-bottom: var(--spacing-header) !important;
    position: relative;
    overflow: hidden;
}

/* Blob Background Effect */
.hero-blob-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(139, 168, 136, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 197, 218, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.badge-pill-custom {
    background-color: rgba(139, 168, 136, 0.1);
    color: var(--sage-green);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    display: inline-block;
}

.badge-notification {
    background-color: var(--warm-coral);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
    vertical-align: middle;
    line-height: 1;
}

.display-4 {
    /* font-size: var(--h1-size);
     */
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

h1 {
    font-size: var(--h1-size) !important;
}

h2 {
    font-size: var(--h2-size) !important;
}

h3 {
    font-size: var(--h3-size) !important;
}

h4 {
    font-size: var(--h4-size) !important;
}

h5 {
    font-size: var(--h5-size) !important;
}

h6 {
    font-size: var(--h6-size) !important;
}

.lead {
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1.6;
}

.btn-gradient-primary {
    background: linear-gradient(to right, var(--sage-green), var(--soft-blue));
    color: white;
    border: none;
    border-radius: 1rem;
    /* rounded-2xl */
    padding: var(--btn-padding-y) var(--btn-padding-x);
    font-weight: 600;
    font-size: var(--btn-font-size);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-gradient-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    color: white;
}

.btn-outline-custom {
    background-color: white;
    color: var(--text-primary);
    border: 2px solid var(--warm-border);
    border-radius: 1rem;
    /* rounded-2xl */
    padding: var(--btn-padding-y) var(--btn-padding-x);
    font-weight: 600;
    font-size: var(--btn-font-size);
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    border-color: var(--sage-green);
    color: var(--text-primary);
}

.btn-outline-custom-sm {
    background-color: white;
    color: var(--text-primary);
    border: 2px solid var(--warm-border);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-outline-custom-sm:hover {
    border-color: var(--sage-green);
    color: var(--text-primary);
    transform: scale(1.02);
}

.btn-outline-custom.active {
    background: linear-gradient(to right, var(--sage-green), var(--soft-blue));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.card-custom {
    background-color: white;
    border-radius: 1.5rem;
    /* rounded-3xl */
    border: none;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(139, 168, 136, 0.05);
    transition: all 0.3s ease;
}

.card-custom:hover {
    box-shadow: 0 20px 25px -5px rgba(139, 168, 136, 0.1);
    transform: translateY(-2px);
}

.icon-box-custom {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    /* rounded-2xl */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.card-custom:hover .icon-box-custom {
    transform: scale(1.1);
}

/* Gradients for Icons */
.bg-gradient-1 {
    background: linear-gradient(135deg, var(--sage-green), var(--soft-blue));
}

.bg-gradient-2 {
    background: linear-gradient(135deg, var(--soft-blue), var(--warm-coral));
}

.bg-gradient-3 {
    background: linear-gradient(135deg, var(--warm-coral), var(--sage-green));
}

.bg-gradient-4 {
    background: linear-gradient(135deg, var(--sage-green), var(--warm-coral));
}

.bg-gradient-5 {
    background: linear-gradient(135deg, var(--soft-blue), var(--sage-green));
}

.bg-gradient-6 {
    background: linear-gradient(135deg, var(--warm-coral), var(--soft-blue));
}

.text-white-icon {
    color: white;
}

/* Existing Styles Override */
button.swal2-close {
    top: 7px;
}

.swal2-popup-large {
    width: 600px !important;
}

.enlaces-pago-container {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.enlace-pago-item {
    border: 1px solid var(--warm-border);
    border-radius: 0.375rem;
    padding: 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
}

.enlace-pago-item:hover {
    border-color: var(--sage-green);
    background-color: #f8f9fa;
}

.enlace-pago-item:has(.custom-control-input:checked) {
    border-color: var(--sage-green);
    box-shadow: 0 2px 4px rgba(139, 168, 136, 0.3);
    background-color: rgba(139, 168, 136, 0.1);
}

.enlace-pago-item .custom-control-input:checked~.custom-control-label::before {
    border-color: var(--sage-green);
    background-color: var(--sage-green);
}

/* Social Proof Stars */
.star-icon {
    color: var(--warm-coral);
    fill: var(--warm-coral);
}

/* Feature List Items */
.feature-list-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.bg-soft-green {
    background: linear-gradient(135deg, rgba(139, 168, 136, 0.2), rgba(139, 168, 136, 0.05));
}

.bg-soft-blue {
    background: linear-gradient(135deg, rgba(168, 197, 218, 0.2), rgba(168, 197, 218, 0.05));
}

.bg-soft-coral {
    background: linear-gradient(135deg, rgba(244, 168, 159, 0.2), rgba(244, 168, 159, 0.05));
}

.icon-box-small {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

/* Pricing Cards */
.card-pricing {
    /* background-color: white; Removed to allow gradient classes */
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--warm-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-pricing:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.price-tag {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.price-period {
    font-size: 1rem;
    opacity: 0.8;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    width: 100%;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.check-icon {
    color: #00A67E;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.card-pricing-highlight .check-icon {
    color: white;
}

.btn-pricing {
    width: 100%;
    padding: 1rem;
    border-radius: 9999px;
    font-weight: 600;
    margin-top: auto;
    transition: all 0.2s;
}

.btn-pricing-outline {
    background-color: #F3F4F6;
    color: var(--text-primary);
    border: none;
}

.btn-pricing-outline:hover {
    background-color: #E5E7EB;
}

.btn-pricing-white {
    background-color: white;
    color: #00A67E;
    border: none;
}

.btn-pricing-white:hover {
    background-color: #F9FAFB;
    transform: scale(1.02);
}

/* Tables */
.table-custom {
    background-color: var(--warm-card);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(139, 168, 136, 0.05);
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-custom thead {
    background: linear-gradient(to right, var(--sage-green), var(--soft-blue));
}

.table-custom th {
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

.table-custom td {
    padding: 1rem;
    border-bottom: 1px solid var(--warm-border);
    color: var(--text-primary);
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

.table-custom tbody tr:hover {
    background-color: rgba(139, 168, 136, 0.05);
}

.table-custom .table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Global Action Buttons */
.btn-action {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* For anchor tags acting as buttons */
}

.btn-action:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.btn-action-info {
    background-color: rgba(139, 168, 136, 0.2);
    color: var(--sage-green);
}

.btn-action-info:hover {
    color: var(--sage-green);
    background-color: rgba(139, 168, 136, 0.3);
}

.btn-action-edit {
    background-color: rgba(168, 197, 218, 0.2);
    color: var(--soft-blue);
}

.btn-action-edit:hover {
    color: var(--soft-blue);
    background-color: rgba(168, 197, 218, 0.3);
}

.btn-action-delete {
    background-color: rgba(244, 168, 159, 0.2);
    color: var(--warm-coral);
}

.btn-action-delete:hover {
    color: var(--warm-coral);
    background-color: rgba(244, 168, 159, 0.3);
}

.btn-action-secondary {
    background-color: #E2E8F0;
    color: #718096;
}

.btn-action-secondary:hover {
    background-color: #CBD5E0;
    color: #4A5568;
}

/* Updates to table to use the global classes if they are still nested in HTML, 
   but we can remove the specific definitions here since they are now global */
/* .table-custom .btn-action inherits global styles */

/* Tabs */
.nav-tabs-custom {
    border-bottom: 2px solid var(--warm-border);
    gap: 0.5rem;
    padding-bottom: 1px;
    margin-bottom: 1.5rem;
}

.nav-tabs-custom .nav-item {
    margin-bottom: -2px;
}

.nav-tabs-custom .nav-link {
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem 0.75rem 0 0;
    transition: all 0.3s ease;
    background: transparent;
    border-bottom: 3px solid transparent;
}

.nav-tabs-custom .nav-link:hover {
    color: var(--sage-green);
    background-color: rgba(139, 168, 136, 0.05);
}

.nav-tabs-custom .nav-link.active {
    color: var(--sage-green);
    background-color: white;
    border-bottom: 3px solid var(--sage-green);
    font-weight: 700;
}

.tab-pane-placeholder {
    padding: 3rem;
    text-align: center;
    background: white;
    border-radius: 1.5rem;
    border: 2px dashed var(--warm-border);
}

/* Timeline Component */
.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.5rem;
    width: 2px;
    background: var(--warm-border);
    z-index: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 4rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background-color: white;
    border: 2px solid var(--warm-border);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
    border-color: var(--sage-green);
}

.timeline-content {
    background-color: white;
    border: 1px solid var(--warm-border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-content:hover {
    box-shadow: 0 10px 15px -3px rgba(139, 168, 136, 0.05);
    transform: translateX(5px);
    border-color: var(--sage-green);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
}

.timeline-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Timeline Icon Variants */
.timeline-icon.type-cita {
    color: var(--soft-blue);
    background-color: rgba(168, 197, 218, 0.1);
    border-color: var(--soft-blue);
}

.timeline-icon.type-doc {
    color: var(--sage-green);
    background-color: rgba(139, 168, 136, 0.1);
    border-color: var(--sage-green);
}

.timeline-icon.type-sesion {
    color: var(--warm-coral);
    background-color: rgba(244, 168, 159, 0.1);
    border-color: var(--warm-coral);
}

.timeline-icon.type-llamada {
    color: #A0AEC0;
    background-color: rgba(160, 174, 192, 0.1);
    border-color: #A0AEC0;
}

.timeline-icon.type-mensaje {
    color: #9F7AEA;
    /* Purple for messages */
    background-color: rgba(159, 122, 234, 0.1);
    border-color: #9F7AEA;
}

.timeline-icon.type-cuestionario {
    color: var(--soft-blue);
    background-color: rgba(168, 197, 218, 0.15);
    border-color: var(--soft-blue);
}

/* Chat Styles */
.chat-container {
    background-color: var(--warm-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--warm-border);
}

.chat-msg {
    display: flex;
    margin-bottom: 1rem;
    flex-direction: column;
}

.chat-msg.me {
    align-items: flex-end;
}

.chat-msg.other {
    align-items: flex-start;
}

.chat-bubble {
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    max-width: 80%;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-family: 'DM Sans', sans-serif;
}

.chat-msg.me .chat-bubble {
    background: var(--sage-green);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.chat-msg.other .chat-bubble {
    background: white;
    border: 1px solid var(--warm-border);
    color: var(--text-primary);
    border-bottom-left-radius: 0.25rem;
}

.chat-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    padding: 0 0.5rem;
}

.chat-date-separator {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.chat-date-separator span {
    background: rgba(168, 197, 218, 0.2);
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Chat Input Container */
.chat-input-container {
    background: var(--warm-card);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid var(--warm-border);
}

.chat-input-container .input-group {
    display: flex;
    align-items: stretch;
}

.chat-input-container .form-control-custom {
    border: 1px solid var(--warm-border);
    background: white;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.chat-input-container .form-control-custom:focus {
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(139, 168, 136, 0.1);
    outline: none;
}

.chat-input-container .btn-gradient-primary {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

/* Timeline Expandable Content */
.timeline-expandable {
    margin-top: 0.5rem;
    padding-top: 0;
    border-top: none;
    display: none;
}

.timeline-expandable.show {
    display: block;
    animation: fadeInTimeline 0.3s ease;
}

.timeline-extra-info {
    background: linear-gradient(135deg, rgba(139, 168, 136, 0.08), rgba(168, 197, 218, 0.08));
    border: 1px solid rgba(139, 168, 136, 0.15);
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    position: relative;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.timeline-notes-content {
    white-space: pre-wrap;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.timeline-toggle-btn {
    background: none;
    border: none;
    padding: 0.35rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border-radius: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.timeline-toggle-btn:hover {
    color: var(--sage-green);
    background: rgba(139, 168, 136, 0.1);
}

.timeline-toggle-btn.has-content {
    color: var(--sage-green);
}

.timeline-indicators {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.timeline-indicator-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.35rem;
    background: rgba(139, 168, 136, 0.15);
    color: var(--sage-green);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.timeline-indicator-badge.timeline-indicator-pinned {
    background: rgba(168, 197, 218, 0.2);
    color: var(--soft-blue);
    cursor: default;
    transition: all 0.2s ease;
    padding-right: 0.35rem;
}

.timeline-indicator-badge.timeline-indicator-pinned:hover {
    background: rgba(168, 197, 218, 0.35);
}

/* Remove button inside pin badge */
.timeline-pin-remove-btn {
    background: none;
    border: none;
    padding: 0;
    margin-left: 0.35rem;
    cursor: pointer;
    color: var(--soft-blue);
    opacity: 0.6;
    font-size: 0.65rem;
    line-height: 1;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.timeline-pin-remove-btn:hover {
    opacity: 1;
    background: rgba(244, 168, 159, 0.3);
    color: var(--warm-coral);
}

@keyframes fadeInTimeline {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Preview Panel */
.preview-panel {
    position: sticky;
    top: 8rem;
    background: var(--warm-bg);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--warm-border);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.preview-panel h3 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: var(--h4-size);
}

.preview-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
}

.preview-field {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin: 0.5rem 0;
    border: 1px solid var(--warm-border);
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.preview-field:hover {
    border-color: var(--sage-green);
    box-shadow: 0 4px 6px -1px rgba(139, 168, 136, 0.1);
}

.preview-signature {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    border: 2px dashed var(--warm-border);
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-signature img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
}

/* Signature Pad */
.signature-wrapper {
    border: 2px solid var(--warm-border);
    border-radius: 1rem;
    background: white;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.signature-wrapper:hover {
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(139, 168, 136, 0.1);
}

/* Progress Steps */
.progress-steps-paneles {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 1rem;
}

.progress-steps-paneles::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: var(--warm-border);
    z-index: 0;
}

.progress-line-paneles {
    position: absolute;
    top: 20px;
    left: 2rem;
    height: 2px;
    background: var(--sage-green);
    transition: width 0.3s ease;
    z-index: 1;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.progress-step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--warm-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.progress-step.active .progress-step-circle {
    background: var(--sage-green);
    color: white;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 4px rgba(139, 168, 136, 0.2);
    transform: scale(1.1);
}

.progress-step.completed .progress-step-circle {
    background: var(--sage-green);
    border-color: var(--sage-green);
    color: white;
}

.progress-step-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.progress-step.active .progress-step-label {
    color: var(--sage-green);
    font-weight: 700;
}

/* Animations */
.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: var(--warm-bg);
    border-radius: 1rem;
    border: 2px solid var(--warm-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-group:hover {
    border-color: var(--sage-green);
    background: white;
    box-shadow: 0 4px 6px -1px rgba(139, 168, 136, 0.05);
}

.checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 1rem;
    cursor: pointer;
    accent-color: var(--sage-green);
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.button-group-responsive {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .preview-panel {
        position: static;
        max-height: none;
        margin-top: 2rem;
        top: 0;
    }

    .button-group-responsive {
        flex-direction: column;
    }

    .button-group-responsive .btn {
        width: 100%;
    }
}