:root {
      --azul-1: #255ac6;
      --azul-2: #141a51; 
      --gris-oscuro: #808080;
      --gris-claro: #cccccc;
      --gris-fondos: #f6f6f6; 
      --sombras: 0 4px 20px rgba(0, 0, 0, 0.04);
    }

/* Adicionales */
.dlocalwp-form {
    padding: 0rem;
    gap: 0;
    }

hr.divider{
    width: 100%;
    margin-top: 2rem;
    height: 0;
    border-top: 1px solid var(--gris-claro);
    border-bottom: 0px;
    border-radius: 1px;
}

p.subtitulo{
    font-size: 1.1rem;
    color: var(--gris-oscuro);
    width: 100%;
    padding-top: 0.5rem;
    margin: 0;
    font-weight: 300;
}

.dlocalwp-dropdown-wrapper {
    position: relative;
    min-width: 40%;
    margin: 0;
}

.dlocalwp-dropdown{
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 1rem;
    background: #fcfcfc;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
    color: var(--gris-oscuro);
}

.dlocalwp-from-row-1{
    margin-bottom: 1rem;
}

.dlocalwp-caution{
    font-size: 0.9rem;
    color: red;

}

.dlocalwp-terminos{
    font-size: 1rem;
    padding: 1rem 3rem;
}



/* File: /wp-content/plugins/formulario3/assets/frontend.css */
.dlocalwp-container {
    max-width: 800px;
    margin: 1rem auto;
    padding: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1 !important;
}

.dlocalwp-form-wrapper {
    background: #ffffff;
    border-radius: 10px;
    border-color: var(--gris-claro);
    border-style: solid;
    border-width: 1px;
    box-shadow: var(--sombras);
    overflow: hidden;
    position: relative;
}

.dlocalwp-form-header {
    background: var(--gris-fondos);
    border-bottom: var(--gris-claro);
    border-bottom-width: 1px;
    border-bottom-style: solid;
    color: #000;
    padding: 1rem;
    text-align: left;
    max-height: 1rem;
}

.dlocalwp-form-subtitle {
    margin: 0;
    opacity: 1;
    font-size: 1.1rem;
    font-family: 'IBM Plex Sans', sans-serif;
}

 .dlocalwp-form-section {
    margin: 0;
    padding-top: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.dlocalwp-section-title {
    color: #141a51;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #cccccc;
}

.dlocalwp-form-row {
    display: flex;
    margin: 0;
    flex-wrap: wrap;
}

.dlocalwp-form-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.dlocalwp-col-full {
  flex: 1 1 100%;
}


.dlocalwp-col-half {
    flex: 1 1 calc(50% - 0.5rem);
}

.dlocalwp-label {
    display: flex;
    align-items: center;
    min-width: 220px;
    gap: 0.5rem;
    
    font-weight: 400;
    color: var(--gris-oscuro);
    font-size: 1rem;
}

.dlocalwp-required {
    color: #ef4444;
    font-weight: bold;
}

.dlocalwp-input-wrapper {
    position: relative;
    min-width: 60%;
}

.dlocalwp-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 1rem;
    background: #fcfcfc;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
}

.dlocalwp-input:focus {
    border-color: #255ac6;
    box-shadow: 0 0 0 3px rgba(37, 90, 198, 0.1);
    transform: translateY(-1px);
}

.dlocalwp-input:valid {
    border-color: #10b981;
}

.dlocalwp-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.dlocalwp-input-focus {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: #255ac6;
    transition: width 0.3s ease;
}

.dlocalwp-input:focus + .dlocalwp-input-focus {
    width: 100%;
}

.dlocalwp-currency-wrapper {
    position: relative;
}

.dlocalwp-currency-symbol {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(15%);
    color: #6b7280;
    font-weight: 400;
    font-size: 1rem;
    z-index: 1;
}

.dlocalwp-currency-input {
    padding-left: 2.5rem;
}

.dlocalwp-field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
    animation: slideDown 0.3s ease;
}

.dlocalwp-field-error.show {
    display: block;
}

.dlocalwp-field-help {
    position: relative;
    color: #808080;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    top: -15%;
}

.dlocalwp-form-actions {
    text-align: center;
}

.dlocalwp-submit-btn {
    background: #255ac6;
    color: white;
    border: none;
    padding: 0rem 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 0.6;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

.dlocalwp-submit-btn:active {
    transform: translateY(0);
    background-color: var(--azul-1);
}

.dlocalwp-submit-btn:disabled {
    background: var(--azul-1);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dlocalwp-btn-loading {
    display: none;
}

.dlocalwp-submit-btn.loading .dlocalwp-btn-text {
    display: none;
}

.dlocalwp-submit-btn.loading .dlocalwp-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dlocalwp-security-info {
    margin-top: 1rem;
    color: #808080;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.dlocalwp-form-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #cccccc;
}

.dlocalwp-terms {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    color: #808080;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.dlocalwp-link {
    color: #255ac6;
    text-decoration: none;
    font-weight: 500;
}

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

/* Loading Overlay */
.dlocalwp-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dlocalwp-loading-content {
    text-align: center;
    color: #374151;
}

.dlocalwp-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Message Container */
.dlocalwp-message-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    max-width: 400px;
}

.dlocalwp-message {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid #10b981;
}

.dlocalwp-message.error {
    border-left-color: #ef4444;
}

.dlocalwp-message.warning {
    border-left-color: #f59e0b;
}

.dlocalwp-message-icon {
    font-size: 1.25rem;
    color: #10b981;
}

.dlocalwp-message.error .dlocalwp-message-icon {
    color: #ef4444;
}

.dlocalwp-message.warning .dlocalwp-message-icon {
    color: #f59e0b;
}

.dlocalwp-message-text {
    flex: 1;
    color: #374151;
    font-weight: 500;
}

.dlocalwp-message-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.dlocalwp-message-close:hover {
    color: #374151;
}


/* Spinner */
.dlocalwp-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dlocalwp-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .dlocalwp-form-header {
        padding: 1.5rem 1rem;
    }
    
    .dlocalwp-form-title {
        font-size: 1.5rem;
    }
    
    .dlocalwp-form {
        padding: 1.5rem 1rem;
    }
    
    .dlocalwp-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .dlocalwp-col-half {
        flex: 1 1 100%;
    }
    
    .dlocalwp-submit-btn {
        width: 100%;
        padding: 1rem;
    }
    
    .dlocalwp-message-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .dlocalwp-section-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .dlocalwp-form-header {
        padding: 1rem;
    }
    
    .dlocalwp-form-title {
        font-size: 1.25rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .dlocalwp-form {
        padding: 1rem;
    }
    
    .dlocalwp-input {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .dlocalwp-currency-input {
        padding-left: 2.25rem;
    }
    
    .dlocalwp-submit-btn {
        font-size: 1rem;
        font-weight: 600;
        padding: 0.875rem;
    }
}



/* High Contrast Mode */
@media (prefers-contrast: high) {
    .dlocalwp-form-wrapper {
        border: 2px solid #000;
    }
    
    .dlocalwp-input {
        border: 2px solid #000;
    }
    
    .dlocalwp-input:focus {
        border: 3px solid #0066cc;
        outline: 2px solid #000;
    }
    
    .dlocalwp-submit-btn {
        border: 2px solid #000;
    }
    
    .dlocalwp-required {
        color: #cc0000;
        font-weight: bold;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .dlocalwp-spinner,
    .dlocalwp-loading-spinner {
        animation: none;
    }
    
    .dlocalwp-progress-fill {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .dlocalwp-form-wrapper {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .dlocalwp-form-header {
        background: #fff !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
    }
    
    .dlocalwp-submit-btn,
    .dlocalwp-loading-overlay,
    .dlocalwp-message-container {
        display: none !important;
    }
    
    .dlocalwp-input {
        border: 1px solid #000 !important;
        background: #fff !important;
    }
}

/* Focus Visible for Better Accessibility */
.dlocalwp-input:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.dlocalwp-submit-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.dlocalwp-link:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Loading States */
.dlocalwp-form.loading {
    pointer-events: none;
    opacity: 0.7;
}

.dlocalwp-form.loading .dlocalwp-input {
    background: #f3f4f6;
}

/* Success States */
.dlocalwp-input.success {
    border-color: #10b981;
    background: #f0fdf4;
}

.dlocalwp-input.success:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Error States */
.dlocalwp-input.error {
    border-color: #ef4444;
    background: #fef2f2;
    animation: shake 0.5s ease-in-out;
}

.dlocalwp-input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Progress Animation */
.dlocalwp-progress-fill.animate {
    animation: progressFill 2s ease-in-out;
}

/* Button Hover Effects */
.dlocalwp-submit-btn:not(:disabled):hover {
    animation: pulse 0.3s ease-in-out;
}

/* Message Animations */
.dlocalwp-message.show {
    animation: slideInRight 0.3s ease-out;
}

.dlocalwp-message.hide {
    animation: slideInRight 0.3s ease-out reverse;
}

/* Utility Classes */
.dlocalwp-hidden {
    display: none !important;
}

.dlocalwp-visible {
    display: block !important;
}

.dlocalwp-fade-in {
    animation: fadeIn 0.3s ease-in;
}

.dlocalwp-bounce {
    animation: bounce 0.6s ease-in-out;
}

.dlocalwp-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Custom Scrollbar */
.dlocalwp-form::-webkit-scrollbar {
    width: 8px;
}

.dlocalwp-form::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dlocalwp-form::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.dlocalwp-form::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Selection Styles */
.dlocalwp-container ::selection {
    background: rgba(102, 126, 234, 0.2);
    color: inherit;
}

.dlocalwp-container ::-moz-selection {
    background: rgba(102, 126, 234, 0.2);
    color: inherit;
}

