:root {
    --primary-color: rgb(38, 186, 165);
    --primary-hover: rgb(32, 160, 142);
    --secondary-color: rgb(55, 95, 122);
    --secondary-hover: rgb(45, 78, 100);
    --success-color: #28a745;
    --error-color: #dc3545;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 1px;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.form-header h1 {
    margin: 0;
    font-size: 24px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-header h1 i {
    color: var(--primary-color);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary-color);
}

/* Mensaje de éxito */
.success-alert {
    padding: 2px;
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
}

.success-alert i {
    font-size: 20px;
}

.success-alert.hidden {
    display: none;
}

/* Formulario */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.form-group label {
    font-weight: 500;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 1px;
}

.form-group label i {
    width: 20px;
    color: var(--primary-color);
}

input, textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    /* font-size: 16px; */
    font-size: 1.2em;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(38, 186, 165, 0.2);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
.phone-input {
    display: flex;
    width: 100%;
    align-items: center;
    
}

.phone-input span {
    padding: 12px 12px 12px 15px;
    background: #f5f7fa;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: var(--border-radius) var(--border-radius) var(--border-radius) var(--border-radius);
    font-size: 13px;
    white-space: nowrap;
}

.phone-input input {
    border-radius: var(--border-radius) var(--border-radius) var(--border-radius) var(--border-radius);
    flex: 1;
    min-width: 0;
    width: 100%;
    font-size: 1.3em;
}

/* Media query para móviles */
@media (max-width: 480px) {
    .phone-input {
        flex-wrap: wrap;
        
    }
    
    .phone-input span {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        border-right: 1px solid #ddd;
        border-bottom: none;
    }
    
    .phone-input input {
        border-radius: var(--border-radius) var(--border-radius) var(--border-radius) var(--border-radius);
        border-top: none;
        font-size: 1.5em;
    }
}
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/

.hint {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.error-message {
    color: var(--error-color);
    font-size: 14px;
    min-height: 20px;
}

/* Botones */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.primary-btn, .secondary-btn {
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.primary-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: white;
    color: var(--secondary-color);
    border: 1px solid #ddd;
}

.secondary-btn:hover {
    background-color: #f5f5f5;
}

@media (max-width: 600px) {
    .form-actions {
        flex-direction: column;
    }
    
    .primary-btn, .secondary-btn {
        justify-content: center;
    }
   
}

/* (Mantener todos los estilos anteriores y agregar estos) */

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.whatsapp-btn i {
    font-size: 18px;
}

/* Agregar al archivo create.css */
.error-alert {
    padding: 15px;
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--error-color);
    color: var(--error-color);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 2px;
    border-radius: 4px;
}

.error-alert i {
    font-size: 20px;
}

.error-alert.hidden {
    display: none;
}

/* Estilos para el mensaje de WhatsApp */
.whatsapp-message {
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(37, 211, 102, 0.1);
    border-left: 4px solid #25D366;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-message i {
    color: #25D366;
    font-size: 20px;
}

/* Estilos para el botón de WhatsApp */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.whatsapp-btn i {
    font-size: 18px;
}


/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% descargar **/

/* Agregar estos estilos al final del archivo */

.success-actions {
    display: flex;
    gap: 5px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.vcf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 14px;
}

.vcf-btn:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

.vcf-btn i {
    font-size: 16px;
}

/* Ajustar para móviles */
@media (max-width: 480px) {
    .success-actions {
        flex-direction: column;
    }
    
    .vcf-btn, .whatsapp-btn {
        width: 100%;
        justify-content: center;
    }
}



/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  botones %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
.success-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.whatsapp-btn, .vcf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.vcf-btn {
    background-color: var(--secondary-color);
    color: white;
}

.vcf-btn:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .success-actions {
        flex-direction: column;
    }
    
    .whatsapp-btn, .vcf-btn {
        width: 100%;
        justify-content: center;
    }
    .success-alert {
        background: #e8f5e9;
        padding: 1px;
        border-radius: 8px;
        margin-top: 20px;
        text-align: center;
    }
    
}

/**%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% mensaje de exito $%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
.success-alert {
    background: #e8f5e9;
    padding: 1px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.download-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 15px 0;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #0b7dda;
}

.download-btn i {
    margin-right: 8px;
}

.whatsapp-message {
    color: #25D366;
    margin-top: 15px;
    font-weight: bold;
}

.hidden {
    display: none;
}


/********************************** mensaje de descarga 

.success-alert {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    display: none; /* Inicialmente oculto 
}*/

.success-alert i {
    font-size: 1.5em;
    color: #4CAF50;
    margin-bottom: 10px;
}

.download-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 15px 0;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #0b7dda;
}

.download-btn i {
    margin-right: 8px;
}

.whatsapp-message {
    color: #25D366;
    margin-top: 15px;
    font-weight: bold;
}

.hidden {
    display: none;
}

.show {
    display: block;
}

/*mensaje de exito */
/* Contenedor principal del mensaje de éxito */
.success-message {
    text-align: center;
    margin-bottom: 20px;
}

/* Sección de botones contenedora */
.download-section, 
.new-contact-section {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    width: 100%;
}

/* Estilos base para ambos botones */
.download-btn,
.new-contact-btn {
    width: 250px; /* Mismo ancho para ambos */
    padding: 12px 0; /* Mismo padding vertical */
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Estilo específico para el botón de descarga */
.download-btn {
    background-color: var(--secondary-color);
    color: white;
}

.download-btn:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
}

/* Estilo específico para el botón de nuevo contacto */
.new-contact-btn {
    background-color: var(--primary-color);
    color: white;
}

.new-contact-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Iconos dentro de los botones */
.download-btn i,
.new-contact-btn i {
    font-size: 14px;
    color: white;
}

/* Mensaje de WhatsApp */
.whatsapp-message {
    text-align: center;
    margin-top: 15px;
    color: #25D366;
}

/* Contenedor del éxito para alinear todo al centro */
.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
}