/* WhatsApp Form - Estilos aislados */
.wf-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.wf-form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    animation: wfFadeIn 0.5s ease-in;
}

@keyframes wfFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wf-header  {
    background: linear-gradient(135deg, #f44c83 0%, #8b1f47 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.wf-header h1{
           font-size: 30px;
        margin-bottom: 2px;
    color: white !important;
    text-align: center;
}
.wf-header i {
    font-size: 48px;
    margin-bottom: 10px;
    animation: wfBounce 2s infinite;
    display: block;
}

@keyframes wfBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.wf-header-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.wf-header-subtitle {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.wf-form-content {
    padding: 30px;
}

.wf-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.wf-input-group {
    margin-bottom: 20px;
}

.wf-input-label {
    position: static !important; 
    display: block;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.wf-label-optional {
    color: #a0aec0;
    font-weight: 400;
    font-size: 13px;
}

.wf-input-field,
.wf-combobox-control,
.wf-textbox-area {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f7fafc !important;
    font-family: inherit;
    box-sizing: border-box;
}

.wf-textbox-area {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
}

.wf-combobox-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px !important;
    padding-right: 40px;
}

.wf-input-field:focus,
.wf-combobox-control:focus,
.wf-textbox-area:focus {
    outline: none !important;
    border-color: #f44c83 !important;
    background: white !important;
    box-shadow: 0 0 0 3px rgba(244, 76, 131, 0.1) !important;
}

.wf-input-field.wf-field-error,
.wf-combobox-control.wf-field-error,
.wf-textbox-area.wf-field-error {
    border-color: #f56565 !important;
    background: #fff5f5 !important;
}

.wf-input-field.wf-field-success,
.wf-combobox-control.wf-field-success,
.wf-textbox-area.wf-field-success {
    border-color: #48bb78 !important;
}

.wf-error-message {
    color: #f56565;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    animation: wfShake 0.3s ease;
}

@keyframes wfShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.wf-char-count {
    font-size: 12px;
    color: #a0aec0;
    text-align: right;
    margin-top: 5px;
}

.wf-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #f44c83 0%, #8b1f47 100%);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wf-submit-btn span {

    color: white;

}

.wf-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(244, 76, 131, 0.4);
    background: linear-gradient(135deg, #ff5a94 0%, #a0244f 100%);
}

.wf-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.wf-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wf-spinner {
    animation: wfSpin 1s linear infinite;
}

@keyframes wfSpin {
    to { transform: rotate(360deg); }
}

/* ========== TOAST NOTIFICATIONS ========== */
.wf-toast-container {
    position: fixed;
    top: 50%; /* o cámbialo por 50% para el centro vertical */
   right: 15px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.wf-toast {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: wfSlideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.wf-toast.wf-toast-removing {
    animation: wfSlideOutRight 0.3s ease-in forwards;
}

@keyframes wfSlideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes wfSlideOutRight {
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.wf-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.wf-toast.wf-toast-success::before {
    background: #48bb78;
}

.wf-toast.wf-toast-error::before {
    background: #f56565;
}

.wf-toast.wf-toast-warning::before {
    background: #ed8936;
}

.wf-toast.wf-toast-info::before {
    background: #4299e1;
}

.wf-toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.wf-toast.wf-toast-success .wf-toast-icon {
    color: #48bb78;
}

.wf-toast.wf-toast-error .wf-toast-icon {
    color: #f56565;
}

.wf-toast.wf-toast-warning .wf-toast-icon {
    color: #ed8936;
}

.wf-toast.wf-toast-info .wf-toast-icon {
    color: #4299e1;
}

.wf-toast-content {
    flex: 1;
}

.wf-toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 2px;
}

.wf-toast-message {
    font-size: 13px;
    color: #718096;
    line-height: 1.4;
}

.wf-toast-close {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.wf-toast-close:hover {
    background: #f7fafc;
    color: #4a5568;
}

.wf-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: wfProgressBar linear forwards;
}

.wf-toast.wf-toast-success .wf-toast-progress {
    color: #48bb78;
}

.wf-toast.wf-toast-error .wf-toast-progress {
    color: #f56565;
}

.wf-toast.wf-toast-warning .wf-toast-progress {
    color: #ed8936;
}

.wf-toast.wf-toast-info .wf-toast-progress {
    color: #4299e1;
}

@keyframes wfProgressBar {
    from { width: 100%; }
    to { width: 0%; }
}

/* Responsive - Smartphones pequeños */
@media (max-width: 375px) {
    .wf-wrapper {
        padding: 10px;
    }

    .wf-form-container {
        border-radius: 15px;
    }

    .wf-header {
        padding: 20px 15px;
    }

    .wf-header i {
        font-size: 32px;
    }

    .wf-header-title {
        font-size: 18px;
    }

    .wf-header-subtitle {
        font-size: 12px;
    }

    .wf-form-content {
        padding: 20px 15px;
    }

    .wf-input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .wf-input-group {
        margin-bottom: 15px;
    }

    .wf-input-label {
        font-size: 13px;
    }

    .wf-input-field,
    .wf-combobox-control,
    .wf-textbox-area {
        padding: 10px 12px;
        font-size: 14px;
    }

    .wf-combobox-control {
        background-position: right 12px center !important;
        padding-right: 35px;
    }

    .wf-textbox-area {
        min-height: 80px;
    }

    .wf-char-count {
        font-size: 11px;
    }

    .wf-submit-btn {
        padding: 12px;
        font-size: 14px;
        gap: 8px;
    }

    .wf-error-message {
        font-size: 11px;
    }

    .wf-toast-container {
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        max-width: calc(100% - 20px);
        width: auto;
    }

    .wf-toast {
        min-width: auto;
        width: 100%;
        max-width: 350px;
        padding: 12px 14px;
        gap: 10px;
    }

    .wf-toast-icon {
        font-size: 18px;
    }

    .wf-toast-title {
        font-size: 12px;
    }

    .wf-toast-message {
        font-size: 11px;
    }

    .wf-toast-close {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }

    .wf-toast-progress {
        height: 2px;
    }
}

/* Responsive - Smartphones medianos */
@media (min-width: 376px) and (max-width: 480px) {
    .wf-wrapper {
        padding: 15px;
    }

    .wf-header {
        padding: 25px 20px;
    }

    .wf-header i {
        font-size: 40px;
    }

    .wf-header-title {
        font-size: 20px;
    }

    .wf-form-content {
        padding: 25px 20px;
    }

    .wf-input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .wf-input-group {
        margin-bottom: 15px;
    }

    .wf-input-field,
    .wf-combobox-control,
    .wf-textbox-area {
        padding: 11px 14px;
        font-size: 14px;
    }

    .wf-textbox-area {
        min-height: 90px;
    }

    .wf-toast-container {
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        max-width: calc(100% - 30px);
        width: auto;
    }

    .wf-toast {
        min-width: auto;
        width: 100%;
        max-width: 400px;
        padding: 14px 16px;
    }

    .wf-toast-icon {
        font-size: 20px;
    }

    .wf-toast-title {
        font-size: 13px;
    }

    .wf-toast-message {
        font-size: 12px;
    }
}

/* Responsive - Tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .wf-header i {
        font-size: 52px;
    }

    .wf-header-title {
        font-size: 26px;
    }

    .wf-input-field,
    .wf-combobox-control,
    .wf-textbox-area {
        font-size: 16px;
    }

    .wf-submit-btn {
        font-size: 17px;
    }

    .wf-toast-container {
        top: 15px;
        right: 15px;
        max-width: 380px;
    }

    .wf-toast {
        min-width: 320px;
    }
}

/* Responsive - Tablets grandes */
@media (min-width: 769px) and (max-width: 1024px) {
    .wf-header {
        padding: 35px;
    }

    .wf-header i {
        font-size: 56px;
    }

    .wf-form-content {
        padding: 35px;
    }

    .wf-toast-container {
        top: 20px;
        right: 20px;
        max-width: 420px;
    }

    .wf-toast {
        min-width: 340px;
    }
}

/* Responsive - Pantallas grandes */
@media (min-width: 1025px) {
    .wf-header {
        padding: 40px;
    }

    .wf-header i {
        font-size: 60px;
    }

    .wf-form-content {
        padding: 40px;
    }
}

/* Orientación horizontal móviles */
@media (max-height: 600px) and (orientation: landscape) {
    .wf-wrapper {
        padding: 10px;
    }

    .wf-form-container {
        max-height: 580px;
        overflow-y: auto;
    }

    .wf-header {
        padding: 12px;
    }

    .wf-header i {
        font-size: 28px;
        margin-bottom: 5px;
    }

    .wf-header-title {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .wf-header-subtitle {
        font-size: 11px;
    }

    .wf-form-content {
        padding: 15px;
    }

    .wf-input-group {
        margin-bottom: 10px;
    }

    .wf-input-label {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .wf-input-row {
        gap: 10px;
        margin-bottom: 10px;
    }

    .wf-input-field,
    .wf-combobox-control,
    .wf-textbox-area {
        padding: 8px 12px;
        font-size: 13px;
    }

    .wf-textbox-area {
        min-height: 60px;
        max-height: 80px;
    }

    .wf-char-count {
        font-size: 10px;
        margin-top: 3px;
    }

    .wf-submit-btn {
        padding: 10px;
        font-size: 14px;
    }

    .wf-error-message {
        font-size: 10px;
        margin-top: 3px;
    }

    .wf-toast-container {
        top: 5px;
        right: 5px;
        left: auto;
        max-width: 280px;
    }

    .wf-toast {
        min-width: auto;
        padding: 10px 12px;
        gap: 8px;
    }

    .wf-toast-icon {
        font-size: 16px;
    }

    .wf-toast-title {
        font-size: 11px;
    }

    .wf-toast-message {
        font-size: 10px;
        display: none;
    }

    .wf-toast-close {
        width: 18px;
        height: 18px;
    }
}

/* Ajuste pantallas táctiles */
@media (hover: none) and (pointer: coarse) {
    .wf-input-field,
    .wf-combobox-control,
    .wf-textbox-area {
        font-size: 16px;
    }

    .wf-submit-btn {
        min-height: 48px;
    }
}

/* Pantallas extra grandes */
@media (min-width: 1440px) {
    .wf-wrapper {
        max-width: 700px;
    }

    .wf-header {
        padding: 45px;
    }

    .wf-header i {
        font-size: 64px;
    }

    .wf-form-content {
        padding: 45px;
    }

    .wf-input-field,
    .wf-combobox-control,
    .wf-textbox-area {
        padding: 14px 18px;
        font-size: 16px;
    }

    .wf-submit-btn {
        padding: 16px;
        font-size: 17px;
    }

    .wf-toast-container {
        right: 40px;
        max-width: 450px;
    }

    .wf-toast {
        min-width: 360px;
        padding: 18px 22px;
    }
}