:root {
    --cnd-color-1: #a3d900;
    --cnd-color-2: #ff3b30;
    --cnd-color-3: #4a90e2;
    --cnd-color-4: #e04f39;
    --cnd-color-5: #cddc39;
    --cnd-color-6: #7f8c8d;
    --cnd-color-7: #ff9f00;
    --cnd-color-8: #9b59b6;
    --cnd-color-9: #00b894;
    --cnd-bg: #f9fbff;
    --cnd-text: #2d3436;
    --cnd-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --cnd-radius: 20px;
}

.cnd-section-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5fb 100%);
    padding: 80px 20px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--cnd-text);
}

.cnd-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cnd-header {
    text-align: center;
    margin-bottom: 50px;
}

.cnd-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #4a90e2, #e04f39);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.cnd-header p {
    font-size: 1.2rem;
    color: #636e72;
}

.cnd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.cnd-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--cnd-radius);
    padding: 30px;
    box-shadow: var(--cnd-shadow);
    border-top: 6px solid var(--accent);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.cnd-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.cnd-card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cnd-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2d3436;
}

.cnd-card-sub {
    font-size: 0.95rem;
    color: #636e72;
    flex-grow: 1;
    margin-bottom: 25px;
}

.cnd-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cnd-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cnd-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.cnd-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.cnd-qr-container span {
    font-size: 0.75rem;
    color: #b2bec3;
    font-weight: 600;
    text-transform: uppercase;
}

.cnd-qr {
    width: 60px;
    height: 60px;
    border: 2px solid #f1f2f6;
    border-radius: 8px;
    padding: 3px;
    background: white;
}

/* Modal Estilos */
.cnd-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cnd-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.cnd-modal-box {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.cnd-modal-overlay.active .cnd-modal-box {
    transform: scale(1);
}

.cnd-modal-header {
    background: var(--accent);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cnd-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.cnd-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cnd-modal-close:hover {
    background: rgba(255,255,255,0.4);
}

.cnd-modal-content {
    padding: 30px;
    overflow-y: auto;
}

/* Campos de Formulario */
.cnd-form-group {
    margin-bottom: 20px;
}
.cnd-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3436;
}
.cnd-form-group input, .cnd-form-group select, .cnd-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: #f8fafc;
}
.cnd-form-group input:focus, .cnd-form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
}
.cnd-questions-wrapper {
    background: #f8fafc;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-top: 30px;
    margin-bottom: 30px;
}
.cnd-q-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--accent);
}
.cnd-q-opts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cnd-q-opts label {
    background: white;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}
.cnd-q-opts label:hover {
    border-color: var(--accent);
    background: #f0f7ff;
}
.cnd-modal-footer {
    padding: 20px 30px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.cnd-msg-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    display: none;
}

.cnd-thanks-view {
    text-align: center;
    padding: 50px 20px;
}
.cnd-thanks-view img {
    width: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.cnd-thanks-view h2 {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 10px;
}
.cnd-thanks-view p {
    font-size: 1.2rem;
    color: #636e72;
}
